public class BCMcEliecePrivateKey extends Object implements org.bouncycastle.crypto.CipherParameters, PrivateKey
McElieceKeyPairGenerator
or McElieceKeyFactorySpi
.Constructor and Description |
---|
BCMcEliecePrivateKey(org.bouncycastle.pqc.crypto.mceliece.McEliecePrivateKeyParameters 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 key data 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 |
getP1() |
org.bouncycastle.pqc.math.linearalgebra.Permutation |
getP2() |
org.bouncycastle.pqc.math.linearalgebra.PolynomialGF2mSmallM[] |
getQInv() |
org.bouncycastle.pqc.math.linearalgebra.GF2Matrix |
getSInv() |
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
destroy, isDestroyed
public BCMcEliecePrivateKey(org.bouncycastle.pqc.crypto.mceliece.McEliecePrivateKeyParameters params)
public String getAlgorithm()
getAlgorithm
in interface Key
public int getN()
public int getK()
public org.bouncycastle.pqc.math.linearalgebra.GF2mField getField()
public org.bouncycastle.pqc.math.linearalgebra.PolynomialGF2mSmallM getGoppaPoly()
public org.bouncycastle.pqc.math.linearalgebra.GF2Matrix getSInv()
public org.bouncycastle.pqc.math.linearalgebra.Permutation getP1()
public org.bouncycastle.pqc.math.linearalgebra.Permutation getP2()
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 { n INTEGER -- length of the code k INTEGER -- dimension of the code fieldPoly OCTET STRING -- field polynomial defining GF(2ˆm) getGoppaPoly() OCTET STRING -- irreducible Goppa polynomial sInv OCTET STRING -- matrix Sˆ-1 p1 OCTET STRING -- permutation P1 p2 OCTET STRING -- permutation P2 h OCTET STRING -- canonical check matrix qInv SEQUENCE OF OCTET STRING -- matrix used to compute square roots }
getEncoded
in interface Key
Copyright © 2017 BouncyCastle.org. All rights reserved.