From c52855a65b0886935c8bd93a5d6079ff74d7abac Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Fri, 21 Sep 2018 20:14:03 +0700 Subject: Fix ed25519 ignoring the public key offset - Thanks to https://github.com/TimoRoth --- crypto/src/math/ec/rfc8032/Ed25519.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/src/math/ec/rfc8032/Ed25519.cs') 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); -- cgit 1.4.1