public class BCMcElieceCCA2PrivateKey extends Object implements CipherParameters, PrivateKey
McElieceCCA2KeyPairGenerator or McElieceCCA2KeyFactorySpi.McElieceCCA2KeyPairGenerator,
Serialized Form| Constructor and Description |
|---|
BCMcElieceCCA2PrivateKey(McElieceCCA2PrivateKeyParameters params) |
BCMcElieceCCA2PrivateKey(McElieceCCA2PrivateKeySpec keySpec)
Constructor (used by the
McElieceCCA2KeyFactorySpi). |
BCMcElieceCCA2PrivateKey(String oid,
int n,
int k,
GF2mField field,
PolynomialGF2mSmallM gp,
Permutation p,
GF2Matrix h,
PolynomialGF2mSmallM[] qInv)
Constructor (used by the
McElieceCCA2KeyPairGenerator). |
| 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.
|
GF2mField |
getField() |
String |
getFormat() |
PolynomialGF2mSmallM |
getGoppaPoly() |
GF2Matrix |
getH() |
int |
getK() |
McElieceCCA2Parameters |
getMcElieceCCA2Parameters() |
int |
getN() |
protected ASN1ObjectIdentifier |
getOID() |
String |
getOIDString() |
Permutation |
getP() |
PolynomialGF2mSmallM[] |
getQInv() |
int |
getT() |
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitdestroy, isDestroyedpublic BCMcElieceCCA2PrivateKey(String oid, int n, int k, GF2mField field, PolynomialGF2mSmallM gp, Permutation p, GF2Matrix h, PolynomialGF2mSmallM[] qInv)
McElieceCCA2KeyPairGenerator).n - the length of the codek - the dimension of the codefield - the field polynomialgp - the irreducible Goppa polynomialp - the permutationh - the canonical check matrixqInv - the matrix used to compute square roots in
(GF(2^m))^tpublic BCMcElieceCCA2PrivateKey(McElieceCCA2PrivateKeySpec keySpec)
McElieceCCA2KeyFactorySpi).keySpec - a McElieceCCA2PrivateKeySpecpublic BCMcElieceCCA2PrivateKey(McElieceCCA2PrivateKeyParameters params)
public String getAlgorithm()
getAlgorithm in interface Keypublic int getN()
public int getK()
public int getT()
public GF2mField getField()
public PolynomialGF2mSmallM getGoppaPoly()
public Permutation getP()
public GF2Matrix getH()
public PolynomialGF2mSmallM[] getQInv()
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
McEliecePrivateKey ::= SEQUENCE {
m INTEGER -- extension degree of the field
k INTEGER -- dimension of the code
field OCTET STRING -- field polynomial
goppaPoly OCTET STRING -- irreducible Goppa polynomial
p OCTET STRING -- permutation vector
matrixH OCTET STRING -- canonical check matrix
sqRootMatrix SEQUENCE OF OCTET STRING -- square root matrix
}
getEncoded in interface Keypublic McElieceCCA2Parameters getMcElieceCCA2Parameters()
Copyright © 2015–2017 The veraPDF Consortium. All rights reserved.