Browse Source

correctly NOP

there's still mac_test() which doesn't NOP correctly but who cares anyway?
Steffen Jaeckel 8 years ago
parent
commit
1de3f2a1f6

+ 1 - 2
testprof/der_tests.c

@@ -7,8 +7,7 @@
 
 
 int der_tests(void)
 int der_tests(void)
 {
 {
-   fprintf(stderr, "NOP");
-   return 0;
+   return CRYPT_NOP;
 }
 }
 
 
 #else
 #else

+ 1 - 2
testprof/dh_test.c

@@ -114,8 +114,7 @@ int dh_test (void)
 
 
 int dh_test(void)
 int dh_test(void)
 {
 {
-   fprintf(stderr, "NOP");
-   return 0;
+   return CRYPT_NOP;
 }
 }
 
 
 #endif
 #endif

+ 1 - 2
testprof/dsa_test.c

@@ -240,8 +240,7 @@ int dsa_test(void)
 
 
 int dsa_test(void)
 int dsa_test(void)
 {
 {
-  fprintf(stderr, "NOP");
-  return 0;
+  return CRYPT_NOP;
 }
 }
 
 
 #endif
 #endif

+ 1 - 2
testprof/ecc_test.c

@@ -237,8 +237,7 @@ int ecc_tests (void)
 
 
 int ecc_tests(void)
 int ecc_tests(void)
 {
 {
-   fprintf(stderr, "NOP");
-   return 0;
+   return CRYPT_NOP;
 }
 }
 
 
 #endif
 #endif

+ 0 - 3
testprof/modes_test.c

@@ -114,9 +114,6 @@ int modes_test(void)
    DO(ret = xts_test());
    DO(ret = xts_test());
 #endif
 #endif
 
 
-   if (ret == CRYPT_NOP)
-      fprintf(stderr, "NOP");
-
    return 0;
    return 0;
 }
 }
 
 

+ 1 - 2
testprof/pkcs_1_eme_test.c

@@ -57,8 +57,7 @@ int pkcs_1_eme_test(void)
 
 
 int pkcs_1_eme_test(void)
 int pkcs_1_eme_test(void)
 {
 {
-   fprintf(stderr, "NOP");
-   return 0;
+   return CRYPT_NOP;
 }
 }
 
 
 #endif
 #endif

+ 1 - 2
testprof/pkcs_1_emsa_test.c

@@ -53,8 +53,7 @@ int pkcs_1_emsa_test(void)
 
 
 int pkcs_1_emsa_test(void)
 int pkcs_1_emsa_test(void)
 {
 {
-   fprintf(stderr, "NOP");
-   return 0;
+   return CRYPT_NOP;
 }
 }
 
 
 #endif
 #endif

+ 1 - 2
testprof/pkcs_1_oaep_test.c

@@ -57,8 +57,7 @@ int pkcs_1_oaep_test(void)
 
 
 int pkcs_1_oaep_test(void)
 int pkcs_1_oaep_test(void)
 {
 {
-   fprintf(stderr, "NOP");
-   return 0;
+   return CRYPT_NOP;
 }
 }
 
 
 #endif
 #endif

+ 1 - 2
testprof/pkcs_1_pss_test.c

@@ -58,8 +58,7 @@ int pkcs_1_pss_test(void)
 
 
 int pkcs_1_pss_test(void)
 int pkcs_1_pss_test(void)
 {
 {
-   fprintf(stderr, "NOP");
-   return 0;
+   return CRYPT_NOP;
 }
 }
 
 
 #endif
 #endif

+ 1 - 2
testprof/pkcs_1_test.c

@@ -87,8 +87,7 @@ int pkcs_1_test(void)
 
 
 int pkcs_1_test(void)
 int pkcs_1_test(void)
 {
 {
-   fprintf(stderr, "NOP");
-   return 0;
+   return CRYPT_NOP;
 }
 }
 
 
 #endif
 #endif

+ 1 - 2
testprof/rsa_test.c

@@ -616,8 +616,7 @@ for (cnt = 0; cnt < len; ) {
 
 
 int rsa_test(void)
 int rsa_test(void)
 {
 {
-   fprintf(stderr, "NOP");
-   return 0;
+   return CRYPT_NOP;
 }
 }
 
 
 #endif
 #endif