diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2018-09-21 20:14:03 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2018-09-21 20:14:03 +0700 |
commit | c52855a65b0886935c8bd93a5d6079ff74d7abac (patch) | |
tree | b4ec4143ac6b046549096b96c21c3d58e188d820 /crypto/src | |
parent | Higher-level API support for Ed25519/Ed448/X25519/X448 (diff) | |
download | BouncyCastle.NET-ed25519-c52855a65b0886935c8bd93a5d6079ff74d7abac.tar.xz |
Fix ed25519 ignoring the public key offset
- Thanks to https://github.com/TimoRoth
Diffstat (limited to 'crypto/src')
-rw-r--r-- | crypto/src/math/ec/rfc8032/Ed25519.cs | 2 |
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); |