Function dryoc::classic::crypto_onetimeauth::crypto_onetimeauth_init
source · pub fn crypto_onetimeauth_init(key: &[u8; 32]) -> OnetimeauthStateExpand description
Initialize the incremental interface for Poly1305-based one-time
authentication, using key. Returns a state struct which is required for
subsequent calls to crypto_onetimeauth_update and
crypto_onetimeauth_final. The key should only be used once.
Equivalent to libsodium’s crypto_onetimeauth_init.