java.lang.Object | ||
↳ | org.bouncycastle.math.ec.ECFieldElement | |
↳ | org.bouncycastle.math.ec.ECFieldElement.F2m |
Class representing the Elements of the finite field
F2m
in polynomial basis (PB)
representation. Both trinomial (TPB) and pentanomial (PPB) polynomial
basis representations are supported. Gaussian normal basis (GNB)
representation is not supported.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | GNB | Indicates gaussian normal basis representation (GNB). | |||||||||
int | PPB | Indicates pentanomial basis representation (PPB). | |||||||||
int | TPB | Indicates trinomial basis representation (TPB). |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.bouncycastle.math.ec.ECConstants
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor for PPB.
| |||||||||||
Constructor for TPB.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Checks, if the ECFieldElements
a and b
are elements of the same field F2m
(having the same representation). | |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.bouncycastle.math.ec.ECFieldElement
| |||||||||||
From class
java.lang.Object
|
Indicates gaussian normal basis representation (GNB). Number chosen according to X9.62. GNB is not implemented at present.
Indicates pentanomial basis representation (PPB). Number chosen according to X9.62.
Indicates trinomial basis representation (TPB). Number chosen according to X9.62.
Constructor for PPB.
m | The exponent m of
F2m . |
---|---|
k1 | The integer k1 where xm +
xk3 + xk2 + xk1 + 1
represents the reduction polynomial f(z) . |
k2 | The integer k2 where xm +
xk3 + xk2 + xk1 + 1
represents the reduction polynomial f(z) . |
k3 | The integer k3 where xm +
xk3 + xk2 + xk1 + 1
represents the reduction polynomial f(z) . |
x | The BigInteger representing the value of the field element. |
Constructor for TPB.
m | The exponent m of
F2m . |
---|---|
k | The integer k where xm +
xk + 1 represents the reduction
polynomial f(z) . |
x | The BigInteger representing the value of the field element. |
Checks, if the ECFieldElements a
and b
are elements of the same field F2m
(having the same representation).
a | field element. |
---|---|
b | field element to be compared. |
IllegalArgumentException | if a and b
are not elements of the same field
F2m (having the same
representation).
|
---|
k
where xm +
xk + 1
represents the reduction polynomial
f(z)
.k1
where xm +
xk3 + xk2 + xk1 + 1
represents the reduction polynomial f(z)
.0
k2
where xm +
xk3 + xk2 + xk1 + 1
represents the reduction polynomial f(z)
.0
k3
where xm +
xk3 + xk2 + xk1 + 1
represents the reduction polynomial f(z)
.m
of the reduction polynomial
f(z)
.
F2m
, either of
TPB (trinomial
basis representation) or
PPB (pentanomial
basis representation).