extern_hash_memory

Function extern_hash_memory 

Source
pub unsafe extern "C" fn extern_hash_memory(
    ptr: u32,
    num_elements: u32,
    result_ptr: *mut Felt,
)
Expand description

Computes the hash of a sequence of field elements using the Rescue Prime Optimized (RPO) hash function.

This maps to the std::crypto::rpo::hash_memory procedure in the Miden stdlib.

Input: A pointer to the memory location and the number of elements to hash Output: One digest (4 field elements) The output is passed back to the caller via a pointer.