Expand description
AVX2 helpers for implementing Poly1305 using 26-bit limbs.
Structsยง
- Addition
Key ๐ - Aligned2x130 ๐
- A pair of
Aligned130s. - Aligned4x130 ๐
- Four 130-bit integers aligned across five 26-bit limbs each.
- Aligned130 ๐
- A 130-bit integer aligned across five 26-bit limbs.
- Integer
Tag ๐ - Precomputed
Multiplier ๐ - A pre-computed multiplier.
- Spaced
Multiplier4x130 ๐ - A multiplier that takes 130-bit integers
(x3, x2, x1, x0)and computes(x3ยทR^4, x2ยทR^3, x1ยทR^2, x0ยทR) mod 2^130 - 5. - Unreduced4x130 ๐
- The unreduced output of an Aligned4x130 multiplication.
- Unreduced130 ๐
- The unreduced output of an
Aligned130multiplication.
Functionsยง
- adc ๐ โ
- Carry chain
- prepare_
keys ๐ โavx2 - Derives the Poly1305 addition and polynomial keys.
- red ๐ โ
- Reduction modulus 2^130-5
- set02 ๐
- write_
130 ๐ - Helper for Display impls of aligned values.
- write_
130_ ๐wide - Helper for Display impls of unreduced values.