de.flexiprovider.pqc.ecc.mceliece
Class McElieceCCA2PublicKeySpec

java.lang.Object
  |
  +--de.flexiprovider.pqc.ecc.mceliece.McElieceCCA2PublicKeySpec
All Implemented Interfaces:
KeySpec, java.security.spec.KeySpec

public class McElieceCCA2PublicKeySpec
extends java.lang.Object
implements KeySpec

This class provides a specification for a McEliece CCA2 public key.

Author:
Elena Klintsevich, Martin Döring
See Also:
McElieceCCA2PublicKey

Constructor Summary
McElieceCCA2PublicKeySpec(int t, int n, byte[] encMatrix)
          Constructor (used by McElieceKeyFactory).
McElieceCCA2PublicKeySpec(int n, int t, GF2Matrix matrix)
          Constructor.
 
Method Summary
 GF2Matrix getMatrixG()
           
 int getN()
           
 int getT()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

McElieceCCA2PublicKeySpec

public McElieceCCA2PublicKeySpec(int n,
                                 int t,
                                 GF2Matrix matrix)
Constructor.
Parameters:
n - length of the code
t - error correction capability
matrix - generator matrix

McElieceCCA2PublicKeySpec

public McElieceCCA2PublicKeySpec(int t,
                                 int n,
                                 byte[] encMatrix)
Constructor (used by McElieceKeyFactory).
Parameters:
n - length of the code
t - error correction capability of the code
encMatrix - encoded generator matrix
Method Detail

getN

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

getT

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

getMatrixG

public GF2Matrix getMatrixG()
Returns:
the generator matrix