Class: sha256

sjcl.hash.sha256

new sha256()

Context for a SHA-256 operation in progress.
Source:

Members

(constant) blockSize

The hash's block size, in bits.
Source:

Methods

finalize() → {bitArray}

Complete hashing and output the hash value.
Source:
Returns:
The hash value, an array of 8 big-endian words.
Type
bitArray

reset()

Reset the hash state.
Source:
Returns:
this

update(data)

Input several words to the hash.
Parameters:
Name Type Description
data bitArray | String the data to hash.
Source:
Returns:
this

(static) hash(data) → {bitArray}

Hash a string or an array of words.
Parameters:
Name Type Description
data bitArray | String the data to hash.
Source:
Returns:
The hash value, an array of 16 big-endian words.
Type
bitArray