goog.crypt.Hash | |
goog.crypt.Hmac | goog.crypt.Hash |
hasher
: !goog.crypt.Hash
An object to serve as a hash function.
|
key
: Array.<number>
The secret key to use to calculate the hmac.
Should be an array of not more than
blockSize integers in
{0, 255}. |
opt_blockSize
: number=
Optional. The block size
hasher uses.
If not specified, uses the block size from the hasher, or 16 if it is
not specified. |
No description.
|
code » | |
![]()
Adds a byte array (array with values in [0-255] range) or a string (might
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.
|
code » |
![]()
Inner padding byte of HMAC algorith, per http://en.wikipedia.org/wiki/HMAC
|
Code » | |
![]()
Outer padding byte of HMAC algorith, per http://en.wikipedia.org/wiki/HMAC
|
Code » | |
![]()
No description.
|
Code » |