EntropySource (Bouncy Castle Library 1.52 API Specification)

org.bouncycastle.crypto.prng

## Interface EntropySource

-     public interface EntropySource

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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

          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.