Function xkcp_sys::ParallelHash256_Initialize
source · pub unsafe extern "C" fn ParallelHash256_Initialize(
ParallelHashInstance: *mut ParallelHash_Instance,
blockByteLen: usize,
outputBitLen: BitLength,
customization: *const BitSequence,
customBitLen: BitLength
) -> c_int
Expand description
Function to initialize the parallel hash function ParallelHash256 instance used in sequential hashing mode. @param ParallelHashInstance Pointer to the hash instance to be initialized. @param blockByteLen Block size (B) in bytes, must be a power of 2. The minimum value is 8 in this implementation. @param outputBitLen The desired number of output bits (L). or 0 for an arbitrarily-long output (XOF). @param customization Pointer to the customization string (S). @param customBitLen The length of the customization string in bits. @return 0 if successful, 1 otherwise.