de.flexiprovider.pqc.ecc
Class ECCKeyGenParameterSpec

java.lang.Object
  |
  +--de.flexiprovider.pqc.ecc.ECCKeyGenParameterSpec
All Implemented Interfaces:
AlgorithmParameterSpec, java.security.spec.AlgorithmParameterSpec

public class ECCKeyGenParameterSpec
extends java.lang.Object
implements AlgorithmParameterSpec

This class provides a specification for the parameters that are used by the McEliece, McElieceCCA2, and Niederreiter key pair generators.

Author:
Elena Klintsevich, Martin Döring
See Also:
McElieceKeyPairGenerator, McElieceCCA2KeyPairGenerator, NiederreiterKeyPairGenerator

Field Summary
static int DEFAULT_M
          The default extension degree
static int DEFAULT_T
          The default error correcting capability.
 
Constructor Summary
ECCKeyGenParameterSpec()
          Constructor.
ECCKeyGenParameterSpec(int keysize)
          Constructor.
ECCKeyGenParameterSpec(int m, int t)
          Constructor.
ECCKeyGenParameterSpec(int m, int t, int poly)
          Constructor.
 
Method Summary
 int getFieldPoly()
           
 int getM()
           
 int getN()
           
 int getT()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_M

public static final int DEFAULT_M
The default extension degree

DEFAULT_T

public static final int DEFAULT_T
The default error correcting capability.
Constructor Detail

ECCKeyGenParameterSpec

public ECCKeyGenParameterSpec()
Constructor. Set the default parameters: extension degree.

ECCKeyGenParameterSpec

public ECCKeyGenParameterSpec(int keysize)
                       throws InvalidParameterException
Constructor.
Parameters:
keysize - the length of a Goppa code
Throws:
InvalidParameterException - if keysize < 1.

ECCKeyGenParameterSpec

public ECCKeyGenParameterSpec(int m,
                              int t)
                       throws InvalidParameterException
Constructor.
Parameters:
m - degree of the finite field GF(2^m)
t - error correction capability of the code
Throws:
InvalidParameterException - if m < 1 or m > 32 or t < 0 or t > n.

ECCKeyGenParameterSpec

public ECCKeyGenParameterSpec(int m,
                              int t,
                              int poly)
                       throws InvalidParameterException
Constructor.
Parameters:
m - degree of the finite field GF(2^m)
t - error correction capability of the code
poly - the field polynomial
Throws:
InvalidParameterException - if m < 1 or m > 32 or t < 0 or t > n or poly is not an irreducible field polynomial.
Method Detail

getM

public int getM()
Returns:
the extension degree of the finite field GF(2^m)

getN

public int getN()
Returns:
the length of the code

getT

public int getT()
Returns:
the error correction capability of the code

getFieldPoly

public int getFieldPoly()
Returns:
the field polynomial