TlsHandshakeHash.cs 816 B

123456789101112131415161718192021222324252627282930313233
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. using System.IO;
  5. using BestHTTP.SecureProtocol.Org.BouncyCastle.Tls.Crypto;
  6. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Tls
  7. {
  8. /// <summary>Base interface for an object that can calculate a handshake hash.</summary>
  9. public interface TlsHandshakeHash
  10. : TlsHash
  11. {
  12. /// <exception cref="IOException"/>
  13. void CopyBufferTo(Stream output);
  14. void ForceBuffering();
  15. void NotifyPrfDetermined();
  16. void TrackHashAlgorithm(int cryptoHashAlgorithm);
  17. void SealHashAlgorithms();
  18. TlsHandshakeHash StopTracking();
  19. TlsHash ForkPrfHash();
  20. byte[] GetFinalHash(int cryptoHashAlgorithm);
  21. }
  22. }
  23. #pragma warning restore
  24. #endif