summary refs log tree commit diff
path: root/crypto/test
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-12-23 12:08:08 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-12-23 12:08:08 +0700
commitc65cc1b2d63eb623eafb702e4da4240d228380a8 (patch)
tree598b39474684bdbf085d2d1508c154de2a1ce340 /crypto/test
parentSpan-based alternatives to char[] (diff)
downloadBouncyCastle.NET-ed25519-c65cc1b2d63eb623eafb702e4da4240d228380a8.tar.xz
JPAKE: Improved calculation of s
Diffstat (limited to 'crypto/test')
-rw-r--r--crypto/test/src/crypto/agreement/test/JPakeUtilitiesTest.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/test/src/crypto/agreement/test/JPakeUtilitiesTest.cs b/crypto/test/src/crypto/agreement/test/JPakeUtilitiesTest.cs
index b3fabcfbb..b6011526d 100644
--- a/crypto/test/src/crypto/agreement/test/JPakeUtilitiesTest.cs
+++ b/crypto/test/src/crypto/agreement/test/JPakeUtilitiesTest.cs
@@ -124,7 +124,7 @@ namespace Org.BouncyCastle.Crypto.Agreement.Tests
 
             BigInteger gB = JPakeUtilities.CalculateGA(pg1.P, gx3, gx1, gx2);
 
-            BigInteger s = JPakeUtilities.CalculateS("password".ToCharArray());
+            BigInteger s = JPakeUtilities.CalculateS(pg1.Q, "password".ToCharArray());
 
             BigInteger xs = JPakeUtilities.CalculateX2s(pg1.Q, x4, s);