GF2nField, GF2nONBElement
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private int | mBit
holds the number of relevant bits in mONBPol[mLength-1]. |
| private int | mLength
holds the length of the array-representation of degree mDegree. |
| pack-priv int[][] | mMult
holds the multiplication matrix |
| private int | mType
holds the type of mONB |
| Access | Constructor and Description |
|---|---|
| public | GF2nONBField(int
-the extention degree of this field deg, SecureRandom - a source of randomness for generating polynomials on the field. random)constructs an instance of the finite field with 2deg elements and characteristic 2. |
| Modifier and Type | Method and Description |
|---|---|
| protected void | computeCOBMatrix(GF2nField
the GF2nField to convert to B1)Implements abstract org. Computes the change-of-basis matrix for basis conversion according to 1363. |
| protected void | computeFieldPolynomial()
Implements abstract org. Computes the field polynomial for a ONB according to IEEE 1363 A.7.2 (p110f). |
| private void | |
| private void | |
| private int | |
| pack-priv int | |
| pack-priv int | |
| protected GF2nElement | Returns: a random root of the polynomiala polynomial polynomial)Implements abstract org. Computes a random root of the given polynomial. |
| pack-priv int[][] |
| MAXLONG | back to summary |
|---|---|
| private static final int MAXLONG | |
| mBit | back to summary |
|---|---|
| private int mBit holds the number of relevant bits in mONBPol[mLength-1]. | |
| mLength | back to summary |
|---|---|
| private int mLength holds the length of the array-representation of degree mDegree. | |
| mMult | back to summary |
|---|---|
| pack-priv int[][] mMult holds the multiplication matrix | |
| mType | back to summary |
|---|---|
| private int mType holds the type of mONB | |
| GF2nONBField | back to summary |
|---|---|
| public GF2nONBField(int deg, SecureRandom random) throws RuntimeException constructs an instance of the finite field with 2deg elements and characteristic 2.
| |
| computeCOBMatrix | back to summary |
|---|---|
| protected void computeCOBMatrix(GF2nField B1) Implements abstract org. Computes the change-of-basis matrix for basis conversion according to 1363. The result is stored in the lists fields and matrices.
| |
| computeFieldPolynomial | back to summary |
|---|---|
| protected void computeFieldPolynomial() Implements abstract org. Computes the field polynomial for a ONB according to IEEE 1363 A.7.2 (p110f).
| |
| computeMultMatrix | back to summary |
|---|---|
| private void computeMultMatrix() | |
| computeType | back to summary |
|---|---|
| private void computeType() throws RuntimeException | |
| elementOfOrder | back to summary |
|---|---|
| private int elementOfOrder(int k, int p) | |
| getONBBit | back to summary |
|---|---|
| pack-priv int getONBBit() | |
| getONBLength | back to summary |
|---|---|
| pack-priv int getONBLength() | |
| getRandomRoot | back to summary |
|---|---|
| protected GF2nElement getRandomRoot(GF2Polynomial polynomial) Implements abstract org. Computes a random root of the given polynomial.
| |
| invMatrix | back to summary |
|---|---|
| pack-priv int[][] invMatrix(int[][] a) Compute the inverse of a matrix a.
| |