From 104b98cc2797c4613151b95dc87218eca7f32c98 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Thu, 13 Mar 2014 22:54:23 +0700 Subject: Port GLV implementation from Java --- crypto/src/math/ec/ScaleYPointMap.cs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 crypto/src/math/ec/ScaleYPointMap.cs (limited to 'crypto/src/math/ec/ScaleYPointMap.cs') diff --git a/crypto/src/math/ec/ScaleYPointMap.cs b/crypto/src/math/ec/ScaleYPointMap.cs new file mode 100644 index 000000000..1c4795b70 --- /dev/null +++ b/crypto/src/math/ec/ScaleYPointMap.cs @@ -0,0 +1,20 @@ +using System; + +namespace Org.BouncyCastle.Math.EC +{ + public class ScaleYPointMap + : ECPointMap + { + protected readonly ECFieldElement scale; + + public ScaleYPointMap(ECFieldElement scale) + { + this.scale = scale; + } + + public virtual ECPoint Map(ECPoint p) + { + return p.ScaleY(scale); + } + } +} -- cgit 1.5.1