|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.pqc.jcajce.provider.mceliece.BCMcEliecePrivateKey
This class implements a McEliece private key and is usually instantiated by
the McElieceKeyPairGenerator
or McElieceKeyFactorySpi
.
Constructor Summary | |
BCMcEliecePrivateKey(McEliecePrivateKeyParameters params)
|
Method Summary | |
boolean |
equals(java.lang.Object other)
Compare this key with another object. |
java.lang.String |
getAlgorithm()
Return the name of the algorithm. |
byte[] |
getEncoded()
Return the key data to encode in the SubjectPublicKeyInfo structure. |
GF2mField |
getField()
|
java.lang.String |
getFormat()
|
PolynomialGF2mSmallM |
getGoppaPoly()
|
GF2Matrix |
getH()
|
int |
getK()
|
int |
getN()
|
Permutation |
getP1()
|
Permutation |
getP2()
|
PolynomialGF2mSmallM[] |
getQInv()
|
GF2Matrix |
getSInv()
|
int |
hashCode()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BCMcEliecePrivateKey(McEliecePrivateKeyParameters params)
Method Detail |
public java.lang.String getAlgorithm()
getAlgorithm
in interface java.security.Key
public int getN()
public int getK()
public GF2mField getField()
public PolynomialGF2mSmallM getGoppaPoly()
public GF2Matrix getSInv()
public Permutation getP1()
public Permutation getP2()
public GF2Matrix getH()
public PolynomialGF2mSmallM[] getQInv()
public boolean equals(java.lang.Object other)
other
- the other object
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 java.security.Key
public java.lang.String getFormat()
getFormat
in interface java.security.Key
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |