org.gudy.bouncycastle.math.ec
Class ECCurve.Fp

java.lang.Object
  extended by org.gudy.bouncycastle.math.ec.ECCurve
      extended by org.gudy.bouncycastle.math.ec.ECCurve.Fp
Enclosing class:
ECCurve

public static class ECCurve.Fp
extends ECCurve

Elliptic curve over Fp


Nested Class Summary
 
Nested classes/interfaces inherited from class org.gudy.bouncycastle.math.ec.ECCurve
ECCurve.F2m, ECCurve.Fp
 
Constructor Summary
ECCurve.Fp(BigInteger q, BigInteger a, BigInteger b)
           
 
Method Summary
 ECPoint createPoint(BigInteger x, BigInteger y, boolean withCompression)
           
 ECPoint decodePoint(byte[] encoded)
          Decode a point on this curve from its ASN.1 encoding.
 boolean equals(Object anObject)
           
 ECFieldElement fromBigInteger(BigInteger x)
           
 int getFieldSize()
           
 ECPoint getInfinity()
           
 BigInteger getQ()
           
 int hashCode()
           
 
Methods inherited from class org.gudy.bouncycastle.math.ec.ECCurve
getA, getB
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ECCurve.Fp

public ECCurve.Fp(BigInteger q,
                  BigInteger a,
                  BigInteger b)
Method Detail

getQ

public BigInteger getQ()

getFieldSize

public int getFieldSize()
Specified by:
getFieldSize in class ECCurve

fromBigInteger

public ECFieldElement fromBigInteger(BigInteger x)
Specified by:
fromBigInteger in class ECCurve

createPoint

public ECPoint createPoint(BigInteger x,
                           BigInteger y,
                           boolean withCompression)
Specified by:
createPoint in class ECCurve

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 for Fp (X9.62 s 4.2.1 pg 17).

Specified by:
decodePoint in class ECCurve
Returns:
The decoded point.

getInfinity

public ECPoint getInfinity()
Specified by:
getInfinity in class ECCurve

equals

public boolean equals(Object anObject)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object