oa::cryptography::kmac256

Compute KMAC-256 according to NIST SP 800-185. Errors Returns an error when a bit length, encoded length, or allocation size overflows the platform or SP 800-185 u64 encoding.

FnRust public API

Function Documentation

pub fn kmac256( key: &[u8], data: &[u8], customization: &[u8], output_len: usize ) -> Result<Vec<u8>>
Compute KMAC-256 according to NIST SP 800-185. Errors Returns an error when a bit length, encoded length, or allocation size overflows the platform or SP 800-185 u64 encoding.