org.bouncycastle.pqc.jcajce.spec
Class McElieceCCA2PrivateKeySpec
java.lang.Object
org.bouncycastle.pqc.jcajce.spec.McElieceCCA2PrivateKeySpec
- All Implemented Interfaces:
- java.security.spec.KeySpec
public class McElieceCCA2PrivateKeySpec
- extends java.lang.Object
- implements java.security.spec.KeySpec
This class provides a specification for a McEliece CCA2 private key.
- See Also:
JDKMcElieceCCA2PrivateKey
Constructor Summary |
McElieceCCA2PrivateKeySpec(java.lang.String oid,
int n,
int k,
byte[] encFieldPoly,
byte[] encGoppaPoly,
byte[] encP,
byte[] encH,
byte[][] encQInv)
Constructor used by the McElieceKeyFactory . |
McElieceCCA2PrivateKeySpec(java.lang.String oid,
int n,
int k,
GF2mField field,
PolynomialGF2mSmallM gp,
Permutation p,
GF2Matrix h,
PolynomialGF2mSmallM[] qInv)
Constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
McElieceCCA2PrivateKeySpec
public McElieceCCA2PrivateKeySpec(java.lang.String oid,
int n,
int k,
GF2mField field,
PolynomialGF2mSmallM gp,
Permutation p,
GF2Matrix h,
PolynomialGF2mSmallM[] qInv)
- Constructor.
- Parameters:
n
- the length of the codek
- the dimension of the codefield
- the finite field GF(2m)gp
- the irreducible Goppa polynomialp
- the permutationh
- the canonical check matrixqInv
- the matrix used to compute square roots in
(GF(2^m))^t
McElieceCCA2PrivateKeySpec
public McElieceCCA2PrivateKeySpec(java.lang.String oid,
int n,
int k,
byte[] encFieldPoly,
byte[] encGoppaPoly,
byte[] encP,
byte[] encH,
byte[][] encQInv)
- Constructor used by the
McElieceKeyFactory
.
- Parameters:
n
- the length of the codek
- the dimension of the codeencFieldPoly
- the encoded field polynomial defining the finite field
GF(2m)encGoppaPoly
- the encoded irreducible Goppa polynomialencP
- the encoded permutationencH
- the encoded canonical check matrixencQInv
- the encoded matrix used to compute square roots in
(GF(2^m))^t
getN
public int getN()
- Returns:
- the length of the code
getK
public int getK()
- Returns:
- the dimension of the code
getField
public GF2mField getField()
- Returns:
- the finite field
getGoppaPoly
public PolynomialGF2mSmallM getGoppaPoly()
- Returns:
- the irreducible Goppa polynomial
getP
public Permutation getP()
- Returns:
- the permutation P
getH
public GF2Matrix getH()
- Returns:
- the canonical check matrix H
getQInv
public PolynomialGF2mSmallM[] getQInv()
- Returns:
- the matrix used to compute square roots in (GF(2^m))^t
getOIDString
public java.lang.String getOIDString()