de.flexiprovider.pqc.ots.lm
Class LMOTSParameterSpec

java.lang.Object
  |
  +--de.flexiprovider.pqc.ots.lm.LMOTSParameterSpec
All Implemented Interfaces:
AlgorithmParameterSpec, java.security.spec.AlgorithmParameterSpec

public class LMOTSParameterSpec
extends java.lang.Object
implements AlgorithmParameterSpec

This class provides the specification of the parameters used by the LMOTSKeyPairGenerator


Constructor Summary
LMOTSParameterSpec(int keysize)
          (EXAMPLE/TEST ONLY) Constructs an example Parameter spec using the bit length of the Encryption Key.
LMOTSParameterSpec(int[] f, int phi)
          Construct new LMOTS parameters from the given parameters.
 
Method Summary
 int getDegree()
           
 int[] getF()
           
 LMOTSHash getHFunction()
           
 int getM()
           
 int getP()
           
 int getPhi()
           
 void setHFunction(java.util.Vector a)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LMOTSParameterSpec

public LMOTSParameterSpec(int keysize)
(EXAMPLE/TEST ONLY) Constructs an example Parameter spec using the bit length of the Encryption Key. This should be understood as a test or example parameter spec and not necessary one that is applicable for actual use.
Parameters:
keysize - the bit length of the key used for encrypting the message

LMOTSParameterSpec

public LMOTSParameterSpec(int[] f,
                          int phi)
Construct new LMOTS parameters from the given parameters.
Parameters:
f - irreducible polynomial specified on page 10 in the paper
phi - this parameter depends on f and is described on page 7 in the paper
Method Detail

getDegree

public int getDegree()
Returns:
returns the degree of f

getF

public int[] getF()
Returns:
returns the function f of this signature

getHFunction

public LMOTSHash getHFunction()
Returns:
returns the hash function of this signature

getM

public int getM()
Returns:
returns the m parameter of this signature

getP

public int getP()
Returns:
returns the p parameter of this signature

getPhi

public int getPhi()
Returns:
returns the phi parameter of f

setHFunction

public void setHFunction(java.util.Vector a)
Parameters:
a - a vector of GFP32Polynomial needed to instantiate a hash function (LMOTSHash)