IKeyUnwrapper.cs 1000 B

12345678910111213141516171819202122232425262728
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto
  5. {
  6. /// <summary>
  7. /// Base interface for a key unwrapper.
  8. /// </summary>
  9. public interface IKeyUnwrapper
  10. {
  11. /// <summary>
  12. /// The parameter set used to configure this key unwrapper.
  13. /// </summary>
  14. object AlgorithmDetails { get; }
  15. /// <summary>
  16. /// Unwrap the passed in data.
  17. /// </summary>
  18. /// <param name="cipherText">The array containing the data to be unwrapped.</param>
  19. /// <param name="offset">The offset into cipherText at which the unwrapped data starts.</param>
  20. /// <param name="length">The length of the data to be unwrapped.</param>
  21. /// <returns>an IBlockResult containing the unwrapped key data.</returns>
  22. IBlockResult Unwrap(byte[] cipherText, int offset, int length);
  23. }
  24. }
  25. #pragma warning restore
  26. #endif