Uses of Class
org.bouncycastle.pqc.legacy.math.linearalgebra.GF2nElement
Packages that use GF2nElement
-
Uses of GF2nElement in org.bouncycastle.pqc.legacy.math.linearalgebra
Subclasses of GF2nElement in org.bouncycastle.pqc.legacy.math.linearalgebraModifier and TypeClassDescriptionclassThis class implements an element of the finite field GF(2n ).classThis class implements elements of finite binary fields GF(2n) using polynomial representation.Methods in org.bouncycastle.pqc.legacy.math.linearalgebra that return GF2nElementModifier and TypeMethodDescriptionfinal GF2nElementGF2nPolynomial.at(int index) Returns the coefficient at index.final GF2nElementPerforms a basis transformation of this element to the given GF2nField basis.final GF2nElementGF2nField.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.protected abstract GF2nElementGF2nField.getRandomRoot(GF2Polynomial B0FieldPolynomial) Computes a random root from the given irreducible fieldpolynomial according to IEEE 1363 algorithm A.5.6.protected GF2nElementGF2nONBField.getRandomRoot(GF2Polynomial polynomial) Computes a random root of the given polynomial.protected GF2nElementGF2nPolynomialField.getRandomRoot(GF2Polynomial polynomial) Compute a random root of the given GF2Polynomial.abstract GF2nElementGF2nElement.increase()Returns this element + 1.GF2nONBElement.increase()returns this element + 1.GF2nPolynomialElement.increase()Returns this element + 'one".abstract GF2nElementGF2nElement.solveQuadraticEquation()Solves a quadratic equation.
Let z2 + z = this.GF2nONBElement.solveQuadraticEquation()Solves a quadratic equation.
Let z2 + z = this.GF2nPolynomialElement.solveQuadraticEquation()Solves the quadratic equation z2 + z = this if such a solution exists.abstract GF2nElementGF2nElement.square()Returns this element to the power of 2.GF2nONBElement.square()returns this element to the power of 2.GF2nPolynomialElement.square()This method is used internally to map the square()-calls within GF2nPolynomialElement to one of the possible squaring methods.abstract GF2nElementGF2nElement.squareRoot()Compute the square root of this element and return the result in a newGF2nElement.GF2nONBElement.squareRoot()returns the root ofthis element.GF2nPolynomialElement.squareRoot()Compute the square root of this element and return the result in a newGF2nPolynomialElement.Methods in org.bouncycastle.pqc.legacy.math.linearalgebra with parameters of type GF2nElementModifier and TypeMethodDescriptionfinal GF2nElementGF2nField.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.final GF2nPolynomialGF2nPolynomial.scalarMultiply(GF2nElement s) Multiplies the scalar s to each coefficient of this PolynomialGF2n and returns the result in a new PolynomialGF2n.final voidGF2nPolynomial.set(int index, GF2nElement elem) Sets the coefficient at index to elem.Constructors in org.bouncycastle.pqc.legacy.math.linearalgebra with parameters of type GF2nElementModifierConstructorDescriptionGF2nPolynomial(int deg, GF2nElement elem) Creates a new PolynomialGF2n of size deg and elem as coefficients.