Top Description Fields Constructors Methods
org.bouncycastle.asn1.x9

public Class X9ECParameters

extends ASN1Object
implements X9ObjectIdentifiers
Class Inheritance
All Implemented Interfaces
org.bouncycastle.asn1.x9.X9ObjectIdentifiers
Imports
java.math.BigInteger, org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Integer, .ASN1Object, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, .DERSequence, org.bouncycastle.math.ec.ECAlgorithms, .ECCurve, .ECPoint, org.bouncycastle.math.field.PolynomialExtensionField, org.bouncycastle.util.Arrays

ASN.1 def for Elliptic-Curve ECParameters structure. See X9.62, for further details.

Field Summary

Modifier and TypeField and Description
private ECCurve
private X9FieldID
private X9ECPoint
g

private BigInteger
h

private BigInteger
n

private static final BigInteger
private byte[]

Constructor Summary

AccessConstructor and Description
private
public
public
public
public
X9ECParameters(ECCurve curve, ECPoint g, BigInteger n, BigInteger h, byte[] seed)

public
X9ECParameters(ECCurve curve, X9ECPoint g, BigInteger n, BigInteger h, byte[] seed)

Method Summary

Modifier and TypeMethod and Description
public X9ECPoint

Returns:

the X9ECPoint for the base point in these parameters.
getBaseEntry
()

Return the ASN.1 entry representing the base point G.

public ECCurve
public X9Curve

Returns:

the X9Curve for the curve in these parameters.
getCurveEntry
()

Return the ASN.1 entry representing the Curve.

public X9FieldID

Returns:

the X9FieldID for the FieldID in these parameters.
getFieldIDEntry
()

Return the ASN.1 entry representing the FieldID.

public ECPoint
getG()

public BigInteger
getH()

public static X9ECParameters
public BigInteger
getN()

public byte[]
public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.
Inherited from org.bouncycastle.asn1.ASN1Object:
equalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

curveback to summary
private ECCurve curve
fieldIDback to summary
private X9FieldID fieldID
gback to summary
private X9ECPoint g
hback to summary
private BigInteger h
nback to summary
private BigInteger n
ONEback to summary
private static final BigInteger ONE
seedback to summary
private byte[] seed

Constructor Detail

X9ECParametersback to summary
private X9ECParameters(ASN1Sequence seq)
X9ECParametersback to summary
public X9ECParameters(ECCurve curve, ECPoint g, BigInteger n)
X9ECParametersback to summary
public X9ECParameters(ECCurve curve, X9ECPoint g, BigInteger n, BigInteger h)
X9ECParametersback to summary
public X9ECParameters(ECCurve curve, ECPoint g, BigInteger n, BigInteger h)
X9ECParametersback to summary
public X9ECParameters(ECCurve curve, ECPoint g, BigInteger n, BigInteger h, byte[] seed)
X9ECParametersback to summary
public X9ECParameters(ECCurve curve, X9ECPoint g, BigInteger n, BigInteger h, byte[] seed)

Method Detail

getBaseEntryback to summary
public X9ECPoint getBaseEntry()

Return the ASN.1 entry representing the base point G.

Returns:X9ECPoint

the X9ECPoint for the base point in these parameters.

getCurveback to summary
public ECCurve getCurve()
getCurveEntryback to summary
public X9Curve getCurveEntry()

Return the ASN.1 entry representing the Curve.

Returns:X9Curve

the X9Curve for the curve in these parameters.

getFieldIDEntryback to summary
public X9FieldID getFieldIDEntry()

Return the ASN.1 entry representing the FieldID.

Returns:X9FieldID

the X9FieldID for the FieldID in these parameters.

getGback to summary
public ECPoint getG()
getHback to summary
public BigInteger getH()
getInstanceback to summary
public static X9ECParameters getInstance(Object obj)
getNback to summary
public BigInteger getN()
getSeedback to summary
public byte[] getSeed()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.

 ECParameters ::= SEQUENCE {
     version         INTEGER { ecpVer1(1) } (ecpVer1),
     fieldID         FieldID {{FieldTypes}},
     curve           X9Curve,
     base            X9ECPoint,
     order           INTEGER,
     cofactor        INTEGER OPTIONAL
 }
Returns:ASN1Primitive

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

a primitive representation of this object.