crypt.hashTester

Classes


Public Protected Private

Global Functions

goog.crypt.hashTester.createByteString_(bytes) string
Creates a string from an array of bytes.
Arguments:
bytes : !Array.<number>
An array of bytes.
Returns: string  The string encoded by the bytes.
code »
goog.crypt.hashTester.createRandomByteArray_(length) !Array.<number>
Creates and returns a random byte array.
Arguments:
length : number
Length of the byte array.
Returns: !Array.<number>  An array of bytes.
code »
goog.crypt.hashTester.runBasicTests(hash)
Runs basic tests.
Arguments:
hash : !goog.crypt.Hash
A hash instance.
code »
goog.crypt.hashTester.runBlockTests(hashblockBytes)
Runs block tests.
Arguments:
hash : !goog.crypt.Hash
A hash instance.
blockBytes : number
Size of the hash block.
code »
goog.crypt.hashTester.runPerfTests(hashFactoryhashName)
Runs performance tests.
Arguments:
hashFactory : function():!goog.crypt.Hash
A hash factory.
hashName : string
Name of the hashing function.
code »

Package crypt

Package Reference