IWrapper.cs 585 B

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