public class McElieceKeyGenParameterSpec extends Object implements 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.
|
public static final int DEFAULT_M
public static final int DEFAULT_T
public McElieceKeyGenParameterSpec()
public McElieceKeyGenParameterSpec(int keysize)
keysize
- the length of a Goppa codeIllegalArgumentException
- if keysize < 1.public McElieceKeyGenParameterSpec(int m, int t) throws InvalidParameterException
m
- degree of the finite field GF(2^m)t
- error correction capability of the codeInvalidParameterException
- 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 polynomialIllegalArgumentException
- if m < 1 or m > 32 or
t < 0 or t > n or
poly is not an irreducible field polynomial.Copyright © 2018 BouncyCastle.org. All rights reserved.