Bouncy Castle Cryptography Library 1.81

org.bouncycastle.pqc.asn1
Class McElieceCCA2PrivateKey

java.lang.Object
  extended byorg.bouncycastle.asn1.ASN1Object
      extended byorg.bouncycastle.pqc.asn1.McElieceCCA2PrivateKey
All Implemented Interfaces:
ASN1Encodable, Encodable

public class McElieceCCA2PrivateKey
extends ASN1Object

Return the keyData to encode in the PrivateKeyInfo structure.

The ASN.1 definition of the key structure is

McElieceCCA2PrivateKey ::= SEQUENCE { m INTEGER -- extension degree of the field k INTEGER -- dimension of the code field OCTET STRING -- field polynomial goppaPoly OCTET STRING -- irreducible Goppa polynomial p OCTET STRING -- permutation vector digest AlgorithmIdentifier -- algorithm identifier for CCA2 digest }


Constructor Summary
McElieceCCA2PrivateKey(int n, int k, GF2mField field, PolynomialGF2mSmallM goppaPoly, Permutation p, AlgorithmIdentifier digest)
           
 
Method Summary
 AlgorithmIdentifier getDigest()
           
 GF2mField getField()
           
 PolynomialGF2mSmallM getGoppaPoly()
           
static McElieceCCA2PrivateKey getInstance(java.lang.Object o)
           
 int getK()
           
 int getN()
           
 Permutation getP()
           
 ASN1Primitive toASN1Primitive()
          Method providing a primitive representation of this object suitable for encoding.
 
Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

McElieceCCA2PrivateKey

public McElieceCCA2PrivateKey(int n,
                              int k,
                              GF2mField field,
                              PolynomialGF2mSmallM goppaPoly,
                              Permutation p,
                              AlgorithmIdentifier digest)
Method Detail

getN

public int getN()

getK

public int getK()

getField

public GF2mField getField()

getGoppaPoly

public PolynomialGF2mSmallM getGoppaPoly()

getP

public Permutation getP()

getDigest

public AlgorithmIdentifier getDigest()

toASN1Primitive

public ASN1Primitive toASN1Primitive()
Description copied from class: ASN1Object
Method providing a primitive representation of this object suitable for encoding.

Specified by:
toASN1Primitive in interface ASN1Encodable
Specified by:
toASN1Primitive in class ASN1Object
Returns:
a primitive representation of this object.

getInstance

public static McElieceCCA2PrivateKey getInstance(java.lang.Object o)

Bouncy Castle Cryptography Library 1.81