Function xkcp_sys::KMAC128_Squeeze

source ·
pub unsafe extern "C" fn KMAC128_Squeeze(
    kmkInstance: *mut KMAC_Instance,
    output: *mut BitSequence,
    outputBitLen: BitLength
) -> c_int
Expand description

Function to squeeze output data. @param kmInstance Pointer to the instance initialized by KMAC128_Initialize(). @param output Pointer to the buffer where to store the output data. @param outputBitLen The number of output bits desired. Only the last squeeze call can output a partial byte, other calls must have a length multiple of 8. @pre KMAC128_Final() must have been already called. @return 0 if successful, 1 otherwise.