Top Fields Constructors Methods
org.bouncycastle.pqc.legacy.crypto.mceliece

public Class McElieceCCA2Parameters

extends McElieceParameters
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final String
Inherited from org.bouncycastle.pqc.legacy.crypto.mceliece.McElieceParameters:
DEFAULT_MDEFAULT_T

Constructor Summary

AccessConstructor and Description
public
McElieceCCA2Parameters()

Constructor.

public
public
McElieceCCA2Parameters(int
the length of a Goppa code
keysize
)

Constructor.

public
McElieceCCA2Parameters(int
the length of a Goppa code
keysize
,
String
CCA2 mode digest
digest
)

Constructor.

public
McElieceCCA2Parameters(int
degree of the finite field GF(2^m)
m
,
int
error correction capability of the code
t
)

Constructor.

public
McElieceCCA2Parameters(int
degree of the finite field GF(2^m)
m
,
int
error correction capability of the code
t
,
String digest)

Constructor.

public
McElieceCCA2Parameters(int
degree of the finite field GF(2^m)
m
,
int
error correction capability of the code
t
,
int
the field polynomial
poly
)

Constructor.

public
McElieceCCA2Parameters(int
degree of the finite field GF(2^m)
m
,
int
error correction capability of the code
t
,
int
the field polynomial
poly
,
String
CCA2 mode digest
digest
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the CCA2 digest to use, null if not present.
getDigest
()

Return the CCA2 mode digest if set.

Inherited from org.bouncycastle.pqc.legacy.crypto.mceliece.McElieceParameters:
getFieldPolygetMgetNgetT

Field Detail

digestback to summary
private final String digest

Hides org.bouncycastle.pqc.legacy.crypto.mceliece.McElieceParameters.digest.

Constructor Detail

McElieceCCA2Parametersback to summary
public McElieceCCA2Parameters()

Constructor. Set the default parameters: extension degree.

McElieceCCA2Parametersback to summary
public McElieceCCA2Parameters(String digest)
McElieceCCA2Parametersback to summary
public McElieceCCA2Parameters(int keysize)

Constructor.

Parameters
keysize:int

the length of a Goppa code

Exceptions
IllegalArgumentException:
if keysize < 1.
McElieceCCA2Parametersback to summary
public McElieceCCA2Parameters(int keysize, String digest)

Constructor.

Parameters
keysize:int

the length of a Goppa code

digest:String

CCA2 mode digest

Exceptions
IllegalArgumentException:
if keysize < 1.
McElieceCCA2Parametersback to summary
public McElieceCCA2Parameters(int m, int t)

Constructor.

Parameters
m:int

degree of the finite field GF(2^m)

t:int

error correction capability of the code

Exceptions
IllegalArgumentException:
if m < 1 or m > 32 or t < 0 or t > n.
McElieceCCA2Parametersback to summary
public McElieceCCA2Parameters(int m, int t, String digest)

Constructor.

Parameters
m:int

degree of the finite field GF(2^m)

t:int

error correction capability of the code

Exceptions
IllegalArgumentException:
if m < 1 or m > 32 or t < 0 or t > n.
McElieceCCA2Parametersback to summary
public McElieceCCA2Parameters(int m, int t, int poly)

Constructor.

Parameters
m:int

degree of the finite field GF(2^m)

t:int

error correction capability of the code

poly:int

the field polynomial

Exceptions
IllegalArgumentException:
if m < 1 or m > 32 or t < 0 or t > n or poly is not an irreducible field polynomial.
McElieceCCA2Parametersback to summary
public McElieceCCA2Parameters(int m, int t, int poly, String digest)

Constructor.

Parameters
m:int

degree of the finite field GF(2^m)

t:int

error correction capability of the code

poly:int

the field polynomial

digest:String

CCA2 mode digest

Exceptions
IllegalArgumentException:
if m < 1 or m > 32 or t < 0 or t > n or poly is not an irreducible field polynomial.

Method Detail

getDigestback to summary
public String getDigest()

Return the CCA2 mode digest if set.

Returns:String

the CCA2 digest to use, null if not present.