TlsHandshakeHash.cs 508 B

1234567891011121314151617181920212223242526
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. using System;
  3. namespace Org.BouncyCastle.Crypto.Tls
  4. {
  5. public interface TlsHandshakeHash
  6. : IDigest
  7. {
  8. void Init(TlsContext context);
  9. TlsHandshakeHash NotifyPrfDetermined();
  10. void TrackHashAlgorithm(byte hashAlgorithm);
  11. void SealHashAlgorithms();
  12. TlsHandshakeHash StopTracking();
  13. IDigest ForkPrfHash();
  14. byte[] GetFinalHash(byte hashAlgorithm);
  15. }
  16. }
  17. #endif