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

public Class X9FieldID

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, .ASN1Primitive, .ASN1Sequence, .DERSequence

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

Field Summary

Modifier and TypeField and Description
private ASN1ObjectIdentifier
private ASN1Primitive

Constructor Summary

AccessConstructor and Description
public
X9FieldID(BigInteger
The prime p defining the prime field.
primeP
)

Constructor for elliptic curves over prime fields F2.

public
X9FieldID(int
The exponent m of F2m.
m
,
int
The integer k1 where xm + xk1 + 1 represents the reduction polynomial f(z).
k1
)

Constructor for elliptic curves over binary fields F2m.

public
X9FieldID(int
The exponent m of F2m.
m
,
int
The integer k1 where xm + xk3 + xk2 + xk1 + 1 represents the reduction polynomial f(z).
k1
,
int
The integer k2 where xm + xk3 + xk2 + xk1 + 1 represents the reduction polynomial f(z).
k2
,
int
The integer k3 where xm + xk3 + xk2 + xk1 + 1 represents the reduction polynomial f(z)..
k3
)

Constructor for elliptic curves over binary fields F2m.

private

Method Summary

Modifier and TypeMethod and Description
public ASN1ObjectIdentifier
public static X9FieldID
public ASN1Primitive
public ASN1Primitive
toASN1Primitive()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce a DER encoding of the following structure.

Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

idback to summary
private ASN1ObjectIdentifier id
parametersback to summary
private ASN1Primitive parameters

Constructor Detail

X9FieldIDback to summary
public X9FieldID(BigInteger primeP)

Constructor for elliptic curves over prime fields F2.

Parameters
primeP:BigInteger

The prime p defining the prime field.

X9FieldIDback to summary
public X9FieldID(int m, int k1)

Constructor for elliptic curves over binary fields F2m.

Parameters
m:int

The exponent m of F2m.

k1:int

The integer k1 where xm + xk1 + 1 represents the reduction polynomial f(z).

X9FieldIDback to summary
public X9FieldID(int m, int k1, int k2, int k3)

Constructor for elliptic curves over binary fields F2m.

Parameters
m:int

The exponent m of F2m.

k1:int

The integer k1 where xm + xk3 + xk2 + xk1 + 1 represents the reduction polynomial f(z).

k2:int

The integer k2 where xm + xk3 + xk2 + xk1 + 1 represents the reduction polynomial f(z).

k3:int

The integer k3 where xm + xk3 + xk2 + xk1 + 1 represents the reduction polynomial f(z)..

X9FieldIDback to summary
private X9FieldID(ASN1Sequence seq)

Method Detail

getIdentifierback to summary
public ASN1ObjectIdentifier getIdentifier()
getInstanceback to summary
public static X9FieldID getInstance(Object obj)
getParametersback to summary
public ASN1Primitive getParameters()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce a DER encoding of the following structure.

 FieldID ::= SEQUENCE {
     fieldType       FIELD-ID.&id({IOSet}),
     parameters      FIELD-ID.&Type({IOSet}{@fieldType})
 }
Returns:ASN1Primitive

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

a primitive representation of this object.