de.flexiprovider.pqc.ecc.mceliece
Class McEliecePublicKeySpec

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

public class McEliecePublicKeySpec
extends java.lang.Object
implements KeySpec

This class provides a specification for a McEliece public key.

Author:
Elena Klintsevich
See Also:
McEliecePublicKey

Constructor Summary
protected McEliecePublicKeySpec(int t, int n, byte[] encG)
          Constructor (used by McElieceKeyFactory).
  McEliecePublicKeySpec(int n, int t, GF2Matrix g)
          Constructor (used by McElieceKeyFactory).
 
Method Summary
 GF2Matrix getG()
           
 int getN()
           
 int getT()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

McEliecePublicKeySpec

public McEliecePublicKeySpec(int n,
                             int t,
                             GF2Matrix g)
Constructor (used by McElieceKeyFactory).
Parameters:
n - the length of the code
t - the error correction capability of the code
g - the generator matrix

McEliecePublicKeySpec

protected McEliecePublicKeySpec(int t,
                                int n,
                                byte[] encG)
Constructor (used by McElieceKeyFactory).
Parameters:
n - the length of the code
t - the error correction capability of the code
encG - the 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

getG

public GF2Matrix getG()
Returns:
the generator matrix