From 013f625d80b7f6b7e3ed4b87d77ff838754867de Mon Sep 17 00:00:00 2001 From: J08nY Date: Thu, 25 Jul 2024 12:58:31 +0200 Subject: Use -bits argument for basic tests of wolfCrypt. Helps with #30. --- standalone/src/test/java/cz/crcs/ectester/standalone/AppTests.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'standalone/src') diff --git a/standalone/src/test/java/cz/crcs/ectester/standalone/AppTests.java b/standalone/src/test/java/cz/crcs/ectester/standalone/AppTests.java index 1f82bb0..d401e58 100644 --- a/standalone/src/test/java/cz/crcs/ectester/standalone/AppTests.java +++ b/standalone/src/test/java/cz/crcs/ectester/standalone/AppTests.java @@ -94,6 +94,9 @@ public class AppTests { if (libName.equals("Botan") || libName.equals("Crypto++")) { args = buildCLIArgs(libName, "default", "--kpg-type", "ECDH"); } + if (libName.equals("wolfCrypt")) { + args = buildCLIArgs(libName, "default", "-b", "256"); + } ECTesterStandalone.main(args); String sout = out.capturedString(); if (sout.contains("Exception")) { @@ -124,6 +127,9 @@ public class AppTests { if (libName.equals("Botan") || libName.equals("Crypto++")) { args = buildCLIArgs(libName, "performance", "--kpg-type", "ECDH"); } + if (libName.equals("wolfCrypt")) { + args = buildCLIArgs(libName, "performance", "-b", "256"); + } ByteArrayOutputStream baos = new ByteArrayOutputStream(); PrintStream ps = new PrintStream(baos); System.setOut(ps); -- cgit v1.2.3-70-g09d2