ScaleXPointMap.cs 525 B

123456789101112131415161718192021222324
  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
  5. {
  6. public class ScaleXPointMap
  7. : ECPointMap
  8. {
  9. protected readonly ECFieldElement scale;
  10. public ScaleXPointMap(ECFieldElement scale)
  11. {
  12. this.scale = scale;
  13. }
  14. public virtual ECPoint Map(ECPoint p)
  15. {
  16. return p.ScaleX(scale);
  17. }
  18. }
  19. }
  20. #pragma warning restore
  21. #endif