method hmac.sha384
HMAC-SHA-384 of input under key (48 bytes).
Example:
use std.crypto { hmac }
use std.ser { bytesOf }
fn main() io {
print("{hmac.sha384(bytesOf(&"key"), bytesOf(&"message")).len()}")
}Output
48
pub(api) static fn sha384(key: bytes, input: bytes) -> bytesComplexity. O(n) in the size of the input.
Since. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
key | bytes |
input | bytes |
Returns
bytes
Effects
none declared (pure unless the body says otherwise)
Defined in: std/crypto/crypto.oxl:235