public class BCMcElieceCCA2PublicKey extends Object implements CipherParameters, PublicKey
McElieceCCA2KeyPairGenerator
or McElieceCCA2KeyFactorySpi
.Constructor and Description |
---|
BCMcElieceCCA2PublicKey(McElieceCCA2PublicKeyParameters 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 BCMcElieceCCA2PublicKey(McElieceCCA2PublicKeyParameters params)
public String getAlgorithm()
getAlgorithm
in interface Key
public 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 Key
Copyright © 2020 BouncyCastle.org. All rights reserved.