| Modifier and Type | Field and Description |
|---|---|
| private SP80090DRBG | |
| private final DRBGProvider | |
| private final EntropySource | |
| private final boolean | |
| private final SecureRandom |
| Access | Constructor and Description |
|---|---|
| pack-priv | SP800SecureRandom(SecureRandom randomSource, EntropySource entropySource, DRBGProvider drbgProvider, boolean predictionResistant)
|
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | generateSeed(int
the number of seed bytes to generate. numBytes)Overrides java. |
| public String | getAlgorithm()
Overrides java. SecureRandom object.
|
| public void | nextBytes(byte[]
the array to be filled in with random bytes. bytes)Overrides java. Overrides default java. |
| public void | |
| 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 SP80090DRBG drbg | |
| drbgProvider | back to summary |
|---|---|
| private final DRBGProvider drbgProvider | |
| entropySource | back to summary |
|---|---|
| private final EntropySource entropySource | |
| predictionResistant | back to summary |
|---|---|
| private final boolean predictionResistant | |
| randomSource | back to summary |
|---|---|
| private final SecureRandom randomSource | |
| SP800SecureRandom | back to summary |
|---|---|
| pack-priv SP800SecureRandom(SecureRandom randomSource, EntropySource entropySource, DRBGProvider drbgProvider, 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.
| |
| getAlgorithm | back to summary |
|---|---|
| public String getAlgorithm() Overrides java. Doc from java. Returns the name of the algorithm implemented by this
| |
| 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.
| |
| reseed | back to summary |
|---|---|
| public void reseed(byte[] additionalInput) Force a reseed of the DRBG
| |
| 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
| |