public class McEliecePrivateKeySpec
extends java.lang.Object
implements java.security.spec.KeySpec
org.spongycastle.pqc.ecc.JDKMcEliecePrivateKey.McEliecePrivateKey,
KeySpec| Constructor and Description |
|---|
McEliecePrivateKeySpec(java.lang.String oid,
int n,
int k,
byte[] encField,
byte[] encGoppaPoly,
byte[] encSInv,
byte[] encP1,
byte[] encP2,
byte[] encH,
byte[][] encQInv)
Constructor (used by the
McElieceKeyFactory). |
McEliecePrivateKeySpec(java.lang.String oid,
int n,
int k,
org.spongycastle.pqc.math.linearalgebra.GF2mField field,
org.spongycastle.pqc.math.linearalgebra.PolynomialGF2mSmallM goppaPoly,
org.spongycastle.pqc.math.linearalgebra.GF2Matrix sInv,
org.spongycastle.pqc.math.linearalgebra.Permutation p1,
org.spongycastle.pqc.math.linearalgebra.Permutation p2,
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 |
getP1() |
org.spongycastle.pqc.math.linearalgebra.Permutation |
getP2() |
org.spongycastle.pqc.math.linearalgebra.PolynomialGF2mSmallM[] |
getQInv() |
org.spongycastle.pqc.math.linearalgebra.GF2Matrix |
getSInv() |
public McEliecePrivateKeySpec(java.lang.String oid,
int n,
int k,
org.spongycastle.pqc.math.linearalgebra.GF2mField field,
org.spongycastle.pqc.math.linearalgebra.PolynomialGF2mSmallM goppaPoly,
org.spongycastle.pqc.math.linearalgebra.GF2Matrix sInv,
org.spongycastle.pqc.math.linearalgebra.Permutation p1,
org.spongycastle.pqc.math.linearalgebra.Permutation p2,
org.spongycastle.pqc.math.linearalgebra.GF2Matrix h,
org.spongycastle.pqc.math.linearalgebra.PolynomialGF2mSmallM[] qInv)
oid - n - the length of the codek - the dimension of the codefield - the field polynomial defining the finite field
GF(2m)goppaPoly - the irreducible Goppa polynomialsInv - the matrix S-1p1 - the permutation used to generate the systematic check
matrixp2 - the permutation used to compute the public generator
matrixh - the canonical check matrixqInv - the matrix used to compute square roots in
(GF(2m))tpublic McEliecePrivateKeySpec(java.lang.String oid,
int n,
int k,
byte[] encField,
byte[] encGoppaPoly,
byte[] encSInv,
byte[] encP1,
byte[] encP2,
byte[] encH,
byte[][] encQInv)
McElieceKeyFactory).oid - n - the length of the codek - the dimension of the codeencField - the encoded field polynomial defining the finite field
GF(2m)encGoppaPoly - the encoded irreducible Goppa polynomialencSInv - the encoded matrix S-1encP1 - the encoded permutation used to generate the systematic
check matrixencP2 - the encoded permutation used to compute the public
generator matrixencH - the encoded canonical check matrixencQInv - the encoded matrix used to compute square roots in
(GF(2m))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.GF2Matrix getSInv()
public org.spongycastle.pqc.math.linearalgebra.Permutation getP1()
public org.spongycastle.pqc.math.linearalgebra.Permutation getP2()
public org.spongycastle.pqc.math.linearalgebra.GF2Matrix getH()
public org.spongycastle.pqc.math.linearalgebra.PolynomialGF2mSmallM[] getQInv()
public java.lang.String getOIDString()