|
Bouncy Castle Cryptography 1.50 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bouncycastle.crypto.prng.BasicEntropySourceProvider
public class 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 EntropySourceProviderbitsRequired - size (in bits) of entropy to be created by the provided source.
|
Bouncy Castle Cryptography 1.50 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||