extern_hash_memory_words

Function extern_hash_memory_words 

Source
pub unsafe extern "C" fn extern_hash_memory_words(
    start_addr: u32,
    end_addr: u32,
    result_ptr: *mut Felt,
)
Expand description

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

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

Input: The start and end addresses (in field elements) of the words to hash. Output: One digest (4 field elements) The output is passed back to the caller via a pointer.