|
Bouncy Castle Cryptography Library 1.81 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface defines a finite field element. It is implemented by the
class GF2nElement.
GF2nElement| Method Summary | |
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. |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.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. |
java.math.BigInteger |
toFlexiBigInt()
Returns this element as FlexiBigInt. |
java.lang.String |
toString()
Return a String representation of this element. |
java.lang.String |
toString(int radix)
Return a String representation of this element. |
| Method Detail |
public java.lang.Object clone()
public boolean equals(java.lang.Object other)
other - the other object
public int hashCode()
public boolean isZero()
public boolean isOne()
public GFElement add(GFElement addend)
throws java.lang.RuntimeException
addend - the addend
java.lang.RuntimeException
public void addToThis(GFElement addend)
throws java.lang.RuntimeException
addend - the addend
java.lang.RuntimeException
public GFElement subtract(GFElement minuend)
throws java.lang.RuntimeException
minuend - the minuend
java.lang.RuntimeExceptionpublic void subtractFromThis(GFElement minuend)
minuend - the minuend
public GFElement multiply(GFElement factor)
throws java.lang.RuntimeException
factor - the factor
java.lang.RuntimeException
public void multiplyThisBy(GFElement factor)
throws java.lang.RuntimeException
factor - the factor
java.lang.RuntimeException
public GFElement invert()
throws java.lang.ArithmeticException
java.lang.ArithmeticException - if this is the zero element.public java.math.BigInteger toFlexiBigInt()
public byte[] toByteArray()
public java.lang.String toString()
public java.lang.String toString(int radix)
radix - specifies the radix of the String representation
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||