| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private Digest | |
| private EntropySource | |
| private long | |
| private int | |
| private int | |
| private byte[] | |
| private static final Map | |
| private static final int | |
| private static final byte[] | |
| private static final long | |
| private static final Map | |
| private static final Map | |
| private static final Hashtable | |
| private static final byte[] |
| 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 | |
| public VariantInternalKatTest | createReseedSelfTest(FipsAlgorithm
the FipsAlgorithm type algorithm)Implements org. |
| public VariantInternalKatTest | createSelfTest(FipsAlgorithm algorithm)
Implements org. |
| private void | |
| protected void | finalize()
Overrides java. |
| 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. |
| public int | Returns: the number of bits produced on each internal round of the DRBG.Implements org. |
| private byte[] | |
| public int | Returns: the security strength (in bits) of the DRBG.Implements org. |
| private byte[] | |
| private byte[] | |
| private byte[] | |
| private void | init(Digest digest, int securityStrength, EntropySource entropySource, byte[] personalizationString, byte[] nonce)
|
| public void | reseed(byte[]
additional input to be added to the DRBG in this step. additionalInput)Implements org. |
| private void |
| _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 | |
| kats | back to summary |
|---|---|
| private static final Map<String, byte[][]> kats | |
| 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 | |
| reseedKats | back to summary |
|---|---|
| private static final Map<String, byte[][]> reseedKats | |
| reseedVs | back to summary |
|---|---|
| private static final Map<String, byte[]> reseedVs | |
| seedlens | back to summary |
|---|---|
| private static final Hashtable<K, V> seedlens | |
| ZERO | back to summary |
|---|---|
| private static final byte[] ZERO | |
| 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) | |
| createReseedSelfTest | back to summary |
|---|---|
| public VariantInternalKatTest createReseedSelfTest(FipsAlgorithm algorithm) Implements org. Doc from org. Return a KAT for the DRBG - used prior to reseed.
| |
| createSelfTest | back to summary |
|---|---|
| public VariantInternalKatTest createSelfTest(FipsAlgorithm algorithm) Implements org. Doc from org. Perform a instantiate/generate/reseed test.
| |
| doHash | back to summary |
|---|---|
| private void doHash(byte[] input, byte[] output) | |
| finalize | back to summary |
|---|---|
| protected void finalize() throws Throwable Overrides java. Doc from java. Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
A subclass overrides the
When running in a Java virtual machine in which finalization has been
disabled or removed, the garbage collector will never call
The general contract of
The
The Java programming language does not guarantee which thread will
invoke the
After the
The
Any exception thrown by the | |
| 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() | |
| getSecurityStrength | back to summary |
|---|---|
| public int getSecurityStrength() Implements org. Return the security strength of the DRBG.
| |
| hash | back to summary |
|---|---|
| private byte[] hash(byte[] input) | |
| hashgen | back to summary |
|---|---|
| private byte[] hashgen(byte[] input, int lengthInBits) | |
| hashSeedMaterial | back to summary |
|---|---|
| private byte[] hashSeedMaterial(byte[] seedMaterial) | |
| init | back to summary |
|---|---|
| private void init(Digest digest, int securityStrength, EntropySource entropySource, byte[] personalizationString, byte[] nonce) | |
| reseed | back to summary |
|---|---|
| public void reseed(byte[] additionalInput) Implements org. Reseed the DRBG.
| |
| reseedFromSeedMaterial | back to summary |
|---|---|
| private void reseedFromSeedMaterial(byte[] seedMaterial) | |