FileDocCategorySizeDatePackage
ECParameterSpec.javaAPI DocAzureus 3.0.3.41695Tue Jun 08 05:12:56 BST 2004org.bouncycastle.jce.spec

ECParameterSpec

public class ECParameterSpec extends Object implements AlgorithmParameterSpec
basic domain parameters for an Elliptic Curve public or private key.

Fields Summary
private org.bouncycastle.math.ec.ECCurve
curve
private byte[]
seed
private org.bouncycastle.math.ec.ECPoint
G
private BigInteger
n
private BigInteger
h
Constructors Summary
public ECParameterSpec(org.bouncycastle.math.ec.ECCurve curve, org.bouncycastle.math.ec.ECPoint G, BigInteger n)

		this.curve = curve;
		this.G = G;
		this.n = n;
        this.h = BigInteger.valueOf(1);
        this.seed = null;
	
public ECParameterSpec(org.bouncycastle.math.ec.ECCurve curve, org.bouncycastle.math.ec.ECPoint G, BigInteger n, BigInteger h)

		this.curve = curve;
		this.G = G;
		this.n = n;
		this.h = h;
        this.seed = null;
	
public ECParameterSpec(org.bouncycastle.math.ec.ECCurve curve, org.bouncycastle.math.ec.ECPoint G, BigInteger n, BigInteger h, byte[] seed)

		this.curve = curve;
		this.G = G;
		this.n = n;
		this.h = h;
		this.seed = seed;
	
Methods Summary
public org.bouncycastle.math.ec.ECCurvegetCurve()
return the curve along which the base point lies.

        return curve;
    
public org.bouncycastle.math.ec.ECPointgetG()
return the base point we are using for these domain parameters.

		return G;
	
public java.math.BigIntegergetH()
return the cofactor H to the order of G.

		return h;
	
public java.math.BigIntegergetN()
return the order N of G

		return n;
	
public byte[]getSeed()
return the seed used to generate this curve (if available).

		return seed;