new hmac(key, Hashopt)
HMAC with the specified hash function.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
key |
bitArray | the key for HMAC. | ||
Hash |
Object |
<optional> |
sjcl.hash.sha256 | The hash function to use. |
Members
encrypt
HMAC with the specified hash function. Also called encrypt since it's a prf.