public class McElieceCCA2KeyGenParameterSpec 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.
|
static String |
SHA1 |
static String |
SHA224 |
static String |
SHA256 |
static String |
SHA384 |
static String |
SHA512 |
Constructor and Description |
---|
McElieceCCA2KeyGenParameterSpec()
Constructor.
|
McElieceCCA2KeyGenParameterSpec(int keysize)
Constructor.
|
McElieceCCA2KeyGenParameterSpec(int m,
int t)
Constructor.
|
McElieceCCA2KeyGenParameterSpec(int m,
int t,
int poly)
Constructor.
|
McElieceCCA2KeyGenParameterSpec(int m,
int t,
int poly,
String digest) |
McElieceCCA2KeyGenParameterSpec(int m,
int t,
String digest) |
McElieceCCA2KeyGenParameterSpec(int keysize,
String digest) |
Modifier and Type | Method and Description |
---|---|
String |
getDigest()
Return CCA-2 digest.
|
int |
getFieldPoly() |
int |
getM() |
int |
getN() |
int |
getT() |
public static final String SHA1
public static final String SHA224
public static final String SHA256
public static final String SHA384
public static final String SHA512
public static final int DEFAULT_M
public static final int DEFAULT_T
public McElieceCCA2KeyGenParameterSpec()
public McElieceCCA2KeyGenParameterSpec(int keysize)
keysize
- the length of a Goppa codeIllegalArgumentException
- if keysize < 1.public McElieceCCA2KeyGenParameterSpec(int keysize, String digest)
public McElieceCCA2KeyGenParameterSpec(int m, int t)
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 McElieceCCA2KeyGenParameterSpec(int m, int t, String digest)
public McElieceCCA2KeyGenParameterSpec(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.public McElieceCCA2KeyGenParameterSpec(int m, int t, int poly, String digest)
public int getM()
public int getN()
public int getT()
public int getFieldPoly()
public String getDigest()
Copyright © 2020 BouncyCastle.org. All rights reserved.