summary refs log tree commit diff
path: root/crypto/src/math
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2018-09-21 20:14:03 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2018-09-21 20:14:03 +0700
commitc52855a65b0886935c8bd93a5d6079ff74d7abac (patch)
treeb4ec4143ac6b046549096b96c21c3d58e188d820 /crypto/src/math
parentHigher-level API support for Ed25519/Ed448/X25519/X448 (diff)
downloadBouncyCastle.NET-ed25519-c52855a65b0886935c8bd93a5d6079ff74d7abac.tar.xz
Fix ed25519 ignoring the public key offset
- Thanks to https://github.com/TimoRoth
Diffstat (limited to 'crypto/src/math')
-rw-r--r--crypto/src/math/ec/rfc8032/Ed25519.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/math/ec/rfc8032/Ed25519.cs b/crypto/src/math/ec/rfc8032/Ed25519.cs
index 0b0e649d7..2dd9e2f6f 100644
--- a/crypto/src/math/ec/rfc8032/Ed25519.cs
+++ b/crypto/src/math/ec/rfc8032/Ed25519.cs
@@ -330,7 +330,7 @@ namespace Org.BouncyCastle.Math.EC.Rfc8032
 
             Dom2(d, phflag, ctx);
             d.BlockUpdate(R, 0, PointBytes);
-            d.BlockUpdate(pk, 0, PointBytes);
+            d.BlockUpdate(pk, pkOff, PointBytes);
             d.BlockUpdate(m, mOff, mLen);
             d.DoFinal(h, 0);