ZTauElement.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Abc
  4. {
  5. /**
  6. * Class representing an element of <code><b>Z</b>[&#964;]</code>. Let
  7. * <code>&#955;</code> be an element of <code><b>Z</b>[&#964;]</code>. Then
  8. * <code>&#955;</code> is given as <code>&#955; = u + v&#964;</code>. The
  9. * components <code>u</code> and <code>v</code> may be used directly, there
  10. * are no accessor methods.
  11. * Immutable class.
  12. */
  13. internal class ZTauElement
  14. {
  15. /**
  16. * The &quot;real&quot; part of <code>&#955;</code>.
  17. */
  18. public readonly BigInteger u;
  19. /**
  20. * The &quot;<code>&#964;</code>-adic&quot; part of <code>&#955;</code>.
  21. */
  22. public readonly BigInteger v;
  23. /**
  24. * Constructor for an element <code>&#955;</code> of
  25. * <code><b>Z</b>[&#964;]</code>.
  26. * @param u The &quot;real&quot; part of <code>&#955;</code>.
  27. * @param v The &quot;<code>&#964;</code>-adic&quot; part of
  28. * <code>&#955;</code>.
  29. */
  30. public ZTauElement(BigInteger u, BigInteger v)
  31. {
  32. this.u = u;
  33. this.v = v;
  34. }
  35. }
  36. }
  37. #pragma warning restore
  38. #endif