IEncapsulatedSecretGenerator.cs 606 B

12345678910111213141516
  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 IEncapsulatedSecretGenerator
  6. {
  7. /// <summary>
  8. /// Generate an exchange pair based on the recipient public key.
  9. /// </summary>
  10. /// <param name="recipientKey"></param>
  11. /// <returns> An SecretWithEncapsulation derived from the recipient public key.</returns>
  12. ISecretWithEncapsulation GenerateEncapsulated(AsymmetricKeyParameter recipientKey);
  13. }
  14. }
  15. #pragma warning restore
  16. #endif