|
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.BCMcEliecePublicKey
This class implements a McEliece public key and is usually instantiated by
the McElieceKeyPairGenerator
or McElieceKeyFactorySpi
.
Constructor Summary | |
BCMcEliecePublicKey(McEliecePublicKeyParameters 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. |
java.lang.String |
getFormat()
|
GF2Matrix |
getG()
|
int |
getK()
|
int |
getN()
|
int |
getT()
|
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BCMcEliecePublicKey(McEliecePublicKeyParameters params)
Method Detail |
public java.lang.String getAlgorithm()
getAlgorithm
in interface java.security.Key
public int getN()
public int getK()
public int getT()
public GF2Matrix getG()
public java.lang.String toString()
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
McEliecePublicKey ::= SEQUENCE { n Integer -- length of the code t Integer -- error correcting capability matrixG OctetString -- generator matrix as octet string }
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 |