[][src]Function randomx4r_sys::randomx_calculate_hash

pub unsafe extern "C" fn randomx_calculate_hash(
    machine: *mut randomx_vm,
    input: *const c_void,
    inputSize: size_t,
    output: *mut c_void
)

Calculates a RandomX hash value.

@param machine is a pointer to a randomx_vm structure. Must not be NULL. @param input is a pointer to memory to be hashed. Must not be NULL. @param inputSize is the number of bytes to be hashed. @param output is a pointer to memory where the hash will be stored. Must not be NULL and at least RANDOMX_HASH_SIZE bytes must be available for writing.