Srp6Group.cs 853 B

1234567891011121314151617181920212223242526272829303132333435
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
  5. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Tls.Crypto
  6. {
  7. /// <summary>Carrier class for SRP-6 group parameters.</summary>
  8. public class Srp6Group
  9. {
  10. private readonly BigInteger n, g;
  11. /// <summary>Base constructor.</summary>
  12. /// <param name="n">the n value.</param>
  13. /// <param name="g">the g value.</param>
  14. public Srp6Group(BigInteger n, BigInteger g)
  15. {
  16. this.n = n;
  17. this.g = g;
  18. }
  19. public virtual BigInteger G
  20. {
  21. get { return g; }
  22. }
  23. public virtual BigInteger N
  24. {
  25. get { return n; }
  26. }
  27. }
  28. }
  29. #pragma warning restore
  30. #endif