public class BCMcEliecePublicKey extends Object implements CipherParameters, PublicKey
McElieceKeyPairGenerator or McElieceKeyFactorySpi.| Constructor and Description |
|---|
BCMcEliecePublicKey(McEliecePublicKeyParameters params) |
BCMcEliecePublicKey(McEliecePublicKeySpec keySpec)
Constructor (used by the
McElieceKeyFactorySpi). |
BCMcEliecePublicKey(String oid,
int n,
int t,
GF2Matrix g)
Constructor (used by the
McElieceKeyPairGenerator). |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Compare this key with another object.
|
String |
getAlgorithm()
Return the name of the algorithm.
|
protected ASN1Primitive |
getAlgParams() |
byte[] |
getEncoded()
Return the keyData to encode in the SubjectPublicKeyInfo structure.
|
String |
getFormat() |
GF2Matrix |
getG() |
int |
getK() |
McElieceParameters |
getMcElieceParameters() |
int |
getN() |
protected ASN1ObjectIdentifier |
getOID() |
String |
getOIDString() |
int |
getT() |
int |
hashCode() |
String |
toString() |
public BCMcEliecePublicKey(String oid, int n, int t, GF2Matrix g)
McElieceKeyPairGenerator).oid - n - the length of the codet - the error correction capability of the codeg - the generator matrixpublic BCMcEliecePublicKey(McEliecePublicKeySpec keySpec)
McElieceKeyFactorySpi).keySpec - a McEliecePublicKeySpecpublic 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 String getOIDString()
protected ASN1ObjectIdentifier getOID()
protected ASN1Primitive getAlgParams()
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 Keypublic McElieceParameters getMcElieceParameters()
Copyright © 2015–2017 The veraPDF Consortium. All rights reserved.