HmacSha256¶
Compute HMAC using SHA-256 as the hash function, as defined in RFC 2104.
Returns a 32-byte message authentication code.
Raises an error when the key is longer than OpenSSL's int can hold, and when
OpenSSL could not compute the code.
When it raises, reject. Do not compare a message against a code of your own making: a code you invent is one an attacker can send you.
Constructors¶
create¶
Returns¶
- HmacSha256 val^
Public Functions¶
apply¶
Parameters¶
Returns¶
eq¶
Parameters¶
- that: HmacSha256 val
Returns¶
- Bool val
ne¶
Parameters¶
- that: HmacSha256 val
Returns¶
- Bool val