Package org.bouncycastle.pqc.asn1
Class McElieceCCA2PrivateKey
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.pqc.asn1.McElieceCCA2PrivateKey
- All Implemented Interfaces:
ASN1Encodable,Encodable
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
ConstructorsConstructorDescriptionMcElieceCCA2PrivateKey(int n, int k, GF2mField field, PolynomialGF2mSmallM goppaPoly, Permutation p, AlgorithmIdentifier digest) -
Method Summary
Modifier and TypeMethodDescriptiongetField()static McElieceCCA2PrivateKeyintgetK()intgetN()getP()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 Details
-
McElieceCCA2PrivateKey
public McElieceCCA2PrivateKey(int n, int k, GF2mField field, PolynomialGF2mSmallM goppaPoly, Permutation p, AlgorithmIdentifier digest)
-
-
Method Details
-
getN
public int getN() -
getK
public int getK() -
getField
-
getGoppaPoly
-
getP
-
getDigest
-
toASN1Primitive
Description copied from class:ASN1ObjectMethod providing a primitive representation of this object suitable for encoding.- Specified by:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object- Returns:
- a primitive representation of this object.
-
getInstance
-