IKeyWrapper.cs 758 B

1234567891011121314151617181920212223242526
  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 wrapper.
  8. /// </summary>
  9. public interface IKeyWrapper
  10. {
  11. /// <summary>
  12. /// The parameter set used to configure this key wrapper.
  13. /// </summary>
  14. object AlgorithmDetails { get; }
  15. /// <summary>
  16. /// Wrap the passed in key data.
  17. /// </summary>
  18. /// <param name="keyData">The key data to be wrapped.</param>
  19. /// <returns>an IBlockResult containing the wrapped key data.</returns>
  20. IBlockResult Wrap(byte[] keyData);
  21. }
  22. }
  23. #pragma warning restore
  24. #endif