de.flexiprovider.pqc.hbc.ots
Class PRNGWrapper

java.lang.Object
  |
  +--de.flexiprovider.pqc.hbc.ots.PRNGWrapper
All Implemented Interfaces:
PRNG

public class PRNGWrapper
extends java.lang.Object
implements PRNG


Constructor Summary
PRNGWrapper(PRNG prng, int length)
           
 
Method Summary
 int getLength()
           
 void initialize(MessageDigest md)
          Initialize the RNG with the given message digest.
 byte[] nextSeed(byte[] outSeed)
          returns the next output cut to the desired byte-length
 void setLength(int length)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PRNGWrapper

public PRNGWrapper(PRNG prng,
                   int length)
Method Detail

initialize

public void initialize(MessageDigest md)
Description copied from interface: PRNG
Initialize the RNG with the given message digest.
Specified by:
initialize in interface PRNG
Following copied from interface: de.flexiprovider.pqc.hbc.PRNG
Parameters:
md - the message digest for constructing the random numbers

nextSeed

public byte[] nextSeed(byte[] outSeed)
returns the next output cut to the desired byte-length
Specified by:
nextSeed in interface PRNG
Following copied from interface: de.flexiprovider.pqc.hbc.PRNG
Parameters:
outSeed - byte array in which (1 + inSeed + RAND) mod 2nn will be stored
Returns:
byte array containing H(inSeed)

setLength

public void setLength(int length)

getLength

public int getLength()