Generated by JsDoc Toolkit 2.3.3-beta on Wed Nov 06 2013 17:43:37 GMT+0100 (MEZ)
HTML template: Codeview

Namespace sjcl.misc

Miscellaneous. HMAC and PBKDF2.
Defined in: sjcl.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<static>  
sjcl.misc.cachedPbkdf2(password, params)
Cached PBKDF2 key derivation.
<static>  
sjcl.misc.pbkdf2(password, salt, count, length, Prff)
Password-Based Key-Derivation Function, version 2.0.
Namespace Detail
sjcl.misc
Method Detail
<static> {Object} sjcl.misc.cachedPbkdf2(password, params)
Cached PBKDF2 key derivation.
Defined in: convenience.js.
Parameters:
{String} password
The password.
{Object} params Optional
The derivation params (iteration count and optional salt).
Returns:
{Object} The derived data in key, the salt in salt.
<static> {bitArray} sjcl.misc.pbkdf2(password, salt, count, length, Prff)
Password-Based Key-Derivation Function, version 2.0. Generate keys from passwords using PBKDF2-HMAC-SHA256. This is the method specified by RSA's PKCS #5 standard.
Defined in: pbkdf2.js.
Parameters:
{bitArray|String} password
The password.
{bitArray|String} salt
The salt. Should have lots of entropy.
{Number} count Optional, Default: 1000
The number of iterations. Higher numbers make the function slower but more secure.
{Number} length Optional
The length of the derived key. Defaults to the output size of the hash function.
{Object} Prff Optional, Default: sjcl.misc.hmac
The pseudorandom function family.
Returns:
{bitArray} the derived key.