Skip to main content

tuple_hash256

Function tuple_hash256 

Source
pub fn tuple_hash256(
    inputs: &[&[u8]],
    customization: &[u8],
    out: &mut [u8],
) -> Result<(), CryptoError>
Expand description

TupleHash256 (NIST SP 800-185 §5).

Hashes the tuple of byte strings in inputs with optional customization string; result length equals out.len().

§Errors

Returns CryptoError::BadInput if any input length or out.len(), multiplied by 8, overflows a u64 (unreachable in practice).