Skip to main content

blake2b_256_keyed

Function blake2b_256_keyed 

Source
pub fn blake2b_256_keyed(key: &[u8], data: &[u8]) -> Result<[u8; 32], String>
Expand description

Keyed Blake2b-256 hash.

key must be 1..=64 bytes (Blake2b key length constraint). Returns the 32-byte digest, or an error if the key length is invalid.