|
Bouncy Castle Cryptography Library 1.49 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.pqc.jcajce.provider.mceliece.BCMcElieceCCA2PublicKey
public class BCMcElieceCCA2PublicKey
This class implements a McEliece CCA2 public key and is usually instantiated
by the McElieceCCA2KeyPairGenerator
or McElieceCCA2KeyFactorySpi
.
Constructor Summary | |
---|---|
BCMcElieceCCA2PublicKey(McElieceCCA2PublicKeyParameters params)
|
|
BCMcElieceCCA2PublicKey(McElieceCCA2PublicKeySpec keySpec)
Constructor (used by the McElieceCCA2KeyFactorySpi ). |
|
BCMcElieceCCA2PublicKey(java.lang.String oid,
int n,
int t,
GF2Matrix g)
Constructor (used by the McElieceCCA2KeyPairGenerator ). |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
Compare this key with another object. |
java.lang.String |
getAlgorithm()
Return the name of the algorithm. |
protected ASN1Primitive |
getAlgParams()
|
byte[] |
getEncoded()
Return the keyData to encode in the SubjectPublicKeyInfo structure. |
java.lang.String |
getFormat()
|
GF2Matrix |
getG()
|
int |
getK()
|
McElieceCCA2Parameters |
getMcElieceCCA2Parameters()
|
int |
getN()
|
protected ASN1ObjectIdentifier |
getOID()
|
java.lang.String |
getOIDString()
|
int |
getT()
|
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BCMcElieceCCA2PublicKey(java.lang.String oid, int n, int t, GF2Matrix g)
McElieceCCA2KeyPairGenerator
).
n
- the length of the codet
- the error correction capability of the codeg
- the generator matrixpublic BCMcElieceCCA2PublicKey(McElieceCCA2PublicKeySpec keySpec)
McElieceCCA2KeyFactorySpi
).
keySpec
- a McElieceCCA2PublicKeySpec
public BCMcElieceCCA2PublicKey(McElieceCCA2PublicKeyParameters params)
Method Detail |
---|
public java.lang.String getAlgorithm()
getAlgorithm
in interface java.security.Key
public int getN()
public int getK()
public int getT()
public GF2Matrix getG()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- the other object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getOIDString()
protected ASN1ObjectIdentifier getOID()
protected ASN1Primitive getAlgParams()
public byte[] getEncoded()
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.Key
public java.lang.String getFormat()
getFormat
in interface java.security.Key
public McElieceCCA2Parameters getMcElieceCCA2Parameters()
|
Bouncy Castle Cryptography Library 1.49 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |