public class BCMcEliecePublicKey extends Object implements PublicKey
McElieceKeyPairGenerator or McElieceKeyFactorySpi.| Constructor and Description |
|---|
BCMcEliecePublicKey(McEliecePublicKeyParameters 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 keyData to encode in the SubjectPublicKeyInfo structure.
|
String |
getFormat() |
GF2Matrix |
getG() |
int |
getK() |
int |
getN() |
int |
getT() |
int |
hashCode() |
String |
toString() |
public BCMcEliecePublicKey(McEliecePublicKeyParameters params)
public String getAlgorithm()
getAlgorithm in interface Keypublic int getN()
public int getK()
public int getT()
public GF2Matrix getG()
public String toString()
public boolean equals(Object other)
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 KeyCopyright © 2015–2020 The veraPDF Consortium. All rights reserved.