Bouncy Castle Cryptography Library 1.79

org.bouncycastle.pqc.legacy.crypto.gmss.util
Class GMSSRandom

java.lang.Object
  |
  +--org.bouncycastle.pqc.legacy.crypto.gmss.util.GMSSRandom

public class GMSSRandom
extends java.lang.Object

This class provides a PRNG for GMSS


Constructor Summary
GMSSRandom(Digest messDigestTree2)
          Constructor
 
Method Summary
 byte[] nextSeed(byte[] outseed)
          computes the next seed value, returns a random byte array and sets outseed to the next value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GMSSRandom

public GMSSRandom(Digest messDigestTree2)
Constructor
Parameters:
messDigestTree2 -  
Method Detail

nextSeed

public byte[] nextSeed(byte[] outseed)
computes the next seed value, returns a random byte array and sets outseed to the next value
Parameters:
outseed - byte array in which ((1 + SEEDin +RAND) mod 2^n) will be stored
Returns:
byte array of H(SEEDin)

Bouncy Castle Cryptography Library 1.79