goog.crypt.Sha512_256
Provided By | |
---|---|
Extends |
Constructs a SHA-512/256 cryptographic hash.
new Sha512_256()
Parameters | None. |
---|
Instance Methods
this.reset() → void
void
Resets this hash function.
Defined by | |
---|---|
Overrides | |
Parameters | None. |
this.update( bytes, opt_length ) → void
void
Adds a byte array (array with values in [0-255] range) or a string (must only contain 8-bit, i.e., Latin1 characters) to the internal accumulator.
Many hash functions operate on blocks of data and implement optimizations when a full chunk of data is readily available. Hence it is often preferable to provide large chunks of data (a kilobyte or more) than to repeatedly call the update method with few tens of bytes. If this is not possible, or not feasible, it might be good to provide data in multiplies of hash block size (often 64 bytes). Please see the implementation and performance tests of your favourite hash.
Defined by | |||||||||
---|---|---|---|---|---|---|---|---|---|
Overrides | |||||||||
Parameters |
|
Instance Properties
this.blockSize → number
number
The number of bytes that are digested in each pass of this hasher.
Defined by | |
---|---|
Overrides |