Expand description
Baby bear field.
Support for the finite field of order 15 * 2^27 + 1, and its degree 4
extension field. This field choice allows for 32-bit addition without
overflow.
Structs§
- Baby
Bear - Definition of this field for operations that operate on the baby bear field and its 4th degree extension.
- Elem
- The BabyBear class is an element of the finite field F_p, where P is the prime number 15*2^27 + 1. Put another way, Fp is basically integer arithmetic modulo P.
- ExtElem
- Instances of
ExtElemare elements of a finite fieldF_p^4. They are represented as elements ofF_p[X] / (X^4 + 11). This large finite field (about2^128elements) is used when the security of operations depends on the size of the field. The field extensionExtElemhasElemas a subfield, so operations on elements of each are compatible. The irreducible polynomialx^4 + 11was chosen because11is the simplest choice ofBETAforx^4 + BETAthat makes this polynomial irreducible.
Constants§
- P
- The modulus of the field.
Type Aliases§
- Baby
Bear Elem - Alias for the Baby Bear Elem
- Baby
Bear ExtElem - Alias for the Baby Bear ExtElem