FixedPointPreCompInfo.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Multiplier
  5. {
  6. /**
  7. * Class holding precomputation data for fixed-point multiplications.
  8. */
  9. public class FixedPointPreCompInfo
  10. : PreCompInfo
  11. {
  12. protected ECPoint m_offset = null;
  13. /**
  14. * Lookup table for the precomputed <code>ECPoint</code>s used for a fixed point multiplication.
  15. */
  16. protected ECLookupTable m_lookupTable = null;
  17. /**
  18. * The width used for the precomputation. If a larger width precomputation
  19. * is already available this may be larger than was requested, so calling
  20. * code should refer to the actual width.
  21. */
  22. protected int m_width = -1;
  23. public virtual ECLookupTable LookupTable
  24. {
  25. get { return m_lookupTable; }
  26. set { this.m_lookupTable = value; }
  27. }
  28. public virtual ECPoint Offset
  29. {
  30. get { return m_offset; }
  31. set { this.m_offset = value; }
  32. }
  33. public virtual int Width
  34. {
  35. get { return m_width; }
  36. set { this.m_width = value; }
  37. }
  38. }
  39. }
  40. #pragma warning restore
  41. #endif