Skip to content

Commit

Permalink
Fix wolfCrypt tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
J08nY committed Mar 27, 2024
1 parent 6ad20ef commit 1b26fc1
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public void generate(String libName, StdOut out) {
break;
case "Nettle":
case "libgcrypt":
case "wolfCrypt":
args = new String[]{"generate", "-n", "10", "-cn", "secp256r1", libName};
break;
case "BoringSSL":
Expand All @@ -123,6 +124,7 @@ public void ecdh(String libName, StdOut out) {
switch (libName) {
case "Nettle":
case "libgcrypt":
case "wolfCrypt":
args = new String[]{"ecdh", "-n", "10", "-cn", "secp256r1", libName};
break;
case "BoringSSL":
Expand Down Expand Up @@ -152,6 +154,9 @@ public void ecdsa(String libName, StdOut out) {
case "2021":
args = new String[]{"ecdsa", "-n", "10", "-nc", "secg/secp256r1", "-t", "NONEwithECDSA", libName};
break;
case "wolfCrypt":
args = new String[]{"ecdsa", "-n", "10", "-cn", "secp256r1", libName};
break;
}
ECTesterStandalone.main(args);
}
Expand All @@ -161,6 +166,8 @@ public void ecdsa(String libName, StdOut out) {
@ValueSource(strings = {"Bouncy", "Sun", "libtomcrypt", "Botan", "Crypto++", "OpenSSL 3", "BoringSSL", "libgcrypt", "mbed TLS", "2021" /* IPPCP */, "Nettle", "LibreSSL", "wolfCrypt"})
@StdIo()
public void export(String libName, StdOut out) {
// TODO: wolfCrypt is weirdly broken here.
assumeFalse(libName.contains("wolfCrypt"));
String[] args = new String[]{"export", "-b", "256", libName};
switch (libName) {
case "Botan":
Expand Down

0 comments on commit 1b26fc1

Please sign in to comment.