Function xkcp_sys::KangarooTwelve_Final
source · pub unsafe extern "C" fn KangarooTwelve_Final(
ktInstance: *mut KangarooTwelve_Instance,
output: *mut c_uchar,
customization: *const c_uchar,
customByteLen: usize
) -> c_int
Expand description
Function to call after all the input message has been input, and to get output bytes if the length was specified when calling KangarooTwelve_Initialize(). @param ktInstance Pointer to the hash instance initialized by KangarooTwelve_Initialize(). If @a outputByteLen was not 0 in the call to KangarooTwelve_Initialize(), the number of output bytes is equal to @a outputByteLen. If @a outputByteLen was 0 in the call to KangarooTwelve_Initialize(), the output bytes must be extracted using the KangarooTwelve_Squeeze() function. @param output Pointer to the buffer where to store the output data. @param customization Pointer to the customization string (C). @param customByteLen The length of the customization string in bytes. @return 0 if successful, 1 otherwise.