public class BCMcElieceCCA2PrivateKey extends Object implements PrivateKey
McElieceCCA2KeyPairGenerator
or McElieceCCA2KeyFactorySpi
.McElieceCCA2KeyPairGenerator
,
Serialized FormConstructor and Description |
---|
BCMcElieceCCA2PrivateKey(org.bouncycastle.pqc.crypto.mceliece.McElieceCCA2PrivateKeyParameters params) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Compare this key with another object.
|
String |
getAlgorithm()
Return the name of the algorithm.
|
byte[] |
getEncoded()
Return the keyData to encode in the SubjectPublicKeyInfo structure.
|
org.bouncycastle.pqc.math.linearalgebra.GF2mField |
getField() |
String |
getFormat() |
org.bouncycastle.pqc.math.linearalgebra.PolynomialGF2mSmallM |
getGoppaPoly() |
org.bouncycastle.pqc.math.linearalgebra.GF2Matrix |
getH() |
int |
getK() |
int |
getN() |
org.bouncycastle.pqc.math.linearalgebra.Permutation |
getP() |
org.bouncycastle.pqc.math.linearalgebra.PolynomialGF2mSmallM[] |
getQInv() |
int |
getT() |
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
destroy, isDestroyed
public BCMcElieceCCA2PrivateKey(org.bouncycastle.pqc.crypto.mceliece.McElieceCCA2PrivateKeyParameters params)
public String getAlgorithm()
getAlgorithm
in interface Key
public int getN()
public int getK()
public int getT()
public org.bouncycastle.pqc.math.linearalgebra.GF2mField getField()
public org.bouncycastle.pqc.math.linearalgebra.PolynomialGF2mSmallM getGoppaPoly()
public org.bouncycastle.pqc.math.linearalgebra.Permutation getP()
public org.bouncycastle.pqc.math.linearalgebra.GF2Matrix getH()
public org.bouncycastle.pqc.math.linearalgebra.PolynomialGF2mSmallM[] getQInv()
public String toString()
public boolean equals(Object other)
public int hashCode()
public byte[] getEncoded()
The ASN.1 definition of the key structure is
McEliecePrivateKey ::= 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 matrixH OCTET STRING -- canonical check matrix sqRootMatrix SEQUENCE OF OCTET STRING -- square root matrix }
getEncoded
in interface Key
Copyright © 2017 BouncyCastle.org. All rights reserved.