Function xkcp_sys::Kra

source ·
pub unsafe extern "C" fn Kra(
    kvInstance: *mut Kravatte_Instance,
    input: *const BitSequence,
    inputBitLen: BitLength,
    flags: c_int
) -> c_int
Expand description

Function to give input data to be compressed. @param kvInstance Pointer to the instance initialized by Kravatte_MaskDerivation(). @param input Pointer to the input message data (M). @param inputBitLen The number of bits provided in the input message data. This must be a multiple of 8 if KRAVATTE_FLAG_LAST_PART flag not set. @param flags Bitwise or combination of KRAVATTE_FLAG_NONE, KRAVATTE_FLAG_INIT, KRAVATTE_FLAG_LAST_PART. @return 0 if successful, 1 otherwise.