|
Bouncy Castle Cryptography Library 1.79 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bouncycastle.pqc.legacy.math.linearalgebra.GF2nElement
This abstract class implements an element of the finite field GF(2) n in either optimal normal basis representation (ONB) or in polynomial representation. It is extended by the classes GF2nONBElement and GF2nPolynomialElement .
GF2nPolynomialElement
,
GF2nONBElement
,
GF2nONBField
Field Summary | |
protected int |
mDegree
holds the extension degree n of this element's corresponding field. |
protected GF2nField |
mField
holds a pointer to this element's corresponding field. |
Constructor Summary | |
GF2nElement()
|
Method Summary | |
abstract java.lang.Object |
clone()
|
GF2nElement |
convert(GF2nField basis)
Performs a basis transformation of this element to the given GF2nField basis. |
GF2nField |
getField()
Returns the field of this element. |
abstract GF2nElement |
increase()
Returns this element + 1. |
abstract void |
increaseThis()
Increases this element by one. |
abstract GF2nElement |
solveQuadraticEquation()
Solves a quadratic equation. |
abstract GF2nElement |
square()
Returns this element to the power of 2. |
abstract GF2nElement |
squareRoot()
Compute the square root of this element and return the result in a new GF2nElement . |
abstract void |
squareRootThis()
Compute the square root of this element. |
abstract void |
squareThis()
Squares this element. |
GFElement |
subtract(GFElement minuend)
Compute the difference of this element and minuend. |
void |
subtractFromThis(GFElement minuend)
Compute the difference of this element and minuend, overwriting this element. |
abstract boolean |
testRightmostBit()
Returns whether the rightmost bit of the bit representation is set. |
abstract int |
trace()
Returns the trace of this element. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.bouncycastle.pqc.legacy.math.linearalgebra.GFElement |
add, addToThis, equals, hashCode, invert, isOne, isZero, multiply, multiplyThisBy, toByteArray, toFlexiBigInt, toString, toString |
Field Detail |
protected GF2nField mField
protected int mDegree
Constructor Detail |
public GF2nElement()
Method Detail |
public abstract java.lang.Object clone()
clone
in interface GFElement
clone
in class java.lang.Object
public abstract boolean testRightmostBit()
public final GF2nField getField()
public abstract GF2nElement increase()
public abstract void increaseThis()
public final GFElement subtract(GFElement minuend)
subtract
in interface GFElement
minuend
- the minuendpublic final void subtractFromThis(GFElement minuend)
subtractFromThis
in interface GFElement
minuend
- the minuendpublic abstract GF2nElement square()
public abstract void squareThis()
public abstract GF2nElement squareRoot()
GF2nElement
.public abstract void squareRootThis()
public final GF2nElement convert(GF2nField basis)
basis
- the GF2nField representation to transform this element topublic abstract int trace()
public abstract GF2nElement solveQuadraticEquation() throws java.lang.RuntimeException
|
Bouncy Castle Cryptography Library 1.79 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |