diff demos/test/pkcs_1_test.c @ 143:5d99163f7e32 libtomcrypt-orig

import of libtomcrypt 0.99
author Matt Johnston <matt@ucc.asn.au>
date Sun, 19 Dec 2004 11:34:45 +0000
parents 6362d3854bb4
children
line wrap: on
line diff
--- a/demos/test/pkcs_1_test.c	Tue Jun 15 14:07:21 2004 +0000
+++ b/demos/test/pkcs_1_test.c	Sun Dec 19 11:34:45 2004 +0000
@@ -1,5 +1,7 @@
 #include "test.h"
 
+#ifdef PKCS_1
+
 int pkcs_1_test(void)
 {
    unsigned char buf[3][128];
@@ -17,7 +19,7 @@
    }   
 
    /* 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 @@
    }
    return 0;
 }
+
+#else
+
+int pkcs_1_test(void)
+{
+   printf("NOP");
+   return 0;
+}
+
+#endif
+