Function xkcp_sys::KMAC128_Initialize
source · pub unsafe extern "C" fn KMAC128_Initialize(
kmkInstance: *mut KMAC_Instance,
key: *const BitSequence,
keyBitLen: BitLength,
outputBitLen: BitLength,
customization: *const BitSequence,
customBitLen: BitLength
) -> c_int
Expand description
Function to initialize the KMAC128 instance used in sequential MACing mode. @param kmInstance Pointer to the instance to be initialized. @param key Pointer to the key (K). @param keyBitLen The length of the key in bits. @param outputBitLen The desired number of output bits (L). or 0 for an arbitrarily-long output (XOF). @param customization Pointer to the customization string (S). @param customBitLen The length of the customization string in bits. @return 0 if successful, 1 otherwise.