Documentation

CslibFrontier.Crypto.Protocols.UOV.Field

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 #

Main results #

References #

@[reducible, inline]

UOV's F16, using the library's explicit degree-four binary field.

@[reducible, inline]

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.

UOV's polynomial-basis encoding of an F16 element as one nibble. Coordinate zero is the constant coefficient.

UOV's polynomial-basis encoding of an F256 element as one byte. Coordinate zero is the constant coefficient.

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.

Pack two F16 elements into one byte. The first element is the low nibble and the second is the high nibble, as in UOV v3.0, Section 3.3.

theorem Cslib.Crypto.UOV.val_f16PairEquivByte (low high : F16) :
↑(f16PairEquivByte (low, high)) = ↑(f16EquivNibble low) + 16 * ↑(f16EquivNibble high)

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.