Class McElieceCCA2PrivateKeyParameters
java.lang.Object
org.bouncycastle.crypto.params.AsymmetricKeyParameter
org.bouncycastle.pqc.legacy.crypto.mceliece.McElieceCCA2KeyParameters
org.bouncycastle.pqc.legacy.crypto.mceliece.McElieceCCA2PrivateKeyParameters
- All Implemented Interfaces:
CipherParameters
-
Constructor Summary
ConstructorDescriptionMcElieceCCA2PrivateKeyParameters
(int n, int k, GF2mField field, PolynomialGF2mSmallM gp, GF2Matrix canonicalCheckMatrix, Permutation p, String digest) Constructor.McElieceCCA2PrivateKeyParameters
(int n, int k, GF2mField field, PolynomialGF2mSmallM gp, Permutation p, String digest) Constructor. -
Method Summary
Methods inherited from class org.bouncycastle.pqc.legacy.crypto.mceliece.McElieceCCA2KeyParameters
getDigest
Methods inherited from class org.bouncycastle.crypto.params.AsymmetricKeyParameter
isPrivate
-
Constructor Details
-
McElieceCCA2PrivateKeyParameters
public McElieceCCA2PrivateKeyParameters(int n, int k, GF2mField field, PolynomialGF2mSmallM gp, Permutation p, String digest) Constructor.- Parameters:
n
- the length of the codek
- the dimension of the codefield
- the finite field GF(2m)gp
- the irreducible Goppa polynomialp
- the permutationdigest
- name of digest algorithm
-
McElieceCCA2PrivateKeyParameters
public McElieceCCA2PrivateKeyParameters(int n, int k, GF2mField field, PolynomialGF2mSmallM gp, GF2Matrix canonicalCheckMatrix, Permutation p, String digest) Constructor.- Parameters:
n
- the length of the codek
- the dimension of the codefield
- the finite field GF(2m)gp
- the irreducible Goppa polynomialcanonicalCheckMatrix
- the canonical check matrixp
- the permutationdigest
- name of digest algorithm
-
-
Method Details
-
getN
public int getN()- Returns:
- the length of the code
-
getK
public int getK()- Returns:
- the dimension of the code
-
getT
public int getT()- Returns:
- the degree of the Goppa polynomial (error correcting capability)
-
getField
- Returns:
- the finite field
-
getGoppaPoly
- Returns:
- the irreducible Goppa polynomial
-
getP
- Returns:
- the permutation P
-
getH
- Returns:
- the canonical check matrix H
-
getQInv
- Returns:
- the matrix used to compute square roots in (GF(2^m))^t
-