Bouncy Castle Cryptography 1.49

org.bouncycastle.math.ec
Class ECCurve

java.lang.Object
  extended by org.bouncycastle.math.ec.ECCurve
Direct Known Subclasses:
ECCurve.F2m, ECCurve.Fp

public abstract class ECCurve
extends java.lang.Object

base class for an elliptic curve


Nested Class Summary
static class ECCurve.F2m
          Elliptic curves over F2m.
static class ECCurve.Fp
          Elliptic curve over Fp
 
Constructor Summary
ECCurve()
           
 
Method Summary
abstract  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.
protected abstract  ECPoint decompressPoint(int yTilde, java.math.BigInteger X1)
           
abstract  ECFieldElement fromBigInteger(java.math.BigInteger x)
           
 ECFieldElement getA()
           
 ECFieldElement getB()
           
abstract  int getFieldSize()
           
abstract  ECPoint getInfinity()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ECCurve

public ECCurve()
Method Detail

getFieldSize

public abstract int getFieldSize()

fromBigInteger

public abstract ECFieldElement fromBigInteger(java.math.BigInteger x)

createPoint

public abstract ECPoint createPoint(java.math.BigInteger x,
                                    java.math.BigInteger y,
                                    boolean withCompression)

getInfinity

public abstract ECPoint getInfinity()

getA

public ECFieldElement getA()

getB

public ECFieldElement getB()

decompressPoint

protected abstract ECPoint decompressPoint(int yTilde,
                                           java.math.BigInteger X1)

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).

Returns:
The decoded point.

Bouncy Castle Cryptography 1.49