The unified diff between revisions [a1c3f430..] and [7122128a..] is displayed below. It can also be downloaded as a raw diff.

This diff has been restricted to the following files: 'demos/test/pkcs_1_test.c'

#
#
# patch "demos/test/pkcs_1_test.c"
#  from [5cd09f8b0ebd98bb507bbd83b1ea22a31e4bfa9b]
#    to [53dbcf5be2feb312bc8d896c9fbb8362cf50fbd8]
#
============================================================
--- demos/test/pkcs_1_test.c	5cd09f8b0ebd98bb507bbd83b1ea22a31e4bfa9b
+++ demos/test/pkcs_1_test.c	53dbcf5be2feb312bc8d896c9fbb8362cf50fbd8
@@ -1,5 +1,7 @@
 #include "test.h"

+#ifdef PKCS_1
+
 int pkcs_1_test(void)
 {
    unsigned char buf[3][128];
@@ -17,7 +19,7 @@ int pkcs_1_test(void)
    }

    /* do many tests */
-   for (x = 0; x < 10000; x++) {
+   for (x = 0; x < 100; x++) {
       zeromem(buf, sizeof(buf));

       /* make a dummy message (of random length) */
@@ -101,3 +103,14 @@ int pkcs_1_test(void)
    }
    return 0;
 }
+
+#else
+
+int pkcs_1_test(void)
+{
+   printf("NOP");
+   return 0;
+}
+
+#endif
+