eip_152::portable

Function compress

Source
pub fn compress(
    h: &mut [u64; 8],
    m: [u64; 16],
    t: [u64; 2],
    f: bool,
    rounds: usize,
)
Expand description

The Blake2b compression function F. See https://tools.ietf.org/html/rfc7693#section-3.2 Takes as an argument the state vector h, message block vector m, offset counter t, final block indicator flag f, and number of rounds rounds. The state vector provided as the first parameter is modified by the function.