Class McElieceParameters
- java.lang.Object
-
- org.bouncycastle.pqc.crypto.mceliece.McElieceParameters
-
- All Implemented Interfaces:
CipherParameters
- Direct Known Subclasses:
McElieceCCA2Parameters
public class McElieceParameters extends java.lang.Object implements CipherParameters
-
-
Constructor Summary
Constructors Constructor Description McElieceParameters()
Constructor.McElieceParameters(int keysize)
Constructor.McElieceParameters(int m, int t)
Constructor.McElieceParameters(int m, int t, int poly)
Constructor.McElieceParameters(int m, int t, int poly, Digest digest)
Constructor.McElieceParameters(int m, int t, Digest digest)
Constructor.McElieceParameters(int keysize, Digest digest)
Constructor.McElieceParameters(Digest digest)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getFieldPoly()
int
getM()
int
getN()
int
getT()
-
-
-
Field Detail
-
DEFAULT_M
public static final int DEFAULT_M
The default extension degree- See Also:
- Constant Field Values
-
DEFAULT_T
public static final int DEFAULT_T
The default error correcting capability.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
McElieceParameters
public McElieceParameters()
Constructor. Set the default parameters: extension degree.
-
McElieceParameters
public McElieceParameters(Digest digest)
-
McElieceParameters
public McElieceParameters(int keysize)
Constructor.- Parameters:
keysize
- the length of a Goppa code- Throws:
java.lang.IllegalArgumentException
- if keysize < 1.
-
McElieceParameters
public McElieceParameters(int keysize, Digest digest)
Constructor.- Parameters:
keysize
- the length of a Goppa codedigest
- CCA2 mode digest- Throws:
java.lang.IllegalArgumentException
- if keysize < 1.
-
McElieceParameters
public McElieceParameters(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.
-
McElieceParameters
public McElieceParameters(int m, int t, Digest 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.
-
McElieceParameters
public McElieceParameters(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.
-
McElieceParameters
public McElieceParameters(int m, int t, int poly, Digest 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.
-
-