Package org.bouncycastle.crypto
Interface EntropySource
public interface EntropySource
Base interface describing an entropy source for a DRBG.
-
Method Summary
Modifier and TypeMethodDescriptionint
Return the number of bits of entropy this source can produce.byte[]
Return a byte array of entropy.boolean
Return whether or not this entropy source is regarded as prediction resistant.
-
Method Details
-
isPredictionResistant
boolean isPredictionResistant()Return whether or not this entropy source is regarded as prediction resistant.- Returns:
- true if it is, false otherwise.
-
getEntropy
byte[] getEntropy()Return a byte array of entropy.- Returns:
- entropy bytes.
-
entropySize
int entropySize()Return the number of bits of entropy this source can produce.- Returns:
- size in bits of the return value of getEntropy.
-