Function xkcp_sys::Kravatte_SANE_Initialize
source · pub unsafe extern "C" fn Kravatte_SANE_Initialize(
kvInstance: *mut Kravatte_SANE_Instance,
Key: *const BitSequence,
KeyBitLen: BitLength,
Nonce: *const BitSequence,
NonceBitLen: BitLength,
tag: *mut c_uchar
) -> c_int
Expand description
Function to initialize a Kravatte SANE instance with given key and nonce. @param kvInstance Pointer to the instance to be initialized. @param Key Pointer to the key (K). @param KeyBitLen The length of the key in bits. @param Nonce Pointer to the nonce (N). @param NonceBitLen The length of the nonce in bits. @param tag The buffer where to store the tag. This buffer must be minimum Kravatte_SANE_TagLength bytes long. @return 0 if successful, 1 otherwise.