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

Class sjcl.hash.sha256

Secure Hash Algorithm, 256 bits.
Defined in: sha256.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Context for a SHA-256 operation in progress.
Field Summary
Field Attributes Field Name and Description
<constant>  
The hash's block size, in bits.
Method Summary
Method Attributes Method Name and Description
 
Complete hashing and output the hash value.
<static>  
sjcl.hash.sha256.hash(data)
Hash a string or an array of words.
 
Reset the hash state.
 
update(data)
Input several words to the hash.
Class Detail
sjcl.hash.sha256(hash)
Context for a SHA-256 operation in progress.
Parameters:
hash
Field Detail
<constant> blockSize
The hash's block size, in bits.
Method Detail
{bitArray} finalize()
Complete hashing and output the hash value.
Returns:
{bitArray} The hash value, an array of 8 big-endian words.
<static> {bitArray} sjcl.hash.sha256.hash(data)
Hash a string or an array of words.
Parameters:
{bitArray|String} data
the data to hash.
Returns:
{bitArray} The hash value, an array of 16 big-endian words.
reset()
Reset the hash state.
Returns:
this
update(data)
Input several words to the hash.
Parameters:
{bitArray|String} data
the data to hash.
Returns:
this