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
}
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
McElieceCCA2PrivateKey
public McElieceCCA2PrivateKey(int n,
int k,
GF2mField field,
PolynomialGF2mSmallM goppaPoly,
Permutation p,
AlgorithmIdentifier digest)
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)