goog.crypt.Hmac
Classgoog.crypt.Hmac
> goog.crypt.Hash
goog.crypt.Hmac(hasher, key, opt_blockSize)
hasher
{!goog.crypt.Hash
}
key
{Array
.<number
>}
opt_blockSize
{number
=}
.digest()
Array
.<number
>}
.getHmac(message)
Calculates an HMAC for a given message.
message
{Array
.<number
>}
Array
}
.reset()
Resets the internal accumulator.
.update(bytes, opt_length)
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.
bytes
{Array
.<number
>|Uint8Array
|string
}
opt_length
{number
=}