summary refs log tree commit diff
path: root/crypto/test
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-11-24 18:49:33 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-11-24 18:49:33 +0700
commit065a220aa138e996d711ff382d2435625dab408e (patch)
tree65d76d1a61ab343060d896536bab439712a2f28e /crypto/test
parentNUnit3TestAdapter 4.3.1 (diff)
downloadBouncyCastle.NET-ed25519-065a220aa138e996d711ff382d2435625dab408e.tar.xz
Ed25519: cofactored verification
- Perf. opts.: Pornin's basis reduction
- factor out Scalar25519 class
Diffstat (limited to 'crypto/test')
-rw-r--r--crypto/test/src/math/ec/rfc8032/test/Ed25519Test.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/test/src/math/ec/rfc8032/test/Ed25519Test.cs b/crypto/test/src/math/ec/rfc8032/test/Ed25519Test.cs
index d042aff9f..90fc24a4c 100644
--- a/crypto/test/src/math/ec/rfc8032/test/Ed25519Test.cs
+++ b/crypto/test/src/math/ec/rfc8032/test/Ed25519Test.cs
@@ -542,8 +542,7 @@ namespace Org.BouncyCastle.Math.EC.Rfc8032.Tests
         [Test]
         public void TamingVector_04()
         {
-            // TODO Algorithm 2 accepts this (cofactored verification)
-            ImplTamingVector(4, false,
+            ImplTamingVector(4, true,
                 "e47d62c63f830dc7a6851a0b1f33ae4bb2f507fb6cffec4011eaccd55b53f56c",
                 "cdb267ce40c5cd45306fa5d2f29731459387dbf9eb933b7bd5aed9a765b88d4d",
                 "160a1cb0dc9c0258cd0a7d23e94d8fa878bcb1925f2c64246b2dee1796bed512" +
@@ -553,8 +552,7 @@ namespace Org.BouncyCastle.Math.EC.Rfc8032.Tests
         [Test]
         public void TamingVector_05()
         {
-            // TODO Algorithm 2 accepts this (cofactored verification)
-            ImplTamingVector(5, false,
+            ImplTamingVector(5, true,
                 "e47d62c63f830dc7a6851a0b1f33ae4bb2f507fb6cffec4011eaccd55b53f56c",
                 "cdb267ce40c5cd45306fa5d2f29731459387dbf9eb933b7bd5aed9a765b88d4d",
                 "21122a84e0b5fca4052f5b1235c80a537878b38f3142356b2c2384ebad4668b7" +