IStreamCalculator.cs 959 B

123456789101112131415161718192021222324252627
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. using System.IO;
  5. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto
  6. {
  7. /// <summary>
  8. /// Base interface for cryptographic operations such as Hashes, MACs, and Signatures which reduce a stream of data
  9. /// to a single value.
  10. /// </summary>
  11. public interface IStreamCalculator
  12. {
  13. /// <summary>Return a "sink" stream which only exists to update the implementing object.</summary>
  14. /// <returns>A stream to write to in order to update the implementing object.</returns>
  15. Stream Stream { get; }
  16. /// <summary>
  17. /// Return the result of processing the stream. This value is only available once the stream
  18. /// has been closed.
  19. /// </summary>
  20. /// <returns>The result of processing the stream.</returns>
  21. Object GetResult();
  22. }
  23. }
  24. #pragma warning restore
  25. #endif