Using bit length instead of hash length

This commit is contained in:
Thorsten Sommer committed 2020-01-03 21:37:05 +01:00
1 parent cab0171b1a
commit 69acb7ae71
1 file changed
+1 -1
+1 -1
View File
@@ -30,7 +30,7 @@ namespace Ed25519
BigInteger r;
using (var rSub = new MemoryStream((Constants.BIT_LENGTH / 8) + message.Length))
{
rSub.Write(privateKeyHash[(privateKeyHash.Length/2)..]);
rSub.Write(privateKeyHash[(Constants.BIT_LENGTH / 8)..]);
rSub.Write(message);
rSub.Flush();