Internal access to the digest is synchronized so a single one of these can be shared.
| Modifier and Type | Field and Description |
|---|---|
| private static long | |
| private Digest | |
| private byte[] | |
| private long | |
| private byte[] | |
| private long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addSeedMaterial(byte[]
a byte array to be mixed into the generator's state. inSeed)Implements org. Add more seed material to the generator. |
| public void | addSeedMaterial(long
a long value to be mixed into the generator's state. rSeed)Implements org. Add more seed material to the generator. |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| public void | nextBytes(byte[]
byte array to be filled. bytes)Implements org. Fill bytes with random values. |
| public void | nextBytes(byte[]
byte array to be filled. bytes, int index to start filling at. start, int length of segment to fill. len)Implements org. Fill part of bytes with random values. |
| CYCLE_COUNT | back to summary |
|---|---|
| private static long CYCLE_COUNT | |
| digest | back to summary |
|---|---|
| private Digest digest | |
| seed | back to summary |
|---|---|
| private byte[] seed | |
| seedCounter | back to summary |
|---|---|
| private long seedCounter | |
| state | back to summary |
|---|---|
| private byte[] state | |
| stateCounter | back to summary |
|---|---|
| private long stateCounter | |
| DigestRandomGenerator | back to summary |
|---|---|
| public DigestRandomGenerator(Digest digest) | |
| addSeedMaterial | back to summary |
|---|---|
| public void addSeedMaterial(byte[] inSeed) Implements org. Doc from org. Add more seed material to the generator.
| |
| addSeedMaterial | back to summary |
|---|---|
| public void addSeedMaterial(long rSeed) Implements org. Doc from org. Add more seed material to the generator.
| |
| cycleSeed | back to summary |
|---|---|
| private void cycleSeed() | |
| digestAddCounter | back to summary |
|---|---|
| private void digestAddCounter(long seed) | |
| digestDoFinal | back to summary |
|---|---|
| private void digestDoFinal(byte[] result) | |
| digestUpdate | back to summary |
|---|---|
| private void digestUpdate(byte[] inSeed) | |
| generateState | back to summary |
|---|---|
| private void generateState() | |
| nextBytes | back to summary |
|---|---|
| public void nextBytes(byte[] bytes) Implements org. Doc from org. Fill bytes with random values.
| |
| nextBytes | back to summary |
|---|---|
| public void nextBytes(byte[] bytes, int start, int len) Implements org. Doc from org. Fill part of bytes with random values.
| |