#include <stdio.h>
#include <string.h>
#include <openssl/e_os.h>
-#include <openssl/rsa.h>
#include <openssl/err.h>
+#ifdef NO_RSA
+int main(int argc, char *argv[])
+{
+ printf("No RSA support\n");
+ return(0);
+}
+#else
+#include <openssl/rsa.h>
#define SetKey \
key->n = BN_bin2bn(n, sizeof(n)-1, key->n); \
RSA_PKCS1_OAEP_PADDING);
if (num != plen || memcmp(ptext, ptext_ex, num) != 0)
{
- printf("OAEP decryption failed!\n");
+ printf("OAEP decryption (encrypted data) failed!\n");
err=1;
- goto next;
}
if (memcmp(ctext, ctext_ex, num) == 0)
}
return err;
}
+#endif