Top Description Fields Constructors Methods
org.bouncycastle.pqc.legacy.crypto.gmss.util

public Class GMSSRandom

extends Object
Class Inheritance
Imports
org.bouncycastle.crypto.Digest

This class provides a PRNG for GMSS

Field Summary

Modifier and TypeField and Description
private Digest
messDigestTree

Hash function for the construction of the authentication trees

Constructor Summary

AccessConstructor and Description
public
GMSSRandom(Digest messDigestTree2)

Constructor

Method Summary

Modifier and TypeMethod and Description
private void
addByteArrays(byte[] a, byte[] b)

private void
addOne(byte[] a)

public byte[]

Returns:

byte array of H(SEEDin)
nextSeed
(byte[]
byte array in which ((1 + SEEDin +RAND) mod 2^n) will be stored
outseed
)

computes the next seed value, returns a random byte array and sets outseed to the next value

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

messDigestTreeback to summary
private Digest messDigestTree

Hash function for the construction of the authentication trees

Constructor Detail

GMSSRandomback to summary
public GMSSRandom(Digest messDigestTree2)

Constructor

Method Detail

addByteArraysback to summary
private void addByteArrays(byte[] a, byte[] b)
addOneback to summary
private void addOne(byte[] a)
nextSeedback to summary
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[]

byte array in which ((1 + SEEDin +RAND) mod 2^n) will be stored

Returns:byte[]

byte array of H(SEEDin)