GF2nONBField, GF2nPolynomialField
| Modifier and Type | Field and Description |
|---|---|
| protected GF2Polynomial | fieldPolynomial
the irreducible fieldPolynomial stored in normal order (also for ONB) |
| protected Vector | fields
holds a list of GF2nFields to which elements have been converted and thus a COB-Matrix exists |
| protected Vector | matrices
the COB matrices |
| protected int | mDegree
the degree of this field |
| protected final SecureRandom |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract void | computeCOBMatrix(GF2nField
the GF2nField to convert to B1)Computes the change-of-basis matrix for basis conversion according to 1363. |
| protected abstract void | |
| public final GF2nElement | Returns: elem converted to a new element representation according to basisthe GF2nElement to convert elem, GF2nField the basis to convert elem to basis)Converts the given element in representation according to this field to a new element in representation according to B1 using the change-of-basis matrix calculated by computeCOBMatrix. |
| public final boolean | Returns: (this = = other)another object other)Overrides java. |
| public final int | |
| public final GF2Polynomial | Returns: a copy of the fieldpolynomial as a new BitstringReturns the fieldpolynomial as a new Bitstring. |
| protected abstract GF2nElement | Returns: a random root of BOFieldPolynomial in representation according to this fieldthe fieldpolynomial if the other basis as a Bitstring B0FieldPolynomial)Computes a random root from the given irreducible fieldpolynomial according to IEEE 1363 algorithm A.5.6. |
| public int | Returns: the hash code of this fieldOverrides java. |
| protected final GF2Polynomial[] | Returns: matrix^(-1)the matrix to invert as a Bitstring[] matrix)Inverts the given matrix represented as bitstrings. |
| fieldPolynomial | back to summary |
|---|---|
| protected GF2Polynomial fieldPolynomial the irreducible fieldPolynomial stored in normal order (also for ONB) | |
| fields | back to summary |
|---|---|
| protected Vector<E> fields holds a list of GF2nFields to which elements have been converted and thus a COB-Matrix exists | |
| matrices | back to summary |
|---|---|
| protected Vector<E> matrices the COB matrices | |
| mDegree | back to summary |
|---|---|
| protected int mDegree the degree of this field | |
| random | back to summary |
|---|---|
| protected final SecureRandom random | |
| GF2nField | back to summary |
|---|---|
| protected GF2nField(SecureRandom random) | |
| computeCOBMatrix | back to summary |
|---|---|
| protected abstract void computeCOBMatrix(GF2nField B1) 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 abstract void computeFieldPolynomial() Computes the fieldpolynomial. This can take a long time for big degrees. | |
| convert | back to summary |
|---|---|
| public final GF2nElement convert(GF2nElement elem, GF2nField basis) throws RuntimeException Converts the given element in representation according to this field to a new element in representation according to B1 using the change-of-basis matrix calculated by computeCOBMatrix.
| |
| equals | back to summary |
|---|---|
| public final boolean equals(Object other) Overrides java. Decides whether the given object other is the same as this field.
| |
| getDegree | back to summary |
|---|---|
| public final int getDegree() Returns the degree n of this field.
| |
| getFieldPolynomial | back to summary |
|---|---|
| public final GF2Polynomial getFieldPolynomial() Returns the fieldpolynomial as a new Bitstring.
| |
| getRandomRoot | back to summary |
|---|---|
| protected abstract GF2nElement getRandomRoot(GF2Polynomial B0FieldPolynomial) Computes a random root from the given irreducible fieldpolynomial according to IEEE 1363 algorithm A.5.6. This cal take very long for big degrees.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| invertMatrix | back to summary |
|---|---|
| protected final GF2Polynomial[] invertMatrix(GF2Polynomial[] matrix) Inverts the given matrix represented as bitstrings.
| |