From 1de3f2a1f61833428f27ff606f8e9b6dc91ad803 Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Thu, 11 May 2017 14:53:51 +0200 Subject: [PATCH] correctly NOP there's still mac_test() which doesn't NOP correctly but who cares anyway? --- testprof/der_tests.c | 3 +-- testprof/dh_test.c | 3 +-- testprof/dsa_test.c | 3 +-- testprof/ecc_test.c | 3 +-- testprof/modes_test.c | 3 --- testprof/pkcs_1_eme_test.c | 3 +-- testprof/pkcs_1_emsa_test.c | 3 +-- testprof/pkcs_1_oaep_test.c | 3 +-- testprof/pkcs_1_pss_test.c | 3 +-- testprof/pkcs_1_test.c | 3 +-- testprof/rsa_test.c | 3 +-- 11 files changed, 10 insertions(+), 23 deletions(-) diff --git a/testprof/der_tests.c b/testprof/der_tests.c index c2141e6..d165646 100644 --- a/testprof/der_tests.c +++ b/testprof/der_tests.c @@ -7,8 +7,7 @@ int der_tests(void) { - fprintf(stderr, "NOP"); - return 0; + return CRYPT_NOP; } #else diff --git a/testprof/dh_test.c b/testprof/dh_test.c index e2bd980..86af8c6 100644 --- a/testprof/dh_test.c +++ b/testprof/dh_test.c @@ -114,8 +114,7 @@ int dh_test (void) int dh_test(void) { - fprintf(stderr, "NOP"); - return 0; + return CRYPT_NOP; } #endif diff --git a/testprof/dsa_test.c b/testprof/dsa_test.c index 37f06d7..de8b6e6 100644 --- a/testprof/dsa_test.c +++ b/testprof/dsa_test.c @@ -240,8 +240,7 @@ int dsa_test(void) int dsa_test(void) { - fprintf(stderr, "NOP"); - return 0; + return CRYPT_NOP; } #endif diff --git a/testprof/ecc_test.c b/testprof/ecc_test.c index b4668d0..23d259a 100644 --- a/testprof/ecc_test.c +++ b/testprof/ecc_test.c @@ -237,8 +237,7 @@ int ecc_tests (void) int ecc_tests(void) { - fprintf(stderr, "NOP"); - return 0; + return CRYPT_NOP; } #endif diff --git a/testprof/modes_test.c b/testprof/modes_test.c index 58a9fae..1ec882e 100644 --- a/testprof/modes_test.c +++ b/testprof/modes_test.c @@ -114,9 +114,6 @@ int modes_test(void) DO(ret = xts_test()); #endif - if (ret == CRYPT_NOP) - fprintf(stderr, "NOP"); - return 0; } diff --git a/testprof/pkcs_1_eme_test.c b/testprof/pkcs_1_eme_test.c index 2950b28..e709156 100644 --- a/testprof/pkcs_1_eme_test.c +++ b/testprof/pkcs_1_eme_test.c @@ -57,8 +57,7 @@ int pkcs_1_eme_test(void) int pkcs_1_eme_test(void) { - fprintf(stderr, "NOP"); - return 0; + return CRYPT_NOP; } #endif diff --git a/testprof/pkcs_1_emsa_test.c b/testprof/pkcs_1_emsa_test.c index e6d2cc2..cf1c0f8 100644 --- a/testprof/pkcs_1_emsa_test.c +++ b/testprof/pkcs_1_emsa_test.c @@ -53,8 +53,7 @@ int pkcs_1_emsa_test(void) int pkcs_1_emsa_test(void) { - fprintf(stderr, "NOP"); - return 0; + return CRYPT_NOP; } #endif diff --git a/testprof/pkcs_1_oaep_test.c b/testprof/pkcs_1_oaep_test.c index 42a4dbd..ae1aee3 100644 --- a/testprof/pkcs_1_oaep_test.c +++ b/testprof/pkcs_1_oaep_test.c @@ -57,8 +57,7 @@ int pkcs_1_oaep_test(void) int pkcs_1_oaep_test(void) { - fprintf(stderr, "NOP"); - return 0; + return CRYPT_NOP; } #endif diff --git a/testprof/pkcs_1_pss_test.c b/testprof/pkcs_1_pss_test.c index d3363d8..76822c9 100644 --- a/testprof/pkcs_1_pss_test.c +++ b/testprof/pkcs_1_pss_test.c @@ -58,8 +58,7 @@ int pkcs_1_pss_test(void) int pkcs_1_pss_test(void) { - fprintf(stderr, "NOP"); - return 0; + return CRYPT_NOP; } #endif diff --git a/testprof/pkcs_1_test.c b/testprof/pkcs_1_test.c index 792d024..0ec8cdf 100644 --- a/testprof/pkcs_1_test.c +++ b/testprof/pkcs_1_test.c @@ -87,8 +87,7 @@ int pkcs_1_test(void) int pkcs_1_test(void) { - fprintf(stderr, "NOP"); - return 0; + return CRYPT_NOP; } #endif diff --git a/testprof/rsa_test.c b/testprof/rsa_test.c index c9b9923..3540fd3 100644 --- a/testprof/rsa_test.c +++ b/testprof/rsa_test.c @@ -616,8 +616,7 @@ for (cnt = 0; cnt < len; ) { int rsa_test(void) { - fprintf(stderr, "NOP"); - return 0; + return CRYPT_NOP; } #endif