Package org.bouncycastle.pqc.jcajce.spec
Class McElieceKeyGenParameterSpec
- java.lang.Object
-
- org.bouncycastle.pqc.jcajce.spec.McElieceKeyGenParameterSpec
-
- All Implemented Interfaces:
java.security.spec.AlgorithmParameterSpec
public class McElieceKeyGenParameterSpec extends java.lang.Object implements java.security.spec.AlgorithmParameterSpec
This class provides a specification for the parameters that are used by the McEliece, McElieceCCA2, and Niederreiter key pair generators.
-
-
Constructor Summary
Constructors Constructor Description McElieceKeyGenParameterSpec()
Constructor.McElieceKeyGenParameterSpec(int keysize)
Constructor.McElieceKeyGenParameterSpec(int m, int t)
Constructor.McElieceKeyGenParameterSpec(int m, int t, int poly)
Constructor.
-
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
-
McElieceKeyGenParameterSpec
public McElieceKeyGenParameterSpec()
Constructor. Set the default parameters: extension degree.
-
McElieceKeyGenParameterSpec
public McElieceKeyGenParameterSpec(int keysize)
Constructor.- Parameters:
keysize
- the length of a Goppa code- Throws:
java.lang.IllegalArgumentException
- if keysize < 1.
-
McElieceKeyGenParameterSpec
public McElieceKeyGenParameterSpec(int m, int t) throws java.security.InvalidParameterException
Constructor.- Parameters:
m
- degree of the finite field GF(2^m)t
- error correction capability of the code- Throws:
java.security.InvalidParameterException
- if m < 1 or m > 32 or t < 0 or t > n.
-
McElieceKeyGenParameterSpec
public McElieceKeyGenParameterSpec(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.
-
-