ISecretWithEncapsulation.cs 723 B

12345678910111213141516171819202122232425
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. namespace Best.HTTP.SecureProtocol.Org.BouncyCastle.Crypto
  5. {
  6. public interface ISecretWithEncapsulation
  7. : IDisposable
  8. {
  9. ///<summary>
  10. /// Return the secret associated with the encapsulation.
  11. /// </summary>
  12. /// <returns> the secret the encapsulation is for.</returns>
  13. byte[] GetSecret();
  14. /// <summary>
  15. /// Return the data that carries the secret in its encapsulated form.
  16. /// </summary>
  17. /// <returns> the encapsulation of the secret.</returns>
  18. byte[] GetEncapsulation();
  19. }
  20. }
  21. #pragma warning restore
  22. #endif