IWrapper.cs 491 B

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