Function xkcp_sys::Kravatte

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

Function to compress input data and expand output data. @param kvInstance Pointer to the instance initialized by Kravatte_MaskDerivation(). @param input Pointer to the input message (M). @param inputBitLen The number of bits provided in the input message data. @param output Pointer to the output buffer. @param outputBitLen The number of output bits desired. @param flags Bitwise or combination of KRAVATTE_FLAG_NONE, KRAVATTE_FLAG_INIT, KRAVATTE_FLAG_SHORT, KRAVATTE_FLAG_LAST_PART. KRAVATTE_FLAG_LAST_PART is internally forced to true for input and output. @return 0 if successful, 1 otherwise.