aztec-nr - sha256

Function partial_sha256_var_end

pub fn partial_sha256_var_end<let N: u32>(
    h: [u32; 8],
    msg: [u8; N],
    message_size: u32,
    real_message_size: u32,
) -> [u8; 32]

Given some state of a partially computed sha256 hash and remaining preimage, complete the hash @notice used for traditional partial hashing

@param N - the maximum length of the message to hash @param h - the intermediate hash state @param msg - the remaining preimage to hash @param message_size - the size of the current chunk @param real_message_size - the total size of the original preimage @return finalized sha256 hash