| java.lang.Object org.bouncycastle.crypto.prng.ReversedWindowGenerator
ReversedWindowGenerator | public class ReversedWindowGenerator implements RandomGenerator(Code) | | 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.
|
Method Summary | |
public void | addSeedMaterial(byte[] seed) Add more seed material to the generator. | public void | addSeedMaterial(long seed) Add more seed material to the generator. | public void | nextBytes(byte[] bytes) Fill bytes with random values. | public void | nextBytes(byte[] bytes, int start, int len) Fill part of bytes with random values. |
addSeedMaterial | public void addSeedMaterial(byte[] seed)(Code) | | Add more seed material to the generator.
Parameters: seed - a byte array to be mixed into the generator's state. |
addSeedMaterial | public void addSeedMaterial(long seed)(Code) | | Add more seed material to the generator.
Parameters: seed - a long value to be mixed into the generator's state. |
nextBytes | public void nextBytes(byte[] bytes)(Code) | | Fill bytes with random values.
Parameters: bytes - byte array to be filled. |
nextBytes | public void nextBytes(byte[] bytes, int start, int len)(Code) | | Fill part of bytes with random values.
Parameters: bytes - byte array to be filled. Parameters: start - index to start filling at. Parameters: len - length of segment to fill. |
|
|