pub fn blake2_256(data: &[u8]) -> [u8; 32] {
	let mut result: [u8; 32] = Default::default();
	unsafe {
		ext_blake2_256.get()(data.as_ptr(), data.len() as u32, result.as_mut_ptr());
	}
	result
}
/// Conduct a 256-bit Blake2 hash.
Conduct a 256-bit Blake2 hash.
Conduct a 256 - bit Blake2 hash .
pub fn blake2_256(data: &[u8]) -> [u8; 32] {
	let mut result: [u8; 32] = Default::default();
	unsafe {
		ext_blake2_256.get()(data.as_ptr(), data.len() as u32, result.as_mut_ptr());
	}
	result
}
pub fn blake2_256 ( data : & [ u8 ] ) -> [ u8 ; 32 ] { let mut result : [ u8 ; 32 ] = Default :: default ( ) ; unsafe { ext_blake2_256 . get ( ) ( data . as_ptr ( ) , data . len ( ) as u32 , result . as_mut_ptr ( ) ) ; } result }
Conduct a 256-bit Blake2 hash.
Conduct a 256 - bit Blake2 hash .
data
&[u8]
data
&[u8]