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

public Class X9Curve

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

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

Field Summary

Modifier and TypeField and Description
private ECCurve
private ASN1ObjectIdentifier
private byte[]

Constructor Summary

AccessConstructor and Description
public
public
X9Curve(ECCurve curve, byte[] seed)

public
X9Curve(X9FieldID fieldID, BigInteger order, BigInteger cofactor, ASN1Sequence seq)

Method Summary

Modifier and TypeMethod and Description
public ECCurve
public byte[]
private void
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:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

curveback to summary
private ECCurve curve
fieldIdentifierback to summary
private ASN1ObjectIdentifier fieldIdentifier
seedback to summary
private byte[] seed

Constructor Detail

X9Curveback to summary
public X9Curve(ECCurve curve)
X9Curveback to summary
public X9Curve(ECCurve curve, byte[] seed)
X9Curveback to summary
public X9Curve(X9FieldID fieldID, BigInteger order, BigInteger cofactor, ASN1Sequence seq)

Method Detail

getCurveback to summary
public ECCurve getCurve()
getSeedback to summary
public byte[] getSeed()
setFieldIdentifierback to summary
private void setFieldIdentifier()
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.

 Curve ::= SEQUENCE {
     a               FieldElement,
     b               FieldElement,
     seed            BIT STRING      OPTIONAL
 }
Returns:ASN1Primitive

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

a primitive representation of this object.