Std.Crypto.hmacSha256
1 declaration
fn
hmacSha256: &Bytes -> &Bytes -> BytesThis is a callable function.
What it does
The keyed digest that proves who a message came from.
A digest says a message was not altered by accident. A keyed digest says it
came from someone holding the key, which is the question a webhook, a
signed cookie, and an API signature all ask. Anyone can compute a digest of
a forged message; only a holder of the key can compute this.
This is where the compiler's own implementation is reached rather than the
one written above in Pudu. The reason is speed: a key derivation runs
thousands of these, and the readable implementation is for reading.
Read the signature
- The text after the name is the type checked by Pudu.
- Read arrows from left to right: inputs come first, and the final type is returned.
- & borrows a value for this call instead of moving or copying it.
