com.entrust.toolkit.security.crypto.ec insteadpublic interface FieldElement
| Modifier and Type | Method and Description |
|---|---|
FieldElement |
add(FieldElement operand)
Deprecated.
Adds
operand to the calling element and returns the result. |
boolean |
equals(java.lang.Object obj)
Deprecated.
Compares two field elements for equality.
|
FieldElement |
exponentiate(java.math.BigInteger exponent)
Deprecated.
Multiplies the calling element
exponent by itself and
returns the result. |
java.math.BigInteger |
getBigInteger()
Deprecated.
Returns an integer representation of the calling field element.
|
Field |
getField()
Deprecated.
Returns the mathematical field to which this element belongs.
|
FieldElement |
multiplicativeInverse()
Deprecated.
Returns the multiplicative inverse of this element in its field.
|
FieldElement |
multiply(FieldElement operand)
Deprecated.
Multiplies
operand by the calling element and returns
the result. |
FieldElement |
subtract(FieldElement operand)
Deprecated.
Subtracts
operand from the calling element and returns
the result. |
ASN1Object |
toASN1Object()
Deprecated.
Returns an ASN.1 structure representing this field element.
|
java.lang.String |
toString()
Deprecated.
Returns the string representation.
|
Field getField()
Field object to which this element belongs.FieldElement add(FieldElement operand) throws java.lang.IllegalArgumentException
operand to the calling element and returns the result.
operand - the value to add to the calling elementFieldElement this+operandjava.lang.IllegalArgumentException - if operand does not belong to the same field
as the calling elementFieldElement subtract(FieldElement operand) throws java.lang.IllegalArgumentException
operand from the calling element and returns
the result.
operand - the value to substract from the calling elementFieldElement this-operandjava.lang.IllegalArgumentException - if operand does not belong to the same field
as the calling elementFieldElement multiply(FieldElement operand) throws java.lang.IllegalArgumentException
operand by the calling element and returns
the result.
operand - the value with which to multiply the calling elementFieldElement this*operandjava.lang.IllegalArgumentException - if operand does not belong to the same field
as the calling elementFieldElement multiplicativeInverse() throws java.lang.ArithmeticException
The zero element does not have a multiplicative inverse.
For each field element e other than the zero element,
e.multiply(e.multiplicativeInverse()) is always the one
element (or identity element) of its field.
FieldElement the multiplicative inverse
element of the calling elementjava.lang.ArithmeticException - if the calling element is the zero element of its fieldFieldElement exponentiate(java.math.BigInteger exponent)
exponent by itself and
returns the result.
exponent - the exponentFieldElement this^exponentboolean equals(java.lang.Object obj)
Two field elements are equal if their fields and their integer representations are equal.
equals in class java.lang.Objectobj - the reference field element with which to comparetrue if the calling field element is equal to
obj, false otherwisejava.math.BigInteger getBigInteger()
The integer representation must be reversible given the field and the integer representation, the calling field element must be uniquely identified.
ASN1Object toASN1Object()
Although the ASN.1 encoding is not inherent in the field, this method is quite useful when used with elliptic curve cryptography (ECC) operations.
java.lang.String toString()
toString in class java.lang.Object