summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2012-10-04 13:27:11 +0000
committerDr. Stephen Henson <steve@openssl.org>2012-10-04 13:27:11 +0000
commitc616200172f922718c7200002470a48d31ec4fb5 (patch)
tree4e4444efb31b89b58de6c75e38e47584a7869179 /test
parent7b899c10cd9ff366ef834615ecaabed8629edc06 (diff)
Add support for Windows CE and C64+ to FIPS module.
Diffstat (limited to 'test')
-rw-r--r--test/fips_algvs.c29
1 files changed, 28 insertions, 1 deletions
diff --git a/test/fips_algvs.c b/test/fips_algvs.c
index 36d7fb3338..ed0350720a 100644
--- a/test/fips_algvs.c
+++ b/test/fips_algvs.c
@@ -89,6 +89,7 @@ extern int fips_rsavtest_main(int argc, char **argv);
extern int fips_shatest_main(int argc, char **argv);
extern int fips_test_suite_main(int argc, char **argv);
+#if !defined(_TMS320C6400_PLUS)
#include "fips_aesavs.c"
#include "fips_cmactest.c"
#include "fips_desmovs.c"
@@ -106,6 +107,28 @@ extern int fips_test_suite_main(int argc, char **argv);
#include "fips_shatest.c"
#include "fips_test_suite.c"
+#else
+#include "aes/fips_aesavs.c"
+#include "cmac/fips_cmactest.c"
+#include "des/fips_desmovs.c"
+#include "dh/fips_dhvs.c"
+#include "rand/fips_drbgvs.c"
+#include "dsa/fips_dssvs.c"
+#include "ecdh/fips_ecdhvs.c"
+#include "ecdsa/fips_ecdsavs.c"
+#include "aes/fips_gcmtest.c"
+#include "hmac/fips_hmactest.c"
+#include "rand/fips_rngvs.c"
+#include "rsa/fips_rsagtest.c"
+#include "rsa/fips_rsastest.c"
+#include "rsa/fips_rsavtest.c"
+#include "sha/fips_shatest.c"
+#include "fips_test_suite.c"
+
+#pragma DATA_SECTION(aucCmBootDspLoad, "BootDspSection");
+volatile unsigned char aucCmBootDspLoad[8*1024];
+#endif
+
typedef struct
{
const char *name;
@@ -221,7 +244,7 @@ static int run_prg(int argc, char **argv)
int main(int argc, char **argv)
{
- char buf[1024];
+ static char buf[1024];
char **args = argv + 1;
const char *sname = "fipstests.sh";
ARGS arg;
@@ -238,6 +261,10 @@ int main(int argc, char **argv)
CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON);
#endif
+#if defined(_TMS320C6400_PLUS)
+ SysInit();
+#endif
+
if (*args && *args[0] != '-')
{
rv = run_prg(argc - 1, args);