Logo Search packages:      
Sourcecode: bouncycastle version File versions

ECCurve.java

package org.bouncycastle.math.ec;

import java.math.BigInteger;

00005 public abstract class ECCurve
{
      BigInteger q;
      ECFieldElement a, b;

      public ECCurve(BigInteger q, BigInteger a, BigInteger b)
      {
            this.q = q;
            this.a = fromBigInteger(a);
            this.b = fromBigInteger(b);
      }

      public abstract ECFieldElement fromBigInteger(BigInteger x);

      public abstract ECPoint decodePoint(byte[] encoded);

    public ECFieldElement getA()
    {
        return a;
    }

    public ECFieldElement getB()
    {
        return b;
    }
}

Generated by  Doxygen 1.6.0   Back to index