Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography Library 1.85
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.bouncycastle.crypto.prng
Interface EntropySource

public interface EntropySource

Base interface describing an entropy source for a DRBG.

Method Summary
`int` | `entropySize()` Return the number of bits of entropy this source can produce.
`byte[]` | `getEntropy()` Return a byte array of entropy.
`boolean` | `isPredictionResistant()` Return whether or not this entropy source is regarded as prediction resistant.

Method Detail

### isPredictionResistant

    public boolean isPredictionResistant()

  Return whether or not this entropy source is regarded as prediction resistant.

  Returns:
    true if it is, false otherwise.

### getEntropy

    public byte[] getEntropy()

  Return a byte array of entropy.

  Returns:
    entropy bytes.

### entropySize

    public int entropySize()

  Return the number of bits of entropy this source can produce.

  Returns:
    size in bits of the return value of getEntropy.

Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography Library 1.85
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD