de.flexiprovider.ec.asn1
Class Curve

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.ArrayList
                    |
                    +--codec.asn1.ASN1AbstractCollection
                          |
                          +--codec.asn1.ASN1Sequence
                                |
                                +--de.flexiprovider.ec.asn1.Curve
All Implemented Interfaces:
codec.asn1.ASN1Collection, codec.asn1.ASN1Type, java.lang.Cloneable, java.util.Collection, java.io.Externalizable, java.util.List, java.io.Serializable

public class Curve
extends codec.asn1.ASN1Sequence

This class represents a Curve as defined in ANS X9.62 - 1998. The ASN.1 definition of this structure is

  Curve ::= SEQUENCE {
   a     fieldElement,
   b     fieldElement,
   seed  BIT STRING OPTIONAL,
 }
 
  FieldElement ::= OCTET STRING;
 
Parameters Parameters are the Parameters defined in the internet draft ... for elliptic curves

Author:
Michele Boivin
See Also:
Serialized Form

Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Curve()
          Default constructor.
Curve(codec.asn1.ASN1OctetString a, codec.asn1.ASN1OctetString b)
          Constructor from two curve coefficients.
Curve(GFElement a, GFElement b)
          Constructor from two curve coefficients.
 
Method Summary
(package private)  byte[] getA()
           
(package private)  byte[] getB()
           
 
Methods inherited from class codec.asn1.ASN1Sequence
getTag
 
Methods inherited from class codec.asn1.ASN1AbstractCollection
checkConstraints, decode, encode, getCollection, getConstraint, getTagClass, getValue, isExplicit, isOptional, isType, readExternal, setConstraint, setExplicit, setOptional, toString, writeExternal
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll
 
Methods inherited from class java.lang.Object
, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

Constructor Detail

Curve

public Curve()
Default constructor. The optional seed is omitted.

Curve

public Curve(codec.asn1.ASN1OctetString a,
             codec.asn1.ASN1OctetString b)
Constructor from two curve coefficients. The optional seed is omitted.
Parameters:
a - the curve coefficient a
b - the curve coefficient b

Curve

public Curve(GFElement a,
             GFElement b)
Constructor from two curve coefficients. The optional seed is omitted.
Parameters:
a - the curve coefficient a
b - the curve coefficient b
Method Detail

getA

byte[] getA()
Returns:
the curve coefficient a

getB

byte[] getB()
Returns:
the curve coefficient b