public class McElieceCCA2PrivateKeySpec
extends java.lang.Object
implements java.security.spec.KeySpec
JDKMcElieceCCA2PrivateKey| Constructor and Description |
|---|
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,
org.spongycastle.pqc.math.linearalgebra.GF2mField field,
org.spongycastle.pqc.math.linearalgebra.PolynomialGF2mSmallM gp,
org.spongycastle.pqc.math.linearalgebra.Permutation p,
org.spongycastle.pqc.math.linearalgebra.GF2Matrix h,
org.spongycastle.pqc.math.linearalgebra.PolynomialGF2mSmallM[] qInv)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.spongycastle.pqc.math.linearalgebra.GF2mField |
getField() |
org.spongycastle.pqc.math.linearalgebra.PolynomialGF2mSmallM |
getGoppaPoly() |
org.spongycastle.pqc.math.linearalgebra.GF2Matrix |
getH() |
int |
getK() |
int |
getN() |
java.lang.String |
getOIDString() |
org.spongycastle.pqc.math.linearalgebra.Permutation |
getP() |
org.spongycastle.pqc.math.linearalgebra.PolynomialGF2mSmallM[] |
getQInv() |
public McElieceCCA2PrivateKeySpec(java.lang.String oid,
int n,
int k,
org.spongycastle.pqc.math.linearalgebra.GF2mField field,
org.spongycastle.pqc.math.linearalgebra.PolynomialGF2mSmallM gp,
org.spongycastle.pqc.math.linearalgebra.Permutation p,
org.spongycastle.pqc.math.linearalgebra.GF2Matrix h,
org.spongycastle.pqc.math.linearalgebra.PolynomialGF2mSmallM[] qInv)
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))^tpublic McElieceCCA2PrivateKeySpec(java.lang.String oid,
int n,
int k,
byte[] encFieldPoly,
byte[] encGoppaPoly,
byte[] encP,
byte[] encH,
byte[][] encQInv)
McElieceKeyFactory.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))^tpublic int getN()
public int getK()
public org.spongycastle.pqc.math.linearalgebra.GF2mField getField()
public org.spongycastle.pqc.math.linearalgebra.PolynomialGF2mSmallM getGoppaPoly()
public org.spongycastle.pqc.math.linearalgebra.Permutation getP()
public org.spongycastle.pqc.math.linearalgebra.GF2Matrix getH()
public org.spongycastle.pqc.math.linearalgebra.PolynomialGF2mSmallM[] getQInv()
public java.lang.String getOIDString()