bitcoin-poly1305 0.1.19

Poly1305 is a universal hash function suitable for use as a one-time authenticator and, when combined with a cipher, a message authentication code (MAC). It takes a 32-byte one-time key and a message and produces a 16-byte tag, which can be used to authenticate the message.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// ---------------- [ File: bitcoin-poly1305/src/lib.rs ]
#[macro_use] mod imports; use imports::*;

x!{accumulate_block}
x!{add_pad_serialize}
x!{compute_g_plus5_minus_p}
x!{ct_select_limbs}
x!{expand_key}
x!{final_carry_and_sub_p}
x!{multiply_and_reduce}
x!{poly1305}
x!{poly1305_auth}
x!{propagate_26bit_carries_once}
x!{read_write}
x!{trace_step}