Package org.gudy.bouncycastle.math.ec
Class ECCurve.Fp
- java.lang.Object
-
- org.gudy.bouncycastle.math.ec.ECCurve
-
- org.gudy.bouncycastle.math.ec.ECCurve.Fp
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.gudy.bouncycastle.math.ec.ECCurve
ECCurve.F2m, ECCurve.Fp
-
-
Constructor Summary
Constructors Constructor Description Fp(java.math.BigInteger q, java.math.BigInteger a, java.math.BigInteger b)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ECPoint
createPoint(java.math.BigInteger x, java.math.BigInteger y, boolean withCompression)
ECPoint
decodePoint(byte[] encoded)
Decode a point on this curve from its ASN.1 encoding.boolean
equals(java.lang.Object anObject)
ECFieldElement
fromBigInteger(java.math.BigInteger x)
int
getFieldSize()
ECPoint
getInfinity()
java.math.BigInteger
getQ()
int
hashCode()
-
-
-
Field Detail
-
q
java.math.BigInteger q
-
infinity
ECPoint.Fp infinity
-
-
Method Detail
-
getQ
public java.math.BigInteger getQ()
-
getFieldSize
public int getFieldSize()
- Specified by:
getFieldSize
in classECCurve
-
fromBigInteger
public ECFieldElement fromBigInteger(java.math.BigInteger x)
- Specified by:
fromBigInteger
in classECCurve
-
createPoint
public ECPoint createPoint(java.math.BigInteger x, java.math.BigInteger y, boolean withCompression)
- Specified by:
createPoint
in classECCurve
-
decodePoint
public ECPoint decodePoint(byte[] encoded)
Decode a point on this curve from its ASN.1 encoding. The different encodings are taken account of, including point compression forFp
(X9.62 s 4.2.1 pg 17).- Specified by:
decodePoint
in classECCurve
- Returns:
- The decoded point.
-
getInfinity
public ECPoint getInfinity()
- Specified by:
getInfinity
in classECCurve
-
equals
public boolean equals(java.lang.Object anObject)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-