Skip to content

Commit c52855a

Browse files
committed
Fix ed25519 ignoring the public key offset
- Thanks to https://github.com/TimoRoth
1 parent fbae27f commit c52855a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crypto/src/math/ec/rfc8032/Ed25519.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ private static void ImplSign(IDigest d, byte[] h, byte[] s, byte[] pk, int pkOff
330330

331331
Dom2(d, phflag, ctx);
332332
d.BlockUpdate(R, 0, PointBytes);
333-
d.BlockUpdate(pk, 0, PointBytes);
333+
d.BlockUpdate(pk, pkOff, PointBytes);
334334
d.BlockUpdate(m, mOff, mLen);
335335
d.DoFinal(h, 0);
336336

0 commit comments

Comments
 (0)