public class McElieceParameterSpec extends PQAlgorithmParameterSpec
Implements the AlgorithmParameterSpec interface for the McEliece KEM. The implementation supports all Parameter Sets defined by the authors.
It is possible to explicitly create the parameter sets with the constructor McElieceParameterSpec(ParameterSets). Furthermore, you can request the parameter set with the associated NIST Security Level (McElieceParameterSpec(SecurityLevel, boolean).
Modifier and Type | Class and Description |
---|---|
static class |
McElieceParameterSpec.ParameterSets |
algorithmID
Constructor and Description |
---|
McElieceParameterSpec()
Calls McElieceParameterSpec(SecurityLevel) with NIST's Security Level 3
|
McElieceParameterSpec(McElieceParameterSpec.ParameterSets parameterSet) |
McElieceParameterSpec(SecurityLevel securityLevel)
Initializes this object with the parameter set associated to the provided security level.
|
McElieceParameterSpec(SecurityLevel securityLevel,
boolean semiSystematic)
Initializes this object with the parameter set associated to the provided security level.
|
Modifier and Type | Method and Description |
---|---|
int |
alpha1() |
int |
alpha2() |
int |
ciphertextBytes() |
int |
controlBitsLength() |
boolean |
equals(Object o) |
int[] |
fyCoeffs() |
int |
getCoeffBytes() |
int |
getDeltaSize() |
int |
getPivotSize() |
int |
getSecretKeySize() |
int |
getSLength() |
int |
getTail() |
int |
gfMask() |
int |
hashCode() |
int |
l() |
int |
m() |
int |
mu() |
int |
n() |
int |
nu() |
int |
pkCols() |
int |
pkRowBytes() |
int |
pkRows() |
int |
q() |
int |
syndromeBytes() |
int |
t() |
int |
tau() |
String |
toString() |
getAlgorithmID
public McElieceParameterSpec()
public McElieceParameterSpec(McElieceParameterSpec.ParameterSets parameterSet)
public McElieceParameterSpec(SecurityLevel securityLevel)
securityLevel
- public McElieceParameterSpec(SecurityLevel securityLevel, boolean semiSystematic)
true
, the object loads the semi-systematic parameter set.securityLevel
- semiSystematic
- public int getSecretKeySize()
public int getPivotSize()
public int getDeltaSize()
public int getCoeffBytes()
public int getSLength()
public int getTail()
public int[] fyCoeffs()
public int q()
public int l()
public int alpha1()
public int alpha2()
public int gfMask()
public int m()
public int n()
public int t()
public int mu()
public int nu()
public int pkRows()
public int pkCols()
public int pkRowBytes()
public int tau()
public int syndromeBytes()
public int controlBitsLength()
public int ciphertextBytes()
Copyright © 2020–2023 Stiftung SIC. All rights reserved.