pub fn crypto_generichash_init(
    key: Option<&[u8]>,
    outlen: usize
) -> Result<GenericHashState, Error>
Expand description

Initializes the state for the generic hash function using outlen for the expected hash output length, and optional key, returning it upon success.

Equivalent to libsodium’s crypto_generichash_final