TlsCipher.cs 550 B

1234567891011121314151617181920
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. using System;
  3. using System.IO;
  4. namespace Org.BouncyCastle.Crypto.Tls
  5. {
  6. public interface TlsCipher
  7. {
  8. int GetPlaintextLimit(int ciphertextLimit);
  9. /// <exception cref="IOException"></exception>
  10. byte[] EncodePlaintext(long seqNo, byte type, byte[] plaintext, int offset, int len);
  11. /// <exception cref="IOException"></exception>
  12. byte[] DecodeCiphertext(long seqNo, byte type, byte[] ciphertext, int offset, int len);
  13. }
  14. }
  15. #endif