IAsymmetricCipherKeyPairGenerator.cs 810 B

12345678910111213141516171819202122232425262728
  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. /**
  7. * interface that a public/private key pair generator should conform to.
  8. */
  9. public interface IAsymmetricCipherKeyPairGenerator
  10. {
  11. /**
  12. * intialise the key pair generator.
  13. *
  14. * @param the parameters the key pair is to be initialised with.
  15. */
  16. void Init(KeyGenerationParameters parameters);
  17. /**
  18. * return an AsymmetricCipherKeyPair containing the Generated keys.
  19. *
  20. * @return an AsymmetricCipherKeyPair containing the Generated keys.
  21. */
  22. AsymmetricCipherKeyPair GenerateKeyPair();
  23. }
  24. }
  25. #pragma warning restore
  26. #endif