public class

ReversedWindowGenerator

extends Object
implements RandomGenerator
java.lang.Object
   ↳ org.bouncycastle.crypto.prng.ReversedWindowGenerator

Class Overview

Takes bytes generated by an underling RandomGenerator and reverses the order in each small window (of configurable size).

Access to internals is synchronized so a single one of these can be shared.

Summary

Public Constructors
ReversedWindowGenerator(RandomGenerator generator, int windowSize)
Public Methods
void addSeedMaterial(byte[] seed)
Add more seed material to the generator.
void addSeedMaterial(long seed)
Add more seed material to the generator.
void nextBytes(byte[] bytes, int start, int len)
Fill part of bytes with random values.
void nextBytes(byte[] bytes)
Fill bytes with random values.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.bouncycastle.crypto.prng.RandomGenerator

Public Constructors

public ReversedWindowGenerator (RandomGenerator generator, int windowSize)

Public Methods

public void addSeedMaterial (byte[] seed)

Add more seed material to the generator.

Parameters
seed a byte array to be mixed into the generator's state.

public void addSeedMaterial (long seed)

Add more seed material to the generator.

Parameters
seed a long value to be mixed into the generator's state.

public void nextBytes (byte[] bytes, int start, int len)

Fill part of bytes with random values.

Parameters
bytes byte array to be filled.
start index to start filling at.
len length of segment to fill.

public void nextBytes (byte[] bytes)

Fill bytes with random values.

Parameters
bytes byte array to be filled.