TlsCipher.cs 620 B

1234567891011121314151617181920
  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.Tls
  6. {
  7. public interface TlsCipher
  8. {
  9. int GetPlaintextLimit(int ciphertextLimit);
  10. /// <exception cref="IOException"></exception>
  11. byte[] EncodePlaintext(long seqNo, byte type, byte[] plaintext, int offset, int len);
  12. /// <exception cref="IOException"></exception>
  13. byte[] DecodeCiphertext(long seqNo, byte type, byte[] ciphertext, int offset, int len);
  14. }
  15. }
  16. #pragma warning restore
  17. #endif