FixedPointPreCompInfo.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. namespace Org.BouncyCastle.Math.EC.Multiplier
  3. {
  4. /**
  5. * Class holding precomputation data for fixed-point multiplications.
  6. */
  7. public class FixedPointPreCompInfo
  8. : PreCompInfo
  9. {
  10. /**
  11. * Array holding the precomputed <code>ECPoint</code>s used for a fixed
  12. * point multiplication.
  13. */
  14. protected ECPoint[] m_preComp = null;
  15. /**
  16. * The width used for the precomputation. If a larger width precomputation
  17. * is already available this may be larger than was requested, so calling
  18. * code should refer to the actual width.
  19. */
  20. protected int m_width = -1;
  21. public virtual ECPoint[] PreComp
  22. {
  23. get { return m_preComp; }
  24. set { this.m_preComp = value; }
  25. }
  26. public virtual int Width
  27. {
  28. get { return m_width; }
  29. set { this.m_width = value; }
  30. }
  31. }
  32. }
  33. #endif