IEncapsulatedSecretExtractor.cs 636 B

1234567891011121314151617181920
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. namespace Best.HTTP.SecureProtocol.Org.BouncyCastle.Crypto
  4. {
  5. public interface IEncapsulatedSecretExtractor
  6. {
  7. /// <summary>
  8. /// Generate an exchange pair based on the recipient public key.
  9. /// </summary>
  10. /// <param name="encapsulation"> the encapsulated secret.</param>
  11. byte[] ExtractSecret(byte[] encapsulation);
  12. /// <summary>
  13. /// The length in bytes of the encapsulation.
  14. /// </summary>
  15. int EncapsulationLength { get; }
  16. }
  17. }
  18. #pragma warning restore
  19. #endif