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

public Class McElieceCCA2PrivateKeyParameters

extends McElieceCCA2KeyParameters
Class Inheritance
Imports
org.bouncycastle.pqc.legacy.math.linearalgebra.GF2Matrix, .GF2mField, .GoppaCode, .Permutation, .PolynomialGF2mSmallM, .PolynomialRingGF2m

Field Summary

Modifier and TypeField and Description
private GF2mField
private PolynomialGF2mSmallM
private GF2Matrix
h

private int
k

private int
n

private Permutation
p

private PolynomialGF2mSmallM[]

Constructor Summary

AccessConstructor and Description
public
McElieceCCA2PrivateKeyParameters(int
the length of the code
n
,
int
the dimension of the code
k
,
GF2mField
the finite field GF(2m)
field
,
PolynomialGF2mSmallM
the irreducible Goppa polynomial
gp
,
Permutation
the permutation
p
,
String
name of digest algorithm
digest
)

Constructor.

public
McElieceCCA2PrivateKeyParameters(int
the length of the code
n
,
int
the dimension of the code
k
,
GF2mField
the finite field GF(2m)
field
,
PolynomialGF2mSmallM
the irreducible Goppa polynomial
gp
,
GF2Matrix
the canonical check matrix
canonicalCheckMatrix
,
Permutation
the permutation
p
,
String
name of digest algorithm
digest
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public GF2mField

Returns:

the finite field
getField
()

public PolynomialGF2mSmallM

Returns:

the irreducible Goppa polynomial
getGoppaPoly
()

public GF2Matrix

Returns:

the canonical check matrix H
getH
()

public int

Returns:

the dimension of the code
getK
()

public int

Returns:

the length of the code
getN
()

public Permutation

Returns:

the permutation P
getP
()

public PolynomialGF2mSmallM[]

Returns:

the matrix used to compute square roots in (GF(2^m))^t
getQInv
()

public int

Returns:

the degree of the Goppa polynomial (error correcting capability)
getT
()

Inherited from org.bouncycastle.pqc.legacy.crypto.mceliece.McElieceCCA2KeyParameters:
getDigest

Field Detail

fieldback to summary
private GF2mField field
goppaPolyback to summary
private PolynomialGF2mSmallM goppaPoly
hback to summary
private GF2Matrix h
kback to summary
private int k
nback to summary
private int n
pback to summary
private Permutation p
qInvback to summary
private PolynomialGF2mSmallM[] qInv

Constructor Detail

McElieceCCA2PrivateKeyParametersback to summary
public McElieceCCA2PrivateKeyParameters(int n, int k, GF2mField field, PolynomialGF2mSmallM gp, Permutation p, String digest)

Constructor.

Parameters
n:int

the length of the code

k:int

the dimension of the code

field:GF2mField

the finite field GF(2m)

gp:PolynomialGF2mSmallM

the irreducible Goppa polynomial

p:Permutation

the permutation

digest:String

name of digest algorithm

McElieceCCA2PrivateKeyParametersback to summary
public McElieceCCA2PrivateKeyParameters(int n, int k, GF2mField field, PolynomialGF2mSmallM gp, GF2Matrix canonicalCheckMatrix, Permutation p, String digest)

Constructor.

Parameters
n:int

the length of the code

k:int

the dimension of the code

field:GF2mField

the finite field GF(2m)

gp:PolynomialGF2mSmallM

the irreducible Goppa polynomial

canonicalCheckMatrix:GF2Matrix

the canonical check matrix

p:Permutation

the permutation

digest:String

name of digest algorithm

Method Detail

getFieldback to summary
public GF2mField getField()
Returns:GF2mField

the finite field

getGoppaPolyback to summary
public PolynomialGF2mSmallM getGoppaPoly()
Returns:PolynomialGF2mSmallM

the irreducible Goppa polynomial

getHback to summary
public GF2Matrix getH()
Returns:GF2Matrix

the canonical check matrix H

getKback to summary
public int getK()
Returns:int

the dimension of the code

getNback to summary
public int getN()
Returns:int

the length of the code

getPback to summary
public Permutation getP()
Returns:Permutation

the permutation P

getQInvback to summary
public PolynomialGF2mSmallM[] getQInv()
Returns:PolynomialGF2mSmallM[]

the matrix used to compute square roots in (GF(2^m))^t

getTback to summary
public int getT()
Returns:int

the degree of the Goppa polynomial (error correcting capability)