DsaKeyGenerationParameters.cs 630 B

123456789101112131415161718192021222324252627282930
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. using System;
  3. using Org.BouncyCastle.Security;
  4. namespace Org.BouncyCastle.Crypto.Parameters
  5. {
  6. public class DsaKeyGenerationParameters
  7. : KeyGenerationParameters
  8. {
  9. private readonly DsaParameters parameters;
  10. public DsaKeyGenerationParameters(
  11. SecureRandom random,
  12. DsaParameters parameters)
  13. : base(random, parameters.P.BitLength - 1)
  14. {
  15. this.parameters = parameters;
  16. }
  17. public DsaParameters Parameters
  18. {
  19. get { return parameters; }
  20. }
  21. }
  22. }
  23. #endif