Skip to main content

populate_message_block

Function populate_message_block 

Source
pub fn populate_message_block(
    w: &mut WitnessFiller<'_>,
    m: &[Wire; 16],
    bytes: [u8; 64],
)
Expand description

Populates the 16 message-block wires of a sha256_compress block from its 64 message bytes.

The bytes are packed big-endian into 16 32-bit words, one per wire, with the high 32 bits left zero — matching the precondition on m documented in sha256_compress.