TlsSrpLoginParameters.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters;
  5. using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
  6. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls
  7. {
  8. public class TlsSrpLoginParameters
  9. {
  10. protected readonly Srp6GroupParameters mGroup;
  11. protected readonly BigInteger mVerifier;
  12. protected readonly byte[] mSalt;
  13. public TlsSrpLoginParameters(Srp6GroupParameters group, BigInteger verifier, byte[] salt)
  14. {
  15. this.mGroup = group;
  16. this.mVerifier = verifier;
  17. this.mSalt = salt;
  18. }
  19. public virtual Srp6GroupParameters Group
  20. {
  21. get { return mGroup; }
  22. }
  23. public virtual byte[] Salt
  24. {
  25. get { return mSalt; }
  26. }
  27. public virtual BigInteger Verifier
  28. {
  29. get { return mVerifier; }
  30. }
  31. }
  32. }
  33. #pragma warning restore
  34. #endif