public static class ECFieldElement.Fp extends ECFieldElement
ECFieldElement.F2m, ECFieldElement.Fp| Constructor and Description |
|---|
Fp(BigInteger q,
BigInteger x)
Deprecated.
Use ECCurve.fromBigInteger to construct field elements
|
bitLength, getEncoded, isOne, isZero, testBitZero, toStringpublic Fp(BigInteger q, BigInteger x)
public BigInteger toBigInteger()
toBigInteger in class ECFieldElementpublic String getFieldName()
getFieldName in class ECFieldElementpublic int getFieldSize()
getFieldSize in class ECFieldElementpublic BigInteger getQ()
public ECFieldElement add(ECFieldElement b)
add in class ECFieldElementpublic ECFieldElement addOne()
addOne in class ECFieldElementpublic ECFieldElement subtract(ECFieldElement b)
subtract in class ECFieldElementpublic ECFieldElement multiply(ECFieldElement b)
multiply in class ECFieldElementpublic ECFieldElement multiplyMinusProduct(ECFieldElement b, ECFieldElement x, ECFieldElement y)
multiplyMinusProduct in class ECFieldElementpublic ECFieldElement multiplyPlusProduct(ECFieldElement b, ECFieldElement x, ECFieldElement y)
multiplyPlusProduct in class ECFieldElementpublic ECFieldElement divide(ECFieldElement b)
divide in class ECFieldElementpublic ECFieldElement negate()
negate in class ECFieldElementpublic ECFieldElement square()
square in class ECFieldElementpublic ECFieldElement squareMinusProduct(ECFieldElement x, ECFieldElement y)
squareMinusProduct in class ECFieldElementpublic ECFieldElement squarePlusProduct(ECFieldElement x, ECFieldElement y)
squarePlusProduct in class ECFieldElementpublic ECFieldElement invert()
invert in class ECFieldElementpublic ECFieldElement sqrt()
sqrt in class ECFieldElementprotected BigInteger modAdd(BigInteger x1, BigInteger x2)
protected BigInteger modDouble(BigInteger x)
protected BigInteger modHalf(BigInteger x)
protected BigInteger modHalfAbs(BigInteger x)
protected BigInteger modInverse(BigInteger x)
protected BigInteger modMult(BigInteger x1, BigInteger x2)
protected BigInteger modReduce(BigInteger x)
protected BigInteger modSubtract(BigInteger x1, BigInteger x2)
public boolean equals(Object other)
Objecto must represent the same object
as this instance using a class-specific comparison. The general contract
is that this comparison should be reflexive, symmetric, and transitive.
Also, no object reference other than null is equal to null.
The default implementation returns true only if this ==
o. See Writing a correct
equals method
if you intend implementing your own equals method.
The general contract for the equals and Object.hashCode() methods is that if equals returns true for
any two objects, then hashCode() must return the same value for
these objects. This means that subclasses of Object usually
override either both methods or neither of them.
equals in class Objectother - the object to compare this instance with.true if the specified object is equal to this Object; false otherwise.Object.hashCode()public int hashCode()
ObjectObject.equals(java.lang.Object) returns true must return
the same hash code value. This means that subclasses of Object
usually override both methods or neither method.
Note that hash values must not change over time unless information used in equals comparisons also changes.
See Writing a correct
hashCode method
if you intend implementing your own hashCode method.
hashCode in class ObjectObject.equals(java.lang.Object)