de.flexiprovider.pqc.hbc
Interface PRNG

All Known Implementing Classes:
FIPS_186_2_PRNG, PRNGWrapper

public interface PRNG

This class specifies the interface for random number generators for CMSS.

Author:
Martin Döring

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.
 

Method Detail

initialize

public void initialize(MessageDigest md)
Initialize the RNG with the given message digest.
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.
Parameters:
outSeed - byte array in which (1 + inSeed + RAND) mod 2nn will be stored
Returns:
byte array containing H(inSeed)