| Modifier and Type | Field and Description |
|---|---|
| private ECCurve. | |
| private Digest | |
| private EntropySource | |
| private ECMultiplier | |
| private int | |
| private ECPoint | |
| private ECPoint | |
| private long | |
| private byte[] | |
| private int | |
| private int | |
| private int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final DualECPoints[] | |
| private static final BigInteger | |
| private static final BigInteger | |
| private static final BigInteger | |
| private static final BigInteger | |
| private static final BigInteger | |
| private static final BigInteger | |
| private static final BigInteger | |
| private static final BigInteger | |
| private static final BigInteger | |
| private static final BigInteger | |
| private static final BigInteger | |
| private static final BigInteger | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | DualECSP800DRBG(Digest
source digest to use with the 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 Dual EC DRBG. |
| public | DualECSP800DRBG(DualECPoints[]
an array of points to choose from, in order of increasing security strength pointSet, Digest source digest to use with the 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 Dual EC DRBG. |
| Modifier and Type | Method and Description |
|---|---|
| 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 BigInteger | |
| private byte[] | |
| public void | reseed(byte[]
additional input to be added to the DRBG in this step. additionalInput)Implements org. Reseed the DRBG. |
| private byte[] |
| _curve | back to summary |
|---|---|
| private ECCurve. | |
| _digest | back to summary |
|---|---|
| private Digest _digest | |
| _entropySource | back to summary |
|---|---|
| private EntropySource _entropySource | |
| _fixedPointMultiplier | back to summary |
|---|---|
| private ECMultiplier _fixedPointMultiplier | |
| _outlen | back to summary |
|---|---|
| private int _outlen | |
| _P | back to summary |
|---|---|
| private ECPoint _P | |
| _Q | back to summary |
|---|---|
| private ECPoint _Q | |
| _reseedCounter | back to summary |
|---|---|
| private long _reseedCounter | |
| _s | back to summary |
|---|---|
| private byte[] _s | |
| _securityStrength | back to summary |
|---|---|
| private int _securityStrength | |
| _seedlen | back to summary |
|---|---|
| private int _seedlen | |
| _sLength | back to summary |
|---|---|
| private int _sLength | |
| MAX_ADDITIONAL_INPUT | back to summary |
|---|---|
| private static final int MAX_ADDITIONAL_INPUT | |
| MAX_ENTROPY_LENGTH | back to summary |
|---|---|
| private static final int MAX_ENTROPY_LENGTH | |
| MAX_PERSONALIZATION_STRING | back to summary |
|---|---|
| private static final int MAX_PERSONALIZATION_STRING | |
| nistPoints | back to summary |
|---|---|
| private static final DualECPoints[] nistPoints | |
| p256_Px | back to summary |
|---|---|
| private static final BigInteger p256_Px | |
| p256_Py | back to summary |
|---|---|
| private static final BigInteger p256_Py | |
| p256_Qx | back to summary |
|---|---|
| private static final BigInteger p256_Qx | |
| p256_Qy | back to summary |
|---|---|
| private static final BigInteger p256_Qy | |
| p384_Px | back to summary |
|---|---|
| private static final BigInteger p384_Px | |
| p384_Py | back to summary |
|---|---|
| private static final BigInteger p384_Py | |
| p384_Qx | back to summary |
|---|---|
| private static final BigInteger p384_Qx | |
| p384_Qy | back to summary |
|---|---|
| private static final BigInteger p384_Qy | |
| p521_Px | back to summary |
|---|---|
| private static final BigInteger p521_Px | |
| p521_Py | back to summary |
|---|---|
| private static final BigInteger p521_Py | |
| p521_Qx | back to summary |
|---|---|
| private static final BigInteger p521_Qx | |
| p521_Qy | back to summary |
|---|---|
| private static final BigInteger p521_Qy | |
| RESEED_MAX | back to summary |
|---|---|
| private static final long RESEED_MAX | |
| DualECSP800DRBG | back to summary |
|---|---|
| public DualECSP800DRBG(Digest digest, int securityStrength, EntropySource entropySource, byte[] personalizationString, byte[] nonce) Construct a SP800-90A Dual EC DRBG. Minimum entropy requirement is the security strength requested.
| |
| DualECSP800DRBG | back to summary |
|---|---|
| public DualECSP800DRBG(DualECPoints[] pointSet, Digest digest, int securityStrength, EntropySource entropySource, byte[] personalizationString, byte[] nonce) Construct a SP800-90A Dual EC DRBG. Minimum entropy requirement is the security strength requested.
| |
| 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() | |
| getScalarMultipleXCoord | back to summary |
|---|---|
| private BigInteger getScalarMultipleXCoord(ECPoint p, BigInteger s) | |
| pad8 | back to summary |
|---|---|
| private byte[] pad8(byte[] s, int seedlen) | |
| reseed | back to summary |
|---|---|
| public void reseed(byte[] additionalInput) Implements org. Reseed the DRBG.
| |
| xor | back to summary |
|---|---|
| private byte[] xor(byte[] a, byte[] b) | |