Class PolynomialRingGF2m
java.lang.Object
org.bouncycastle.pqc.legacy.math.linearalgebra.PolynomialRingGF2m
This class represents polynomial rings GF(2^m)[X]/p(X) for
m<32. If p(X) is irreducible, the polynomial ring
is in fact an extension field of GF(2^m).
-
Field Summary
Modifier and TypeFieldDescriptionprotected PolynomialGF2mSmallM[]
the squaring matrix for this polynomial ring (given as the array of its row vectors)protected PolynomialGF2mSmallM[]
the matrix for computing square roots in this polynomial ring (given as the array of its row vectors). -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription
-
Field Details
-
sqMatrix
the squaring matrix for this polynomial ring (given as the array of its row vectors) -
sqRootMatrix
the matrix for computing square roots in this polynomial ring (given as the array of its row vectors). This matrix is computed as the inverse of the squaring matrix.
-
-
Constructor Details
-
PolynomialRingGF2m
Constructor.- Parameters:
field
- the finite fieldp
- the reduction polynomial
-
-
Method Details
-
getSquaringMatrix
- Returns:
- the squaring matrix for this polynomial ring
-
getSquareRootMatrix
- Returns:
- the matrix for computing square roots for this polynomial ring
-