| Modifier and Type | Field and Description |
|---|---|
| private EntropySource | |
| private Mac | |
| private byte[] | |
| private long | |
| private int | |
| private byte[] | |
| private static final Map | |
| private static final int | |
| private static final long | |
| private static final Map | |
| private static final Map |
| Access | Constructor and Description |
|---|---|
| public | HMacSP800DRBG(Mac
Hash MAC to base the DRBG on. hMac, 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 |
|---|---|
| public VariantInternalKatTest | createReseedSelfTest(FipsAlgorithm
the FipsAlgorithm type algorithm)Implements org. |
| public VariantInternalKatTest | createSelfTest(FipsAlgorithm algorithm)
Implements org. |
| 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 round of the DRBG.Implements org. |
| private byte[] | |
| public int | Returns: the security strength (in bits) of the DRBG.Implements org. |
| private void | |
| private void | |
| private void | init(Mac hMac, 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 |
| _entropySource | back to summary |
|---|---|
| private EntropySource _entropySource | |
| _hMac | back to summary |
|---|---|
| private Mac _hMac | |
| _K | back to summary |
|---|---|
| private byte[] _K | |
| _reseedCounter | back to summary |
|---|---|
| private long _reseedCounter | |
| _securityStrength | back to summary |
|---|---|
| private int _securityStrength | |
| _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 | |
| RESEED_MAX | back to summary |
|---|---|
| private static final long RESEED_MAX | |
| reseedKats | back to summary |
|---|---|
| private static final Map<String, byte[][]> reseedKats | |
| reseedValues | back to summary |
|---|---|
| private static final Map<String, byte[][]> reseedValues | |
| HMacSP800DRBG | back to summary |
|---|---|
| public HMacSP800DRBG(Mac hMac, int securityStrength, EntropySource entropySource, byte[] personalizationString, byte[] nonce) Construct a SP800-90A Hash DRBG. Minimum entropy requirement is the security strength requested.
| |
| 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.
| |
| 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.
| |
| hmac_DRBG_Update | back to summary |
|---|---|
| private void hmac_DRBG_Update(byte[] seedMaterial) | |
| hmac_DRBG_Update_Func | back to summary |
|---|---|
| private void hmac_DRBG_Update_Func(byte[] seedMaterial, byte vValue) | |
| init | back to summary |
|---|---|
| private void init(Mac hMac, 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) | |