| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final DRBG | |
| private final boolean | |
| private final SecureRandom |
| Access | Constructor and Description |
|---|---|
| pack-priv | FipsSecureRandom(SecureRandom randomSource, DRBG drbg, EntropySource entropySource, boolean predictionResistant)
|
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: number of bits produced each cycle.Return the block size of the underlying DRBG |
| public int | Returns: the security strength (in bits) of the DRBG.Return the security strength of the DRBG. |
| 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(long
the seed. seed)Overrides java. long seed.
|
| drbg | back to summary |
|---|---|
| private final DRBG drbg | |
| predictionResistant | back to summary |
|---|---|
| private final boolean predictionResistant | |
| randomSource | back to summary |
|---|---|
| private final SecureRandom randomSource | |
| FipsSecureRandom | back to summary |
|---|---|
| pack-priv FipsSecureRandom(SecureRandom randomSource, DRBG drbg, EntropySource entropySource, boolean predictionResistant) | |
| getBlockSize | back to summary |
|---|---|
| public int getBlockSize() Return the block size of the underlying DRBG
| |
| getSecurityStrength | back to summary |
|---|---|
| public int getSecurityStrength() Return the security strength of the DRBG.
| |
| 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(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
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| RandomProvider | back to summary |
|---|---|
| pack-priv RandomProvider() | |
| Modifier and Type | Field and Description |
|---|---|
| private final DRBG | |
| private final EntropySource | |
| private final boolean | |
| private final SecureRandom |
| Access | Constructor and Description |
|---|---|
| pack-priv | RandomSpi(SecureRandom randomSource, DRBG drbg, EntropySource entropySource, boolean predictionResistant)
|
| Modifier and Type | Method and Description |
|---|---|
| protected byte[] | engineGenerateSeed(int
the number of seed bytes to generate. numBytes)Implements abstract java. |
| protected void | engineNextBytes(byte[]
the array to be filled in with random bytes. bytes)Implements abstract java. |
| protected void | engineSetSeed(byte[]
the seed. seed)Implements abstract java. |
| 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 | |
| RandomSpi | back to summary |
|---|---|
| pack-priv RandomSpi(SecureRandom randomSource, DRBG drbg, EntropySource entropySource, boolean predictionResistant) | |
| engineGenerateSeed | back to summary |
|---|---|
| protected byte[] engineGenerateSeed(int numBytes) Implements abstract java. Doc from java. Returns the given number of seed bytes. This call may be used to seed other random number generators.
| |
| engineNextBytes | back to summary |
|---|---|
| protected void engineNextBytes(byte[] bytes) Implements abstract java. Doc from java. Generates a user-specified number of random bytes.
Some random number generators can only generate a limited amount
of random bytes per invocation. If the size of
| |
| engineSetSeed | back to summary |
|---|---|
| protected void engineSetSeed(byte[] seed) Implements abstract 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.
| |