|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.pqc.jcajce.spec.McElieceKeyGenParameterSpec
This class provides a specification for the parameters that are used by the McEliece, McElieceCCA2, and Niederreiter key pair generators.
Field Summary | |
static int |
DEFAULT_M
The default extension degree |
static int |
DEFAULT_T
The default error correcting capability. |
Constructor Summary | |
McElieceKeyGenParameterSpec()
Constructor. |
|
McElieceKeyGenParameterSpec(int keysize)
Constructor. |
|
McElieceKeyGenParameterSpec(int m,
int t)
Constructor. |
|
McElieceKeyGenParameterSpec(int m,
int t,
int poly)
Constructor. |
Method Summary | |
int |
getFieldPoly()
|
int |
getM()
|
int |
getN()
|
int |
getT()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DEFAULT_M
public static final int DEFAULT_T
Constructor Detail |
public McElieceKeyGenParameterSpec()
public McElieceKeyGenParameterSpec(int keysize)
keysize
- the length of a Goppa code
java.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 code
java.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 polynomial
java.lang.IllegalArgumentException
- if m < 1 or m > 32 or
t < 0 or t > n or
poly is not an irreducible field polynomial.Method Detail |
public int getM()
public int getN()
public int getT()
public int getFieldPoly()
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |