|
Bouncy Castle Cryptography Library 1.77.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bouncycastle.crypto.prng.BasicEntropySourceProvider
An EntropySourceProvider where entropy generation is based on a SecureRandom output using SecureRandom.generateSeed().
Constructor Summary | |
BasicEntropySourceProvider(java.security.SecureRandom random,
boolean isPredictionResistant)
Create a entropy source provider based on the passed in SecureRandom. |
Method Summary | |
EntropySource |
get(int bitsRequired)
Return an entropy source that will create bitsRequired bits of entropy on each invocation of getEntropy(). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BasicEntropySourceProvider(java.security.SecureRandom random, boolean isPredictionResistant)
random
- the SecureRandom to base EntropySource construction on.isPredictionResistant
- boolean indicating if the SecureRandom is based on prediction resistant entropy or not (true if it is).Method Detail |
public EntropySource get(int bitsRequired)
get
in interface EntropySourceProvider
bitsRequired
- size (in bits) of entropy to be created by the provided source.
|
Bouncy Castle Cryptography Library 1.77.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |