Polynomial-time binary-field operations #
Trial division and exhaustive irreducible-polynomial search are polynomial in the unary search bound, not in the degree. Coordinate multiplication is polynomial uniformly in its table. These certificates are shared by affine dispersers, hardness encodings and small-bias spaces; logarithmic degrees make the search polynomial in the latter constructions' parameters.
Main results #
Cslib.BinaryField.computableInPolyTime_leastIrreducibleCode: bounded modulus search.Cslib.BinaryField.computableInPolyTime_fieldMul: coordinate multiplication.
Binary polynomials #
Multiplication by X modulo a binary polynomial, on coefficient lists.
The remainder modulo a binary polynomial, by a left fold over the coefficients whose state, the
current power of X and the partial remainder, never exceeds the degree of the modulus.
The binary digits of a unary natural.
The irreducibility test by trial division, on a unary code.
The exhaustive search for the least irreducible code below a unary bound.
The remainders of the powers of X.
An entry of a computed multiplication table.
Multiplication in coordinates, uniformly in the multiplication table: the sum of at most
n ^ 2 table entries, n the number of rows.
Multiplication in coordinates, as a composition rule.
The multiplication table of the power basis, from the coefficient list of the modulus.