RecipientInfoGenerator.cs 900 B

123456789101112131415161718192021222324252627282930
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms;
  5. using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters;
  6. using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
  7. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Cms
  8. {
  9. public interface RecipientInfoGenerator
  10. {
  11. /// <summary>
  12. /// Generate a RecipientInfo object for the given key.
  13. /// </summary>
  14. /// <param name="contentEncryptionKey">
  15. /// A <see cref="KeyParameter"/>
  16. /// </param>
  17. /// <param name="random">
  18. /// A <see cref="SecureRandom"/>
  19. /// </param>
  20. /// <returns>
  21. /// A <see cref="RecipientInfo"/>
  22. /// </returns>
  23. /// <exception cref="GeneralSecurityException"></exception>
  24. RecipientInfo Generate(KeyParameter contentEncryptionKey, SecureRandom random);
  25. }
  26. }
  27. #pragma warning restore
  28. #endif