|
Bouncy Castle Cryptography 1.45 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bouncycastle.crypto.prng.ReversedWindowGenerator
public class ReversedWindowGenerator
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.
| Constructor Summary | |
|---|---|
ReversedWindowGenerator(RandomGenerator generator,
int windowSize)
|
|
| Method Summary | |
|---|---|
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)
Fill bytes with random values. |
void |
nextBytes(byte[] bytes,
int start,
int len)
Fill part of bytes with random values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReversedWindowGenerator(RandomGenerator generator,
int windowSize)
| Method Detail |
|---|
public void addSeedMaterial(byte[] seed)
addSeedMaterial in interface RandomGeneratorseed - a byte array to be mixed into the generator's state.public void addSeedMaterial(long seed)
addSeedMaterial in interface RandomGeneratorseed - a long value to be mixed into the generator's state.public void nextBytes(byte[] bytes)
nextBytes in interface RandomGeneratorbytes - byte array to be filled.
public void nextBytes(byte[] bytes,
int start,
int len)
nextBytes in interface RandomGeneratorbytes - byte array to be filled.start - index to start filling at.len - length of segment to fill.
|
Bouncy Castle Cryptography 1.45 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||