public class BCMcEliecePublicKey extends Object implements PublicKey
McElieceKeyPairGenerator
or McElieceKeyFactorySpi
.Constructor and Description |
---|
BCMcEliecePublicKey(org.bouncycastle.pqc.crypto.mceliece.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() |
org.bouncycastle.pqc.math.linearalgebra.GF2Matrix |
getG() |
int |
getK() |
int |
getN() |
int |
getT() |
int |
hashCode() |
String |
toString() |
public BCMcEliecePublicKey(org.bouncycastle.pqc.crypto.mceliece.McEliecePublicKeyParameters params)
public String getAlgorithm()
getAlgorithm
in interface Key
public int getN()
public int getK()
public int getT()
public org.bouncycastle.pqc.math.linearalgebra.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 © 2017 BouncyCastle.org. All rights reserved.