calculate_poly1305_d_values

Function calculate_poly1305_d_values 

Source
pub fn calculate_poly1305_d_values(
    h0: u32,
    h1: u32,
    h2: u32,
    h3: u32,
    h4: u32,
    r0: u32,
    r1: u32,
    r2: u32,
    r3: u32,
    r4: u32,
    s1: u32,
    s2: u32,
    s3: u32,
    s4: u32,
) -> (u64, u64, u64, u64, u64)
Expand description

Calculates the d values for Poly1305.

This function computes the d values based on the h values and key-related values (r and s arrays). These calculations are part of the Poly1305 algorithm for message authentication.

§Arguments

  • h0, h1, h2, h3, h4 - The h values from the Poly1305 state.
  • r0, r1, r2, r3, r4 - The r values from the Poly1305 key.
  • s1, s2, s3, s4 - The s values, which are derived from the r values.

§Returns

A tuple of five u64 values representing the calculated d values.