public class McElieceParameters extends java.lang.Object implements CipherParameters
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 |
---|
McElieceParameters()
Constructor.
|
McElieceParameters(Digest digest) |
McElieceParameters(int keysize)
Constructor.
|
McElieceParameters(int keysize,
Digest digest)
Constructor.
|
McElieceParameters(int m,
int t)
Constructor.
|
McElieceParameters(int m,
int t,
Digest digest)
Constructor.
|
McElieceParameters(int m,
int t,
int poly)
Constructor.
|
McElieceParameters(int m,
int t,
int poly,
Digest digest)
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 McElieceParameters()
public McElieceParameters(Digest digest)
public McElieceParameters(int keysize)
keysize
- the length of a Goppa codejava.lang.IllegalArgumentException
- if keysize < 1.public McElieceParameters(int keysize, Digest digest)
keysize
- the length of a Goppa codedigest
- CCA2 mode digestjava.lang.IllegalArgumentException
- if keysize < 1.public McElieceParameters(int m, int t)
m
- degree of the finite field GF(2^m)t
- error correction capability of the codejava.lang.IllegalArgumentException
- if m < 1 or m > 32 or
t < 0 or t > n.public McElieceParameters(int m, int t, Digest digest)
m
- degree of the finite field GF(2^m)t
- error correction capability of the codejava.lang.IllegalArgumentException
- if m < 1 or m > 32 or
t < 0 or t > n.public McElieceParameters(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.public McElieceParameters(int m, int t, int poly, Digest digest)
m
- degree of the finite field GF(2^m)t
- error correction capability of the codepoly
- the field polynomialdigest
- CCA2 mode digestjava.lang.IllegalArgumentException
- if m < 1 or m > 32 or
t < 0 or t > n or
poly is not an irreducible field polynomial.