diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2014-03-13 13:04:05 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2014-03-13 13:04:05 +0700 |
commit | 2ebe9502a210e5d642664c33c723cdcf3ce5f88c (patch) | |
tree | ca50a4a9433992c74b80ea6c8f7810de5d8cc1e7 /crypto/src/math/ec/custom/sec/SecP384R1Curve.cs | |
parent | All subclasses to control the choice of width to use (diff) | |
download | BouncyCastle.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/SecP384R1Curve.cs')
-rw-r--r-- | crypto/src/math/ec/custom/sec/SecP384R1Curve.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/src/math/ec/custom/sec/SecP384R1Curve.cs b/crypto/src/math/ec/custom/sec/SecP384R1Curve.cs index 9366232c6..f3dec05c9 100644 --- a/crypto/src/math/ec/custom/sec/SecP384R1Curve.cs +++ b/crypto/src/math/ec/custom/sec/SecP384R1Curve.cs @@ -70,6 +70,11 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec return new SecP384R1Point(this, x, y, withCompression); } + protected internal override ECPoint CreateRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, bool withCompression) + { + return new SecP384R1Point(this, x, y, zs, withCompression); + } + protected override ECPoint DecompressPoint(int yTilde, BigInteger X1) { ECFieldElement x = FromBigInteger(X1); |