aboutsummaryrefslogtreecommitdiff
path: root/standalone/src/test/java/cz/crcs/ectester/standalone/AppTests.java
diff options
context:
space:
mode:
Diffstat (limited to 'standalone/src/test/java/cz/crcs/ectester/standalone/AppTests.java')
-rw-r--r--standalone/src/test/java/cz/crcs/ectester/standalone/AppTests.java19
1 files changed, 19 insertions, 0 deletions
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 7105906..6e3dfed 100644
--- a/standalone/src/test/java/cz/crcs/ectester/standalone/AppTests.java
+++ b/standalone/src/test/java/cz/crcs/ectester/standalone/AppTests.java
@@ -72,6 +72,25 @@ public class AppTests {
}
}
+ @SuppressWarnings("JUnitMalformedDeclaration")
+ @ParameterizedTest
+ @ValueSource(strings = {"Bouncy", "Sun", "libtomcrypt", "Botan", "Crypto++", "OpenSSL 3", "BoringSSL", "libgcrypt", "mbed TLS", "2021" /* IPPCP */, "Nettle", "LibreSSL", "wolfCrypt"})
+ @StdIo()
+ public void testVectorSuite(String libName, StdOut out) {
+ // TODO: Fix libgcrypt and IPPCP in handling binary field curves (reject them).
+ assumeFalse(libName.equals("libgcrypt") || libName.equals("2021"));
+
+ String[] args = new String[]{"test", "test-vectors", libName};
+ if (libName.equals("Botan") || libName.equals("Crypto++")) {
+ args = new String[]{"test", "--kpg-type", "ECDH", "test-vectors", libName};
+ }
+ ECTesterStandalone.main(args);
+ String sout = out.capturedString();
+ if (sout.contains("Exception")) {
+ System.err.printf("%s: Test vector suite has exceptions.%n", libName);
+ }
+ }
+
@ParameterizedTest
@ValueSource(strings = {"Bouncy", "Sun", "libtomcrypt", "Botan", "Crypto++", "OpenSSL 3", "BoringSSL", "libgcrypt", "mbed TLS", "2021" /* IPPCP */, "Nettle", "LibreSSL", "wolfCrypt"})
public void performanceSuite(String libName) {