Skip to main content

compress256_x4

Function compress256_x4 

Source
pub fn compress256_x4(states: &mut [[u32; 8]; 4], blocks: [&[u8; 64]; 4])
Expand description

Compresses one 64-byte block into each of four independent SHA-256 states, in place.

This is the four-way analogue of the portable single-stream block function. Each state absorbs its own block through the full 64 rounds plus the Davies-Meyer add. No padding or length suffix is involved. The caller owns the block contents.

On aarch64 with the sha2 feature the four lanes interleave over one SHA unit. Elsewhere the lanes compress one at a time through the portable block function.