de.flexiprovider.pqc.ecc.niederreiter
Class NiederreiterPublicKeySpec

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

public class NiederreiterPublicKeySpec
extends java.lang.Object
implements KeySpec

This class provides a specification for a Niederreiter public key.

Author:
Elena Klintsevich
See Also:
NiederreiterPublicKey, KeySpec

Constructor Summary
protected NiederreiterPublicKeySpec(int n, int t, byte[] encH)
          Constructor, used by NiederreiterKeyFactory.
  NiederreiterPublicKeySpec(int n, int t, GF2Matrix h)
          Constructor.
 
Method Summary
 GF2Matrix getH()
           
 int getN()
           
 int getT()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NiederreiterPublicKeySpec

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

NiederreiterPublicKeySpec

protected NiederreiterPublicKeySpec(int n,
                                    int t,
                                    byte[] encH)
Constructor, used by NiederreiterKeyFactory.
Parameters:
n - length of the code
t - error correction capability of the code
encH - encoded check matrix
Method Detail

getN

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

getT

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

getH

public GF2Matrix getH()
Returns:
the check matrix