| java.lang.Object | |
| ↳ | java.security.spec.ECFieldF2m |
The parameters specifying a characteristic 2 finite field of an elliptic curve.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
ECFieldF2m with 2^m elements with a normal
basis. | |||||||||||
Creates a new
ECFieldF2m with 2^m elements with a polynomial
basis and the reduction polynomial based on rp. | |||||||||||
Creates a new
ECFieldF2m with 2^m elements with
a polynomial basis and the reduction polynomial based on ks. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns whether the specified object equals to this finite field.
| |||||||||||
Returns the size of this finite field (in bits).
| |||||||||||
Returns the exponent
m for this finite field, with 2^m as
the number of elements. | |||||||||||
Returns a copy of the integer array containing the order of the middle
term(s) of the reduction polynomial for a polynomial basis.
| |||||||||||
Returns the base of the reduction polynomial with the n-th bit
corresponding to the n-th coefficient of the reduction polynomial for a
polynomial basis.
| |||||||||||
Returns the hashcode value for this finite field.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
| |||||||||||
From interface java.security.spec.ECField
| |||||||||||
Creates a new ECFieldF2m with 2^m elements with a normal
basis.
| m | the exponent m for the number of elements. |
|---|
public
ECFieldF2m
(int m, BigInteger rp)
Since: API Level 1
Creates a new ECFieldF2m with 2^m elements with a polynomial
basis and the reduction polynomial based on rp.
The reduction polynomial must be either trinomial or
pentanomial.
Parameters
m
| the exponent |
|---|---|
rp
| the base of the reduction polynomial with the n-th bit
corresponding to the n-th coefficient of the reduction
polynomial. |
public
ECFieldF2m
(int m, int[] ks)
Since: API Level 1
Creates a new ECFieldF2m with 2^m elements with
a polynomial basis and the reduction polynomial based on ks.
The reduction polynomial must be either trinomial or
pentanomial.
Parameters
| |
|---|---|
| |
Throws
| |
|---|
Public Methods
public
boolean
equals
(Object obj)
Since: API Level 1
Returns whether the specified object equals to this finite field.
Parameters
| |
|---|
Returns
true if the specified object is equal to this finite field,
otherwise false.
public
int
getFieldSize
()
Since: API Level 1
Returns the size of this finite field (in bits).
Returns
the size of this finite field (in bits).
public
int
getM
()
Since: API Level 1
Returns the exponent m for this finite field, with 2^m as
the number of elements.
Returns
the exponent m for this finite field
public
int[]
getMidTermsOfReductionPolynomial
()
Since: API Level 1
Returns a copy of the integer array containing the order of the middle
term(s) of the reduction polynomial for a polynomial basis.
Returns
a copy of the integer array containing the order of the middle
term(s) of the reduction polynomial for a polynomial basis or
null for a normal basis.
public
BigInteger
getReductionPolynomial
()
Since: API Level 1
Returns the base of the reduction polynomial with the n-th bit
corresponding to the n-th coefficient of the reduction polynomial for a
polynomial basis.
Returns
the base of the reduction polynomial with the n-th bit
corresponding to the n-th coefficient of the reduction polynomial
for a polynomial basis or null for a normal basis.
public
int
hashCode
()
Since: API Level 1
Returns the hashcode value for this finite field.
Returns
the hashcode value for this finite field.