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
- Enclosing class:
- ECCurve
Elliptic curve over Fp
-
Nested Class Summary
Nested classes/interfaces inherited from class org.gudy.bouncycastle.math.ec.ECCurve
ECCurve.F2m, ECCurve.Fp
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatePoint
(BigInteger x, BigInteger y, boolean withCompression) decodePoint
(byte[] encoded) Decode a point on this curve from its ASN.1 encoding.boolean
int
getQ()
int
hashCode()
-
Field Details
-
q
-
infinity
ECPoint.Fp infinity
-
-
Constructor Details
-
Fp
-
-
Method Details
-
getQ
-
getFieldSize
public int getFieldSize()- Specified by:
getFieldSize
in classECCurve
-
fromBigInteger
- Specified by:
fromBigInteger
in classECCurve
-
createPoint
- Specified by:
createPoint
in classECCurve
-
decodePoint
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
- Specified by:
getInfinity
in classECCurve
-
equals
-
hashCode
public int hashCode()
-