apply_poly1305_mod_p

Function apply_poly1305_mod_p 

Source
pub fn apply_poly1305_mod_p(
    hash: &mut [u32; 5],
    d0: &mut u64,
    d1: &mut u64,
    d2: &mut u64,
    d3: &mut u64,
    d4: &mut u64,
)
Expand description

Applies the modulo p reduction to the Poly1305 hash.

This function performs the modulo p reduction on the hash state, which is part of the Poly1305 algorithm. It modifies the hash state in-place.

ยงArguments

  • hash - A mutable reference to the Poly1305 hash state.
  • d0, d1, d2, d3, d4 - Mutable references to the d values.