ZTauElement.cs 1.0 KB

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