| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final long | |
| private static final int | |
| private static final long | |
| private final byte[] | |
| private BlockCipher | |
| private EntropySource | |
| private final byte[] | |
| private static final Map | |
| private final byte[] | |
| private long | |
| private byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | Returns: number of bits generated, -1 if a reseed required.output array for generated bits. output, boolean true if a reseed should be forced, false otherwise. predictionResistant)Populate a passed in array with random data. |
| public int | Returns: the number of bits produced on each internal round of the DRBG.Return the block size (in bits) of the DRBG. |
| private byte[] | |
| private void | |
| private static boolean | |
| private void | |
| pack-priv void |
| BLOCK128_MAX_BITS_REQUEST | back to summary |
|---|---|
| private static final int BLOCK128_MAX_BITS_REQUEST | |
| BLOCK128_RESEED_MAX | back to summary |
|---|---|
| private static final long BLOCK128_RESEED_MAX | |
| BLOCK64_MAX_BITS_REQUEST | back to summary |
|---|---|
| private static final int BLOCK64_MAX_BITS_REQUEST | |
| BLOCK64_RESEED_MAX | back to summary |
|---|---|
| private static final long BLOCK64_RESEED_MAX | |
| DT | back to summary |
|---|---|
| private final byte[] DT | |
| engine | back to summary |
|---|---|
| private BlockCipher engine | |
| entropySource | back to summary |
|---|---|
| private EntropySource entropySource | |
| I | back to summary |
|---|---|
| private final byte[] I | |
| kats | back to summary |
|---|---|
| private static final Map<String, byte[][]> kats | |
| R | back to summary |
|---|---|
| private final byte[] R | |
| reseedCounter | back to summary |
|---|---|
| private long reseedCounter | |
| V | back to summary |
|---|---|
| private byte[] V | |
| X931RNG | back to summary |
|---|---|
| public X931RNG(BlockCipher engine, byte[] dateTimeVector, EntropySource entropySource) | |
| generate | back to summary |
|---|---|
| pack-priv int generate(byte[] output, boolean predictionResistant) Populate a passed in array with random data.
| |
| getBlockSize | back to summary |
|---|---|
| public int getBlockSize() Return the block size (in bits) of the DRBG.
| |
| getEntropy | back to summary |
|---|---|
| private byte[] getEntropy() | |
| increment | back to summary |
|---|---|
| private void increment(byte[] val) | |
| isTooLarge | back to summary |
|---|---|
| private static boolean isTooLarge(byte[] bytes, int maxBytes) | |
| process | back to summary |
|---|---|
| private void process(byte[] res, byte[] a, byte[] b) | |
| reseed | back to summary |
|---|---|
| pack-priv void reseed() Reseed the RNG. | |