public interface GFElement
GF2nElement
.GF2nElement
Modifier and Type | Method and Description |
---|---|
GFElement |
add(GFElement addend)
Compute the sum of this element and the addend.
|
void |
addToThis(GFElement addend)
Compute the sum of this element and the addend, overwriting this element.
|
Object |
clone() |
boolean |
equals(Object other)
Compare this curve with another object.
|
int |
hashCode() |
GFElement |
invert()
Compute the multiplicative inverse of this element.
|
boolean |
isOne()
Checks whether this element is one.
|
boolean |
isZero()
Checks whether this element is zero.
|
GFElement |
multiply(GFElement factor)
Compute the product of this element and factor.
|
void |
multiplyThisBy(GFElement factor)
Compute this * factor (overwrite this).
|
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.
|
byte[] |
toByteArray()
Returns this element as byte array.
|
BigInteger |
toFlexiBigInt()
Returns this element as FlexiBigInt.
|
String |
toString()
Return a String representation of this element.
|
String |
toString(int radix)
Return a String representation of this element.
|
Object clone()
boolean equals(Object other)
boolean isZero()
boolean isOne()
GFElement add(GFElement addend) throws RuntimeException
addend
- the addendRuntimeException
void addToThis(GFElement addend) throws RuntimeException
addend
- the addendRuntimeException
GFElement subtract(GFElement minuend) throws RuntimeException
minuend
- the minuendRuntimeException
void subtractFromThis(GFElement minuend)
minuend
- the minuendGFElement multiply(GFElement factor) throws RuntimeException
factor
- the factorRuntimeException
void multiplyThisBy(GFElement factor) throws RuntimeException
factor
- the factorRuntimeException
GFElement invert() throws ArithmeticException
ArithmeticException
- if this is the zero element.BigInteger toFlexiBigInt()
byte[] toByteArray()
String toString()
String toString(int radix)
radix
- specifies the radix of the String representationCopyright © 2020 BouncyCastle.org. All rights reserved.