public class McElieceKeyGenParameterSpec
extends java.lang.Object
implements java.security.spec.AlgorithmParameterSpec
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_M
The default extension degree
|
static int |
DEFAULT_T
The default error correcting capability.
|
| Constructor and Description |
|---|
McElieceKeyGenParameterSpec()
Constructor.
|
McElieceKeyGenParameterSpec(int keysize)
Constructor.
|
McElieceKeyGenParameterSpec(int m,
int t)
Constructor.
|
McElieceKeyGenParameterSpec(int m,
int t,
int poly)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getFieldPoly() |
int |
getM() |
int |
getN() |
int |
getT() |
public static final int DEFAULT_M
public static final int DEFAULT_T
public McElieceKeyGenParameterSpec()
public McElieceKeyGenParameterSpec(int keysize)
keysize - the length of a Goppa codejava.lang.IllegalArgumentException - if keysize < 1.public McElieceKeyGenParameterSpec(int m,
int t)
throws java.security.InvalidParameterException
m - degree of the finite field GF(2^m)t - error correction capability of the codejava.security.InvalidParameterException - if m < 1 or m > 32 or
t < 0 or t > n.public McElieceKeyGenParameterSpec(int m,
int t,
int poly)
m - degree of the finite field GF(2^m)t - error correction capability of the codepoly - the field polynomialjava.lang.IllegalArgumentException - if m < 1 or m > 32 or
t < 0 or t > n or
poly is not an irreducible field polynomial.