Class McElieceCCA2Parameters
- java.lang.Object
-
- org.bouncycastle.pqc.crypto.mceliece.McElieceParameters
-
- org.bouncycastle.pqc.crypto.mceliece.McElieceCCA2Parameters
-
- All Implemented Interfaces:
CipherParameters
public class McElieceCCA2Parameters extends McElieceParameters
-
-
Field Summary
-
Fields inherited from class org.bouncycastle.pqc.crypto.mceliece.McElieceParameters
DEFAULT_M, DEFAULT_T
-
-
Constructor Summary
Constructors Constructor Description McElieceCCA2Parameters()
Constructor.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, java.lang.String digest)
Constructor.McElieceCCA2Parameters(int m, int t, java.lang.String digest)
Constructor.McElieceCCA2Parameters(int keysize, java.lang.String digest)
Constructor.McElieceCCA2Parameters(java.lang.String digest)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDigest()
Return the CCA2 mode digest if set.-
Methods inherited from class org.bouncycastle.pqc.crypto.mceliece.McElieceParameters
getFieldPoly, getM, getN, getT
-
-
-
-
Constructor Detail
-
McElieceCCA2Parameters
public McElieceCCA2Parameters()
Constructor. Set the default parameters: extension degree.
-
McElieceCCA2Parameters
public McElieceCCA2Parameters(java.lang.String digest)
-
McElieceCCA2Parameters
public McElieceCCA2Parameters(int keysize)
Constructor.- Parameters:
keysize
- the length of a Goppa code- Throws:
java.lang.IllegalArgumentException
- if keysize < 1.
-
McElieceCCA2Parameters
public McElieceCCA2Parameters(int keysize, java.lang.String digest)
Constructor.- Parameters:
keysize
- the length of a Goppa codedigest
- CCA2 mode digest- Throws:
java.lang.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:
java.lang.IllegalArgumentException
- if m < 1 or m > 32 or t < 0 or t > n.
-
McElieceCCA2Parameters
public McElieceCCA2Parameters(int m, int t, java.lang.String digest)
Constructor.- Parameters:
m
- degree of the finite field GF(2^m)t
- error correction capability of the code- Throws:
java.lang.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:
java.lang.IllegalArgumentException
- if m < 1 or m > 32 or t < 0 or t > n or poly is not an irreducible field polynomial.
-
McElieceCCA2Parameters
public McElieceCCA2Parameters(int m, int t, int poly, java.lang.String digest)
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:
java.lang.IllegalArgumentException
- if m < 1 or m > 32 or t < 0 or t > n or poly is not an irreducible field polynomial.
-
-