Module poly1305

Source
Expand description

Module for the Poly1305 message authentication code (MAC) algorithm.

Structs§

Poly1305
Define the Poly1305 struct for the Poly1305 MAC algorithm.
SignedEnvelope
SignedEnvelope struct for handling data with its associated MAC.

Functions§

apply_poly1305_mod_p
Applies the modulo p reduction to the Poly1305 hash.
apply_poly1305_pad
Applies the pad to the Poly1305 hash.
calculate_poly1305_d_values
Calculates the d values for Poly1305.
calculate_poly1305_h_values
Calculates the h values for Poly1305.
finalize_poly1305_hash
Finalizes the Poly1305 hash computation.
poly1305_hash_to_tag
Converts the Poly1305 hash into a tag.