IAsymmetricCipherKeyPairGenerator.cs 740 B

12345678910111213141516171819202122232425262728
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. using System;
  3. namespace Org.BouncyCastle.Crypto
  4. {
  5. /**
  6. * interface that a public/private key pair generator should conform to.
  7. */
  8. public interface IAsymmetricCipherKeyPairGenerator
  9. {
  10. /**
  11. * intialise the key pair generator.
  12. *
  13. * @param the parameters the key pair is to be initialised with.
  14. */
  15. void Init(KeyGenerationParameters parameters);
  16. /**
  17. * return an AsymmetricCipherKeyPair containing the Generated keys.
  18. *
  19. * @return an AsymmetricCipherKeyPair containing the Generated keys.
  20. */
  21. AsymmetricCipherKeyPair GenerateKeyPair();
  22. }
  23. }
  24. #endif