IEntropySourceProvider.cs 699 B

123456789101112131415161718192021
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto
  5. {
  6. /// <summary>
  7. /// Base interface describing a provider of entropy sources.
  8. /// </summary>
  9. public interface IEntropySourceProvider
  10. {
  11. /// <summary>
  12. /// Return an entropy source providing a block of entropy.
  13. /// </summary>
  14. /// <param name="bitsRequired">The size of the block of entropy required.</param>
  15. /// <returns>An entropy source providing bitsRequired blocks of entropy.</returns>
  16. IEntropySource Get(int bitsRequired);
  17. }
  18. }
  19. #pragma warning restore
  20. #endif