Skip to main content

sha256_x4

Function sha256_x4 

Source
pub fn sha256_x4(inputs: [&[u8]; 4]) -> [Hash; 4]
Expand description

Hashes four equal-length byte inputs into four standard SHA-256 digests.

The inputs hash as four independent streams. On aarch64 with the sha2 feature those streams interleave over one SHA unit.

ยงPanics

Panics if the four inputs are not all the same length.