Function xkcp_sys::cSHAKE128

source ·
pub unsafe extern "C" fn cSHAKE128(
    input: *const BitSequence,
    inputBitLen: BitLength,
    output: *mut BitSequence,
    outputBitLen: BitLength,
    name: *const BitSequence,
    nameBitLen: BitLength,
    customization: *const BitSequence,
    customBitLen: BitLength
) -> c_int
Expand description

cSHAKE128 function, as defined in NIST’s Special Publication 800-185, published December 2016. @param input Pointer to the input message (X). @param inputBitLen The length of the input message in bits. @param output Pointer to the output buffer. @param outputBitLen The desired number of output bits (L). @param name Pointer to the function name string (N). @param nameBitLen The length of the function name in bits. Only full bytes are supported, length must be a multiple of 8. @param customization Pointer to the customization string (S). @param customBitLen The length of the customization string in bits. @return 0 if successful, 1 otherwise.