de.flexiprovider.pqc.hbc
Class FIPS_186_2_PRNG

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

public class FIPS_186_2_PRNG
extends java.lang.Object
implements PRNG

This class provides random number generation for CMSS.

Author:
Sebastian Blume, Martin Döring

Constructor Summary
FIPS_186_2_PRNG()
           
 
Method Summary
 void initialize(MessageDigest md)
          Initialize the RNG with the given message digest.
 byte[] nextSeed(byte[] outSeed)
          Compute the next seed value, return a random byte array, and update the seed to the next value.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FIPS_186_2_PRNG

public FIPS_186_2_PRNG()
Method Detail

initialize

public void initialize(MessageDigest md)
Initialize the RNG with the given message digest.
Specified by:
initialize in interface PRNG
Parameters:
md - the message digest for constructing the random numbers

nextSeed

public byte[] nextSeed(byte[] outSeed)
Compute the next seed value, return a random byte array, and update the seed to the next value.
Specified by:
nextSeed in interface PRNG
Parameters:
outSeed - byte array in which (1 + inSeed + RAND) mod 2nn will be stored
Returns:
byte array containing H(inSeed)