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

public Class McElieceParameters

extends Object
implements CipherParameters
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.CipherParameters
Known Direct Subclasses
org.bouncycastle.pqc.legacy.crypto.mceliece.McElieceCCA2Parameters
Imports
org.bouncycastle.crypto.CipherParameters, .Digest, org.bouncycastle.pqc.legacy.math.linearalgebra.PolynomialRingGF2

Field Summary

Modifier and TypeField and Description
public static final int
DEFAULT_M

The default extension degree

public static final int
DEFAULT_T

The default error correcting capability.

private Digest
private int
fieldPoly

the field polynomial

private int
m

extension degree of the finite field GF(2^m)

private int
n

length of the code

private int
t

error correction capability of the code

Constructor Summary

AccessConstructor and Description
public
McElieceParameters()

Constructor.

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

Constructor.

public
McElieceParameters(int
the length of a Goppa code
keysize
,
Digest
CCA2 mode digest
digest
)

Constructor.

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

Constructor.

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

Constructor.

public
McElieceParameters(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
McElieceParameters(int
degree of the finite field GF(2^m)
m
,
int
error correction capability of the code
t
,
int
the field polynomial
poly
,
Digest
CCA2 mode digest
digest
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the field polynomial
getFieldPoly
()

public int

Returns:

the extension degree of the finite field GF(2^m)
getM
()

public int

Returns:

the length of the code
getN
()

public int

Returns:

the error correction capability of the code
getT
()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DEFAULT_Mback to summary
public static final int DEFAULT_M

The default extension degree

DEFAULT_Tback to summary
public static final int DEFAULT_T

The default error correcting capability.

digestback to summary
private Digest digest
fieldPolyback to summary
private int fieldPoly

the field polynomial

mback to summary
private int m

extension degree of the finite field GF(2^m)

nback to summary
private int n

length of the code

tback to summary
private int t

error correction capability of the code

Constructor Detail

McElieceParametersback to summary
public McElieceParameters()

Constructor. Set the default parameters: extension degree.

McElieceParametersback to summary
public McElieceParameters(Digest digest)
McElieceParametersback to summary
public McElieceParameters(int keysize)

Constructor.

Parameters
keysize:int

the length of a Goppa code

Exceptions
IllegalArgumentException:
if keysize < 1.
McElieceParametersback to summary
public McElieceParameters(int keysize, Digest digest)

Constructor.

Parameters
keysize:int

the length of a Goppa code

digest:Digest

CCA2 mode digest

Exceptions
IllegalArgumentException:
if keysize < 1.
McElieceParametersback to summary
public McElieceParameters(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.
McElieceParametersback to summary
public McElieceParameters(int m, int t, Digest 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.
McElieceParametersback to summary
public McElieceParameters(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.
McElieceParametersback to summary
public McElieceParameters(int m, int t, int poly, Digest 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:Digest

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

getFieldPolyback to summary
public int getFieldPoly()
Returns:int

the field polynomial

getMback to summary
public int getM()
Returns:int

the extension degree of the finite field GF(2^m)

getNback to summary
public int getN()
Returns:int

the length of the code

getTback to summary
public int getT()
Returns:int

the error correction capability of the code