IWrapper.cs 513 B

123456789101112131415161718
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. namespace Best.HTTP.SecureProtocol.Org.BouncyCastle.Crypto
  4. {
  5. public interface IWrapper
  6. {
  7. /// <summary>The name of the algorithm this cipher implements.</summary>
  8. string AlgorithmName { get; }
  9. void Init(bool forWrapping, ICipherParameters parameters);
  10. byte[] Wrap(byte[] input, int inOff, int length);
  11. byte[] Unwrap(byte[] input, int inOff, int length);
  12. }
  13. }
  14. #pragma warning restore
  15. #endif