| Modifier and Type | Class and Description |
|---|---|
| public static class | X931PRNG.
Base for Builder for SecureRandom objects based on the X9.31 PRNG. |
| public static class | X931PRNG.
Builder for SecureRandom objects based on the X9.31 PRNG. |
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| public static final X931PRNG. | AES_128
X9.31 PRNG - 128 bit AES |
| public static final X931PRNG. | AES_192
X9.31 PRNG - 192 bit AES |
| public static final X931PRNG. | AES_256
X9.31 PRNG - 256 bit AES |
| public static final X931PRNG. | Triple_DES_168
X9.31 PRNG - 3-Key TripleDES |
| Access | Constructor and Description |
|---|---|
| private |
| AES_128 | back to summary |
|---|---|
| public static final X931PRNG. X9.31 PRNG - 128 bit AES | |
| AES_192 | back to summary |
|---|---|
| public static final X931PRNG. X9.31 PRNG - 192 bit AES | |
| AES_256 | back to summary |
|---|---|
| public static final X931PRNG. X9.31 PRNG - 256 bit AES | |
| Triple_DES_168 | back to summary |
|---|---|
| public static final X931PRNG. X9.31 PRNG - 3-Key TripleDES | |
| X931PRNG | back to summary |
|---|---|
| private X931PRNG() | |
| Modifier and Type | Field and Description |
|---|---|
| private final GeneralAlgorithm |
| Access | Constructor and Description |
|---|---|
| private | Base(GeneralAlgorithm algorithm)
Basic constructor, creates a builder using an EntropySourceProvider based on the default SecureRandom with predictionResistant set to false. |
| Modifier and Type | Method and Description |
|---|---|
| public X931PRNG. | Returns: a new Builder instance.Return a builder using an EntropySourceProvider based on the default SecureRandom with predictionResistant set to false. |
| public X931PRNG. | Returns: a new builder instance.a SecureRandom to use as a source of entropy for the PRNG. entropySource, boolean true if the SecureRandom should be regarded as prediction resistant, false otherwise. predictionResistant)Return a builder with an EntropySourceProvider based on the passed in SecureRandom and the passed in value for prediction resistance. |
| public X931PRNG. | Returns: a new builder instance.a provider of EntropySource objects. entropySourceProvider)Return a builder which makes creates the SecureRandom objects from a specified entropy source provider. |
| public Algorithm | getAlgorithm()
Implements org. |
| algorithm | back to summary |
|---|---|
| private final GeneralAlgorithm algorithm | |
| Base | back to summary |
|---|---|
| private Base(GeneralAlgorithm algorithm) Basic constructor, creates a builder using an EntropySourceProvider based on the default SecureRandom with predictionResistant set to false. Any SecureRandom created from a builder constructed like this will make use of input passed to SecureRandom.setSeed() if the default SecureRandom does for its generateSeed() call. | |
| fromDefaultEntropy | back to summary |
|---|---|
| public X931PRNG. Return a builder using an EntropySourceProvider based on the default SecureRandom with predictionResistant set to false. Any SecureRandom created from a builder constructed like this will make use of input passed to SecureRandom.setSeed() if the default SecureRandom does for its generateSeed() call. | |
| fromEntropySource | back to summary |
|---|---|
| public X931PRNG. Return a builder with an EntropySourceProvider based on the passed in SecureRandom and the passed in value for prediction resistance. Any SecureRandom created from a builder constructed like this will make use of input passed to SecureRandom.setSeed() if the passed in SecureRandom does for its generateSeed() call.
| |
| fromEntropySource | back to summary |
|---|---|
| public X931PRNG. Return a builder which makes creates the SecureRandom objects from a specified entropy source provider. Note If this constructor is used any calls to setSeed() in the resulting SecureRandom will be ignored.
| |
| getAlgorithm | back to summary |
|---|---|
| public Algorithm getAlgorithm() Implements org. Doc from org. Return the algorithm these parameters are associated with.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final GeneralAlgorithm | |
| private byte[] | |
| private final EntropySourceProvider | |
| private final SecureRandom |
| Access | Constructor and Description |
|---|---|
| pack-priv | Builder(GeneralAlgorithm algorithm, SecureRandom random, EntropySourceProvider entropySourceProvider, byte[] dateTimeVector)
|
| Modifier and Type | Method and Description |
|---|---|
| public GeneralSecureRandom | Returns: a SecureRandom.the block cipher key to initialise algorithm implementation with. key, boolean true if engine to be reseeded on each use, false otherwise. predictionResistant)Construct a X9.31 secure random generator using the passed in engine and key. |
| public X931PRNG. | Returns: the current Builder instance.a dateTime vector - needs to be the same size as the block size of the cipher. dateTimeVector)Set the dateTime vector to be used with the generator. |
| algorithm | back to summary |
|---|---|
| private final GeneralAlgorithm algorithm | |
| dateTimeVector | back to summary |
|---|---|
| private byte[] dateTimeVector | |
| entropySourceProvider | back to summary |
|---|---|
| private final EntropySourceProvider entropySourceProvider | |
| random | back to summary |
|---|---|
| private final SecureRandom random | |
| Builder | back to summary |
|---|---|
| pack-priv Builder(GeneralAlgorithm algorithm, SecureRandom random, EntropySourceProvider entropySourceProvider, byte[] dateTimeVector) | |
| build | back to summary |
|---|---|
| public GeneralSecureRandom build(SymmetricKey key, boolean predictionResistant) Construct a X9.31 secure random generator using the passed in engine and key. If predictionResistant is true the generator will be reseeded on each request.
| |
| setDateTimeVector | back to summary |
|---|---|
| public X931PRNG. Set the dateTime vector to be used with the generator. If this method is not called a vector is calculated based on System.currentTimeMillis(). | |
| Modifier and Type | Field and Description |
|---|---|
| public static final X931PRNG. | |
| public static final X931PRNG. | |
| public static final X931PRNG. | |
| public static final X931PRNG. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static X931PRNG. | |
| public static X931PRNG. |
| AES_128 | back to summary |
|---|---|
| public static final X931PRNG. | |
| AES_192 | back to summary |
|---|---|
| public static final X931PRNG. | |
| AES_256 | back to summary |
|---|---|
| public static final X931PRNG. | |
| Triple_DES_168 | back to summary |
|---|---|
| public static final X931PRNG. | |
| Variations | back to summary |
|---|---|
| private Variations() | |
| valueOf | back to summary |
|---|---|
| public static X931PRNG. | |
| values | back to summary |
|---|---|
| public static X931PRNG. | |