BinaryExtensionField class

An immutable descriptor for a binary extension field GF(2^m).

Elements use degree packed bits as polynomial-basis coefficients and are reduced modulo modulus. The modulus must be irreducible over GF(2) and have degree at least one.

Annotations

Constructors

BinaryExtensionField({required BinaryPolynomial modulus, GfBasis basis = GfBasis.polynomial})
Creates a binary extension field defined by modulus.

Properties

basis → GfBasis
The basis used for packed element representation.
final
codec → LogicValueCodec<GfValue>
A codec for arrays of values belonging to this field.
no setter
degree → int
The extension degree m in GF(2^m).
no setter
elementMask → BigInt
The packed mask for one field element.
no setter
hashCode → int
The hash code for this object.
no setteroverride
modulus → BinaryPolynomial
The irreducible polynomial defining this field.
final
multiplicativeOrder → BigInt
The order of the field's multiplicative group.
no setter
one → GfValue
The multiplicative identity.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → BigInt
The number of elements in the field.
no setter
x → GfValue
The polynomial-basis element x.
no setter
zero → GfValue
The additive identity.
no setter

Methods

element(BigInt value) → GfValue
Creates a field element from packed value.
elementFromInt(int value) → GfValue
Creates a field element from a packed integer value.
fromLogicValue(LogicValue value) → GfValue
Creates a field element from a two-state value.
fromPolynomial(BinaryPolynomial polynomial) → GfValue
Reduces polynomial modulo this field's defining polynomial.
generateExponentTable({int maximumElements = 1048575}) → List<GfValue>
Generates x^0 through x^(2^m - 2) for reference-model use.
generateLogTable({int maximumElements = 1048575}) → List<int>
Generates packed-element logarithms to base x.
isCompatibleWith(BinaryExtensionField other) → bool
Whether other describes this same field and basis.
isPrimitivePolynomial({int maximumOrder = 1048575}) → bool
Whether x generates every non-zero element of this field.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requireCompatible(BinaryExtensionField other) → void
Throws if other does not describe this same field and basis.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override