Function dryoc::classic::crypto_generichash::crypto_generichash_init   
source · 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.
| Parameter | Typical length | Minimum length | Maximum length | 
|---|---|---|---|
outlen | CRYPTO_GENERICHASH_BYTES | CRYPTO_GENERICHASH_BYTES_MIN |  CRYPTO_GENERICHASH_BYTES_MAX | 
key | CRYPTO_GENERICHASH_KEYBYTES | CRYPTO_GENERICHASH_KEYBYTES_MIN |  CRYPTO_GENERICHASH_KEYBYTES_MAX | 
Equivalent to libsodium’s crypto_generichash_final