pub fn sha2_256<D>(data: D) -> [u8; 32]where D: AsRef<[u8]>,
Hash the data into a 32-bytes array with SHA2 algorithm.