TlsEncryptor.cs 796 B

123456789101112131415161718192021
  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.Tls.Crypto
  6. {
  7. /// <summary>Base interface for an encryptor.</summary>
  8. public interface TlsEncryptor
  9. {
  10. /// <summary>Encrypt data from the passed in input array.</summary>
  11. /// <param name="input">byte array containing the input data.</param>
  12. /// <param name="inOff">offset into input where the data starts.</param>
  13. /// <param name="length">the length of the data to encrypt.</param>
  14. /// <returns>the encrypted data.</returns>
  15. /// <exception cref="IOException"/>
  16. byte[] Encrypt(byte[] input, int inOff, int length);
  17. }
  18. }
  19. #pragma warning restore
  20. #endif