public class McElieceCCA2PrivateKey extends ASN1Object
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 and Description |
---|
McElieceCCA2PrivateKey(int n,
int k,
org.bouncycastle.pqc.legacy.math.linearalgebra.GF2mField field,
org.bouncycastle.pqc.legacy.math.linearalgebra.PolynomialGF2mSmallM goppaPoly,
org.bouncycastle.pqc.legacy.math.linearalgebra.Permutation p,
AlgorithmIdentifier digest) |
Modifier and Type | Method and Description |
---|---|
AlgorithmIdentifier |
getDigest() |
org.bouncycastle.pqc.legacy.math.linearalgebra.GF2mField |
getField() |
org.bouncycastle.pqc.legacy.math.linearalgebra.PolynomialGF2mSmallM |
getGoppaPoly() |
static McElieceCCA2PrivateKey |
getInstance(java.lang.Object o) |
int |
getK() |
int |
getN() |
org.bouncycastle.pqc.legacy.math.linearalgebra.Permutation |
getP() |
ASN1Primitive |
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding.
|
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
public McElieceCCA2PrivateKey(int n, int k, org.bouncycastle.pqc.legacy.math.linearalgebra.GF2mField field, org.bouncycastle.pqc.legacy.math.linearalgebra.PolynomialGF2mSmallM goppaPoly, org.bouncycastle.pqc.legacy.math.linearalgebra.Permutation p, AlgorithmIdentifier digest)
public int getN()
public int getK()
public org.bouncycastle.pqc.legacy.math.linearalgebra.GF2mField getField()
public org.bouncycastle.pqc.legacy.math.linearalgebra.PolynomialGF2mSmallM getGoppaPoly()
public org.bouncycastle.pqc.legacy.math.linearalgebra.Permutation getP()
public AlgorithmIdentifier getDigest()
public ASN1Primitive toASN1Primitive()
ASN1Object
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object
public static McElieceCCA2PrivateKey getInstance(java.lang.Object o)