pbkdf2.js
No description.

File Location

/goog/crypt/pbkdf2.js


Public Protected Private

Global Functions

goog.crypt.pbkdf2.deriveKeySha1&computeBlock(index) !Array.<number>
Compute each block of the key using HMAC-SHA1.
Arguments:
index : !Array.<number>
Byte array representation of the index of the block to be computed.
Returns: !Array.<number>  Byte array representation of the output block.
code »
goog.crypt.pbkdf2.deriveKeyFromPassword_(computeBlockhashLengthkeyLength) !Array.<number>
Compute each block of the key using PBKDF2.
Arguments:
computeBlock : Function
Function to compute each block of the output key.
hashLength : number
Length of each block in bits. This is determined by the specific hash function used. Must be multiple of 8.
keyLength : number
Length of the output key in bits. Must be multiple of 8.
Returns: !Array.<number>  Byte array representation of the output key.
code »
goog.crypt.pbkdf2.deriveKeySha1(passwordinitialSaltiterationskeyLength) !Array.<number>
Derives key from password using PBKDF2-SHA1
Arguments:
password : !Array.<number>
Byte array representation of the password from which the key is derived.
initialSalt : !Array.<number>
Byte array representation of the salt.
iterations : number
Number of interations when computing the key.
keyLength : number
Length of the output key in bits. Must be multiple of 8.
Returns: !Array.<number>  Byte array representation of the output key.
code »
goog.crypt.pbkdf2.integerToByteArray_(n) !Array.<number>
Converts an integer number to a 32-bit big endian byte array.
Arguments:
n : number
Integer number to be converted.
Returns: !Array.<number>  Byte Array representation of the 32-bit big endian encoding of n.
code »

Directory crypt

File Reference