sha256
Computes SHA-256 hash of the input data
This function implements the SHA-256 cryptographic hash algorithm following RFC 6234. It processes the input by padding it appropriately, then processing in 512-bit blocks through 64 rounds of operations using the SHA-256 compression function.
Arguments
data- Array of bytes to be hashed
Returns
Array<u8>- The 32-byte SHA-256 hash digest as an array of bytes
Fully qualified path: alexandria_math::sha256::sha256
pub fn sha256(mut data: Array<u8>) -> Array<u8>