public class BCMcElieceCCA2PublicKey extends java.lang.Object implements CipherParameters, java.security.PublicKey
McElieceCCA2KeyPairGenerator or McElieceCCA2KeyFactorySpi.| Constructor and Description |
|---|
BCMcElieceCCA2PublicKey(McElieceCCA2PublicKeyParameters params) |
| Modifier and Type | Method and Description |
|---|---|
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() |
public BCMcElieceCCA2PublicKey(McElieceCCA2PublicKeyParameters params)
public java.lang.String getAlgorithm()
getAlgorithm in interface java.security.Keypublic int getN()
public int getK()
public int getT()
public GF2Matrix getG()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - the other objectpublic int hashCode()
hashCode in class java.lang.Objectpublic 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.Keypublic java.lang.String getFormat()
getFormat in interface java.security.Key