Function subhasher::sha2_256

source ·
pub fn sha2_256<D>(data: D) -> [u8; 32]
where D: AsRef<[u8]>,
Expand description

Hash the data into a 32-bytes array with SHA2 algorithm.