Class McElieceCCA2Parameters
java.lang.Object
org.bouncycastle.pqc.legacy.crypto.mceliece.McElieceParameters
org.bouncycastle.pqc.legacy.crypto.mceliece.McElieceCCA2Parameters
- All Implemented Interfaces:
CipherParameters
-
Field Summary
Fields inherited from class org.bouncycastle.pqc.legacy.crypto.mceliece.McElieceParameters
DEFAULT_M, DEFAULT_T
-
Constructor Summary
ConstructorDescriptionConstructor.McElieceCCA2Parameters
(int keysize) Constructor.McElieceCCA2Parameters
(int m, int t) Constructor.McElieceCCA2Parameters
(int m, int t, int poly) Constructor.McElieceCCA2Parameters
(int m, int t, int poly, String digest) Constructor.McElieceCCA2Parameters
(int m, int t, String digest) Constructor.McElieceCCA2Parameters
(int keysize, String digest) Constructor.McElieceCCA2Parameters
(String digest) -
Method Summary
Methods inherited from class org.bouncycastle.pqc.legacy.crypto.mceliece.McElieceParameters
getFieldPoly, getM, getN, getT
-
Constructor Details
-
McElieceCCA2Parameters
public McElieceCCA2Parameters()Constructor. Set the default parameters: extension degree. -
McElieceCCA2Parameters
-
McElieceCCA2Parameters
public McElieceCCA2Parameters(int keysize) Constructor.- Parameters:
keysize
- the length of a Goppa code- Throws:
IllegalArgumentException
- if keysize < 1.
-
McElieceCCA2Parameters
Constructor.- Parameters:
keysize
- the length of a Goppa codedigest
- CCA2 mode digest- Throws:
IllegalArgumentException
- if keysize < 1.
-
McElieceCCA2Parameters
public McElieceCCA2Parameters(int m, int t) Constructor.- Parameters:
m
- degree of the finite field GF(2^m)t
- error correction capability of the code- Throws:
IllegalArgumentException
- if m < 1 or m > 32 or t < 0 or t > n.
-
McElieceCCA2Parameters
Constructor.- Parameters:
m
- degree of the finite field GF(2^m)t
- error correction capability of the code- Throws:
IllegalArgumentException
- if m < 1 or m > 32 or t < 0 or t > n.
-
McElieceCCA2Parameters
public McElieceCCA2Parameters(int m, int t, int poly) Constructor.- Parameters:
m
- degree of the finite field GF(2^m)t
- error correction capability of the codepoly
- the field polynomial- Throws:
IllegalArgumentException
- if m < 1 or m > 32 or t < 0 or t > n or poly is not an irreducible field polynomial.
-
McElieceCCA2Parameters
Constructor.- Parameters:
m
- degree of the finite field GF(2^m)t
- error correction capability of the codepoly
- the field polynomialdigest
- CCA2 mode digest- Throws:
IllegalArgumentException
- if m < 1 or m > 32 or t < 0 or t > n or poly is not an irreducible field polynomial.
-
-
Method Details
-
getDigest
Return the CCA2 mode digest if set.- Returns:
- the CCA2 digest to use, null if not present.
-