| Constructor and Description |
|---|
PolynomialField(java.math.BigInteger basis)
Deprecated.
Creates a field over GF2m with the polynomial basis,
basis. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Deprecated.
Compares two polynomial fields for equality.
|
java.math.BigInteger |
getBasis()
Deprecated.
Returns the generating polynomial as defined in X9.62.
|
int |
getFieldSize()
Deprecated.
Returns the field size in bits.
|
java.lang.String |
getFieldType()
Deprecated.
Returns a
String defining the type of the calling field. |
java.math.BigInteger |
getNumberOfElements()
Deprecated.
Returns the number of elements in the calling field.
|
FieldElement |
getOneElement()
Deprecated.
Returns the neutral element (or identity element) with respect to multiplication.
|
FieldElement |
getZeroElement()
Deprecated.
Returns the neutral element (or identity element) with respect to addition.
|
ASN1Object |
toASN1Object()
Deprecated.
Returns an ASN.1 structure representing the calling field.
|
java.lang.String |
toString()
Deprecated.
Returns a String
|
public PolynomialField(java.math.BigInteger basis)
basis.
The basis is not validated in any way (irreduceable, ...)
basis - the integer representation of a polynomial, according to X9.62.java.lang.IllegalArgumentException - if basis is negative or zeropublic FieldElement getZeroElement()
The identity element is an element e, such that for all
elements g in this field, g+e = g. There is only
one such element.
getZeroElement in interface Fieldpublic FieldElement getOneElement()
The identity element e such that for all elements g in this
field, g*e = g. There is only one such element.
getOneElement in interface Fieldpublic java.math.BigInteger getNumberOfElements()
This method is identical to getFieldOrder.
getNumberOfElements in interface Fieldpublic java.lang.String getFieldType()
String defining the type of the calling field.
getFieldType in interface FieldString describing the type of this fieldpublic java.math.BigInteger getBasis()
public boolean equals(java.lang.Object obj)
Two polynomial fields are equal if their bases are equal.
public ASN1Object toASN1Object() throws java.lang.IllegalStateException
The ASN.1 structure is built according to the definition in X9.62.
toASN1Object in interface Fieldjava.lang.IllegalStateException - if the polynomial is neither a trinomial nor a pentanomial
no ASN.1 syntax is defined for trinomials or pentanomialspublic java.lang.String toString()
Stringpublic int getFieldSize()
For characteristic 2 finite fields F2m, m is returned.
getFieldSize in interface Field