| Modifier and Type | Field and Description |
|---|---|
| private final DRBG | |
| private final EntropySource | |
| private final boolean | |
| private final SecureRandom |
| Access | Constructor and Description |
|---|---|
| pack-priv | GeneralSecureRandom(SecureRandom randomSource, DRBG drbg, EntropySource entropySource, boolean predictionResistant)
|
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | generateSeed(int
the number of seed bytes to generate. numBytes)Overrides java. |
| public int | Returns: number of bits produced each cycle.Return the block size of the underlying DRBG |
| public void | nextBytes(byte[]
the array to be filled in with random bytes. bytes)Overrides java. Overrides default java. |
| public void | |
| public void | |
| public void | reseed(byte[]
additional input to be used in conjunction with reseed. additionalInput)Force a reseed with additional input. |
| public void | setSeed(byte[]
the seed. seed)Overrides java. |
| public void | setSeed(long
the seed. seed)Overrides java. long seed.
|
| drbg | back to summary |
|---|---|
| private final DRBG drbg | |
| entropySource | back to summary |
|---|---|
| private final EntropySource entropySource | |
| predictionResistant | back to summary |
|---|---|
| private final boolean predictionResistant | |
| randomSource | back to summary |
|---|---|
| private final SecureRandom randomSource | |
| GeneralSecureRandom | back to summary |
|---|---|
| pack-priv GeneralSecureRandom(SecureRandom randomSource, DRBG drbg, EntropySource entropySource, boolean predictionResistant) | |
| generateSeed | back to summary |
|---|---|
| public byte[] generateSeed(int numBytes) Overrides java. Doc from java. Returns the given number of seed bytes, computed using the seed generation algorithm that this class uses to seed itself. This call may be used to seed other random number generators.
| |
| getBlockSize | back to summary |
|---|---|
| public int getBlockSize() Return the block size of the underlying DRBG
| |
| nextBytes | back to summary |
|---|---|
| public void nextBytes(byte[] bytes) Overrides java. Overrides default java. Doc from java. Generates a user-specified number of random bytes.
| |
| nextBytes | back to summary |
|---|---|
| public void nextBytes(byte[] bytes, byte[] additionalInput) | |
| reseed | back to summary |
|---|---|
| public void reseed() Overrides java. Force a reseed. | |
| reseed | back to summary |
|---|---|
| public void reseed(byte[] additionalInput) Force a reseed with additional input.
| |
| setSeed | back to summary |
|---|---|
| public void setSeed(byte[] seed) Overrides java. Doc from java. Reseeds this random object with the given seed. The seed supplements, rather than replaces, the existing seed. Thus, repeated calls are guaranteed never to reduce randomness.
A PRNG
| |
| setSeed | back to summary |
|---|---|
| public void setSeed(long seed) Overrides java. Doc from java. Reseeds this random object, using the eight bytes contained
in the given
A PRNG This method is defined for compatibility with
| |