Package | Description |
---|---|
org.bouncycastle.pqc.math.linearalgebra |
Modifier and Type | Class and Description |
---|---|
class |
GF2nONBElement
This class implements an element of the finite field GF(2n ).
|
class |
GF2nPolynomialElement
This class implements elements of finite binary fields GF(2n)
using polynomial representation.
|
Modifier and Type | Method and Description |
---|---|
GF2nElement |
GF2nPolynomial.at(int index)
Returns the coefficient at index.
|
GF2nElement |
GF2nField.convert(GF2nElement elem,
GF2nField 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.
|
GF2nElement |
GF2nElement.convert(GF2nField basis)
Performs a basis transformation of this element to the given GF2nField
basis.
|
protected GF2nElement |
GF2nPolynomialField.getRandomRoot(GF2Polynomial polynomial)
Compute a random root of the given GF2Polynomial.
|
protected abstract GF2nElement |
GF2nField.getRandomRoot(GF2Polynomial B0FieldPolynomial)
Computes a random root from the given irreducible fieldpolynomial
according to IEEE 1363 algorithm A.5.6.
|
protected GF2nElement |
GF2nONBField.getRandomRoot(GF2Polynomial polynomial)
Computes a random root of the given polynomial.
|
GF2nElement |
GF2nONBElement.increase()
returns this element + 1.
|
abstract GF2nElement |
GF2nElement.increase()
Returns this element + 1.
|
GF2nElement |
GF2nPolynomialElement.increase()
Returns this element + 'one".
|
GF2nElement |
GF2nONBElement.solveQuadraticEquation()
Solves a quadratic equation.
Let z2 + z = this. |
abstract GF2nElement |
GF2nElement.solveQuadraticEquation()
Solves a quadratic equation.
Let z2 + z = this. |
GF2nElement |
GF2nPolynomialElement.solveQuadraticEquation()
Solves the quadratic equation z2 + z = this if
such a solution exists.
|
GF2nElement |
GF2nONBElement.square()
returns this element to the power of 2.
|
abstract GF2nElement |
GF2nElement.square()
Returns this element to the power of 2.
|
GF2nElement |
GF2nPolynomialElement.square()
This method is used internally to map the square()-calls within
GF2nPolynomialElement to one of the possible squaring methods.
|
GF2nElement |
GF2nONBElement.squareRoot()
returns the root ofthis element.
|
abstract GF2nElement |
GF2nElement.squareRoot()
Compute the square root of this element and return the result in a new
GF2nElement . |
GF2nElement |
GF2nPolynomialElement.squareRoot()
Compute the square root of this element and return the result in a new
GF2nPolynomialElement . |
Modifier and Type | Method and Description |
---|---|
GF2nElement |
GF2nField.convert(GF2nElement elem,
GF2nField 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.
|
GF2nPolynomial |
GF2nPolynomial.scalarMultiply(GF2nElement s)
Multiplies the scalar s to each coefficient of this
PolynomialGF2n and returns the result in a new PolynomialGF2n.
|
void |
GF2nPolynomial.set(int index,
GF2nElement elem)
Sets the coefficient at index to elem.
|
Constructor and Description |
---|
GF2nPolynomial(int deg,
GF2nElement elem)
Creates a new PolynomialGF2n of size deg and elem as
coefficients.
|
Copyright © 2016 BouncyCastle.org. All rights reserved.