IDigestFactory.cs 1.1 KB

1234567891011121314151617181920212223242526272829
  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 for operator factories that create stream-based digest calculators.
  8. /// </summary>
  9. public interface IDigestFactory
  10. {
  11. /// <summary>The algorithm details object for calculators made by this factory.</summary>
  12. object AlgorithmDetails { get ; }
  13. /// <summary>Return the size of the digest associated with this factory.</summary>
  14. /// <returns>The length of the digest produced by this calculators from this factory in bytes.</returns>
  15. int DigestLength { get; }
  16. /// <summary>
  17. /// Create a stream calculator for the digest associated with this factory. The stream
  18. /// calculator is used for the actual operation of entering the data to be digested
  19. /// and producing the digest block.
  20. /// </summary>
  21. /// <returns>A calculator producing an IBlockResult with the final digest in it.</returns>
  22. IStreamCalculator CreateCalculator();
  23. }
  24. }
  25. #pragma warning restore
  26. #endif