| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private Digest | |
| private EntropySource | |
| private long | |
| private int | |
| private int | |
| private byte[] | |
| private static final int | |
| private static final byte[] | |
| private static final long | |
| private static final Hashtable |
| Access | Constructor and Description |
|---|---|
| public | HashSP800DRBG(Digest
source digest to use for DRB stream. digest, int security strength required (in bits) securityStrength, EntropySource source of entropy to use for seeding/reseeding. entropySource, byte[] personalization string to distinguish this DRBG (may be null). personalizationString, byte[] nonce to further distinguish this DRBG (may be null). nonce)Construct a SP800-90A Hash DRBG. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| public int | Returns: number of bits generated, -1 if a reseed required.output array for generated bits. output, byte[] additional input to be added to the DRBG in this step. additionalInput, boolean true if a reseed should be forced, false otherwise. predictionResistant)Implements org. Populate a passed in array with random data. |
| public int | Returns: the number of bits produced on each internal round of the DRBG.Implements org. Return the block size (in bits) of the DRBG. |
| private byte[] | |
| private byte[] | |
| private byte[] | |
| public void | reseed(byte[]
additional input to be added to the DRBG in this step. additionalInput)Implements org. Reseed the DRBG. |
| _C | back to summary |
|---|---|
| private byte[] _C | |
| _digest | back to summary |
|---|---|
| private Digest _digest | |
| _entropySource | back to summary |
|---|---|
| private EntropySource _entropySource | |
| _reseedCounter | back to summary |
|---|---|
| private long _reseedCounter | |
| _securityStrength | back to summary |
|---|---|
| private int _securityStrength | |
| _seedLength | back to summary |
|---|---|
| private int _seedLength | |
| _V | back to summary |
|---|---|
| private byte[] _V | |
| MAX_BITS_REQUEST | back to summary |
|---|---|
| private static final int MAX_BITS_REQUEST | |
| ONE | back to summary |
|---|---|
| private static final byte[] ONE | |
| RESEED_MAX | back to summary |
|---|---|
| private static final long RESEED_MAX | |
| seedlens | back to summary |
|---|---|
| private static final Hashtable<K, V> seedlens | |
| HashSP800DRBG | back to summary |
|---|---|
| public HashSP800DRBG(Digest digest, int securityStrength, EntropySource entropySource, byte[] personalizationString, byte[] nonce) Construct a SP800-90A Hash DRBG. Minimum entropy requirement is the security strength requested.
| |
| addTo | back to summary |
|---|---|
| private void addTo(byte[] longer, byte[] shorter) | |
| doHash | back to summary |
|---|---|
| private void doHash(byte[] input, byte[] output) | |
| generate | back to summary |
|---|---|
| public int generate(byte[] output, byte[] additionalInput, boolean predictionResistant) Implements org. Populate a passed in array with random data.
| |
| getBlockSize | back to summary |
|---|---|
| public int getBlockSize() Implements org. Return the block size (in bits) of the DRBG.
| |
| getEntropy | back to summary |
|---|---|
| private byte[] getEntropy() | |
| hash | back to summary |
|---|---|
| private byte[] hash(byte[] input) | |
| hashgen | back to summary |
|---|---|
| private byte[] hashgen(byte[] input, int lengthInBits) | |
| reseed | back to summary |
|---|---|
| public void reseed(byte[] additionalInput) Implements org. Reseed the DRBG.
| |