Class: sha512

sjcl.hash.sha512

new sha512()

Context for a SHA-512 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 16 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