|
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.BCMcElieceCCA2PrivateKey
This class implements a McEliece CCA2 private key and is usually instantiated
by the McElieceCCA2KeyPairGenerator
or McElieceCCA2KeyFactorySpi
.
McElieceCCA2KeyPairGenerator
,
Serialized FormConstructor Summary | |
BCMcElieceCCA2PrivateKey(McElieceCCA2PrivateKeyParameters 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 keyData to encode in the SubjectPublicKeyInfo structure. |
GF2mField |
getField()
|
java.lang.String |
getFormat()
|
PolynomialGF2mSmallM |
getGoppaPoly()
|
GF2Matrix |
getH()
|
int |
getK()
|
int |
getN()
|
Permutation |
getP()
|
PolynomialGF2mSmallM[] |
getQInv()
|
int |
getT()
|
int |
hashCode()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BCMcElieceCCA2PrivateKey(McElieceCCA2PrivateKeyParameters params)
Method Detail |
public java.lang.String getAlgorithm()
getAlgorithm
in interface java.security.Key
public int getN()
public int getK()
public int getT()
public GF2mField getField()
public PolynomialGF2mSmallM getGoppaPoly()
public Permutation getP()
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 { 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 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 |