UOV concrete binary fields and element encodings #
UOV v3.0 uses
F16 = F2[X] / (X ^ 4 + X + 1) and
F256 = F2[X] / (X ^ 8 + X ^ 4 + X ^ 3 + X + 1). These are exactly the existing
Cslib.BinaryField 4 and Cslib.BinaryField 8: their least-code irreducible moduli have binary
codes 19 = 0b10011 and 283 = 0b100011011, respectively.
The source stores a field element as the coefficients of its polynomial-basis representative.
Thus bit zero is the constant coefficient and the most significant bit of a nibble or byte is the
coefficient of X ^ 3 or X ^ 7. The equivalences below are the existing power-basis
Cslib.BinaryField.equivBits followed by the little-endian numbering
Cslib.BitString.equivFin. For F16, two elements are packed into one byte with the first
element in the least-significant nibble [UOV2026, Section 3.3, p. 19].
This module identifies only the concrete fields and individual-element/pair encodings. It does not define UOV keys, matrices, vector serialization, signing, retry behavior, assumptions, or security games.
Main definitions #
Cslib.Crypto.UOV.F16,Cslib.Crypto.UOV.F256: the two UOV implementation fields.Cslib.Crypto.UOV.f16EquivNibble: polynomial-basis encoding ofF16by a nibble.Cslib.Crypto.UOV.f256EquivByte: polynomial-basis encoding ofF256by a byte.Cslib.Crypto.UOV.f16PairEquivByte: low-nibble-first packing of twoF16elements.
Main results #
Cslib.Crypto.UOV.f16_modulus,Cslib.Crypto.UOV.f256_modulus: the existing binary fields use the exact UOV irreducible polynomials.Cslib.Crypto.UOV.val_f16EquivNibble_mk_polyOfCode,Cslib.Crypto.UOV.val_f256EquivByte_mk_polyOfCode: bounded polynomial codes round-trip through the source encodings.Cslib.Crypto.UOV.val_f16PairEquivByte: the first element occupies the low nibble.Cslib.Crypto.UOV.val_f16EquivNibble_root_pow_four,Cslib.Crypto.UOV.val_f256EquivByte_root_pow_eight: convention-sensitive evaluations of the two quotient relations.
References #
UOV's F16, using the library's explicit degree-four binary field.
UOV's F256, using the library's explicit degree-eight binary field.
The least-code degree-four irreducible binary polynomial has code 19 = 0b10011.
BinaryField 4 uses UOV's modulus X ^ 4 + X + 1.
BinaryField 8 uses UOV's modulus X ^ 8 + X ^ 4 + X ^ 3 + X + 1.
A bounded polynomial code is unchanged by UOV's F16 nibble encoding.
Decoding a nibble gives the class of the binary polynomial with that code.
A bounded polynomial code is unchanged by UOV's F256 byte encoding.
Decoding a byte gives the class of the binary polynomial with that code.
Low-nibble-first packing has unsigned value low + 16 * high.
The polynomial-basis generator X has nibble value 2, not the bit-reversed value 4.
The multiplicative identity has nibble value 1.
In UOV's F16, the quotient relation is X ^ 4 = X + 1, encoded as 0x3.
The polynomial-basis generator X has byte value 2, not the bit-reversed value 64.
In UOV's F256, the quotient relation is
X ^ 8 = X ^ 4 + X ^ 3 + X + 1, encoded as 0x1b.