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 Summary
Constructors Constructor Description McElieceCCA2PrivateKey(int n, int k, GF2mField field, PolynomialGF2mSmallM goppaPoly, Permutation p, AlgorithmIdentifier digest)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
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 interfaceASN1Encodable
- Specified by:
toASN1Primitive
in classASN1Object
- Returns:
- a primitive representation of this object.
-
getInstance
public static McElieceCCA2PrivateKey getInstance(java.lang.Object o)
-
-