Package org.bouncycastle.util.test
Class TestRandomEntropySourceProvider
java.lang.Object
org.bouncycastle.util.test.TestRandomEntropySourceProvider
- All Implemented Interfaces:
EntropySourceProvider
A class for returning "quick entropy" for testing purposes.
-
Constructor Summary
ConstructorsConstructorDescriptionTestRandomEntropySourceProvider
(boolean isPredictionResistant) Create a test entropy source provider. -
Method Summary
Modifier and TypeMethodDescriptionget
(int bitsRequired) Return an entropy source that will create bitsRequired bits of entropy on each invocation of getEntropy().
-
Constructor Details
-
Method Details
-
get
Return an entropy source that will create bitsRequired bits of entropy on each invocation of getEntropy().- Specified by:
get
in interfaceEntropySourceProvider
- Parameters:
bitsRequired
- size (in bits) of entropy to be created by the provided source.- Returns:
- an EntropySource that generates bitsRequired bits of entropy on each call to its getEntropy() method.
-