summary refs log tree commit diff
path: root/crypto/src/math/ec/custom/sec/SecP256K1Curve.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2014-03-13 13:04:05 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2014-03-13 13:04:05 +0700
commit2ebe9502a210e5d642664c33c723cdcf3ce5f88c (patch)
treeca50a4a9433992c74b80ea6c8f7810de5d8cc1e7 /crypto/src/math/ec/custom/sec/SecP256K1Curve.cs
parentAll subclasses to control the choice of width to use (diff)
downloadBouncyCastle.NET-ed25519-2ebe9502a210e5d642664c33c723cdcf3ce5f88c.tar.xz
Add new CreateRawPoint method on ECCurve that includes the Z coords
Diffstat (limited to 'crypto/src/math/ec/custom/sec/SecP256K1Curve.cs')
-rw-r--r--crypto/src/math/ec/custom/sec/SecP256K1Curve.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/src/math/ec/custom/sec/SecP256K1Curve.cs b/crypto/src/math/ec/custom/sec/SecP256K1Curve.cs
index a938a67d7..89de61706 100644
--- a/crypto/src/math/ec/custom/sec/SecP256K1Curve.cs
+++ b/crypto/src/math/ec/custom/sec/SecP256K1Curve.cs
@@ -68,6 +68,11 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec
             return new SecP256K1Point(this, x, y, withCompression);
         }
 
+        protected internal override ECPoint CreateRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, bool withCompression)
+        {
+            return new SecP256K1Point(this, x, y, zs, withCompression);
+        }
+
         protected override ECPoint DecompressPoint(int yTilde, BigInteger X1)
         {
             ECFieldElement x = FromBigInteger(X1);