Package org.bouncycastle.pqc.asn1
Class McElieceCCA2PrivateKey
- java.lang.Object
- 
- org.bouncycastle.asn1.ASN1Object
- 
- org.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 SummaryConstructors Constructor Description McElieceCCA2PrivateKey(int n, int k, GF2mField field, PolynomialGF2mSmallM goppaPoly, Permutation p, AlgorithmIdentifier digest)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AlgorithmIdentifiergetDigest()GF2mFieldgetField()PolynomialGF2mSmallMgetGoppaPoly()static McElieceCCA2PrivateKeygetInstance(java.lang.Object o)intgetK()intgetN()PermutationgetP()ASN1PrimitivetoASN1Primitive()Method providing a primitive representation of this object suitable for encoding.- 
Methods inherited from class org.bouncycastle.asn1.ASN1ObjectencodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
 
- 
 
- 
- 
- 
Constructor Detail- 
McElieceCCA2PrivateKeypublic McElieceCCA2PrivateKey(int n, int k, GF2mField field, PolynomialGF2mSmallM goppaPoly, Permutation p, AlgorithmIdentifier digest)
 
- 
 - 
Method Detail- 
getNpublic int getN() 
 - 
getKpublic int getK() 
 - 
getFieldpublic GF2mField getField() 
 - 
getGoppaPolypublic PolynomialGF2mSmallM getGoppaPoly() 
 - 
getPpublic Permutation getP() 
 - 
getDigestpublic AlgorithmIdentifier getDigest() 
 - 
toASN1Primitivepublic ASN1Primitive toASN1Primitive() Description copied from class:ASN1ObjectMethod providing a primitive representation of this object suitable for encoding.- Specified by:
- toASN1Primitivein interface- ASN1Encodable
- Specified by:
- toASN1Primitivein class- ASN1Object
- Returns:
- a primitive representation of this object.
 
 - 
getInstancepublic static McElieceCCA2PrivateKey getInstance(java.lang.Object o) 
 
- 
 
-