tyto build - add GenerateSeed, exclude ctype.h, test.h

This commit is contained in:
Chris Conlon
2014-02-12 13:39:38 -07:00
parent b6d4f10222
commit cf6eaf219a
3 changed files with 18 additions and 2 deletions

View File

@@ -629,6 +629,18 @@ int GenerateSeed(OS_Seed* os, byte* output, word32 sz)
return 0;
}
#elif defined(CYASSL_TYTO)
int GenerateSeed(OS_Seed* os, byte* output, word32 sz)
{
int i;
for (i = 0; i < sz; i++ )
output[i] = rand_gen();
return 0;
}
#elif defined(NO_DEV_RANDOM)
#error "you need to write an os specific GenerateSeed() here"

View File

@@ -121,7 +121,9 @@
#define printf dc_log_printf
#endif
#include "ctaocrypt/test/test.h"
#ifndef CYASSL_TYTO
#include "ctaocrypt/test/test.h"
#endif
typedef struct testVector {

View File

@@ -211,7 +211,9 @@ enum {
#endif
#ifndef CTYPE_USER
#include <ctype.h>
#ifndef CYASSL_TYTO
#include <ctype.h>
#endif
#if defined(HAVE_ECC) || defined(HAVE_OCSP)
#define XTOUPPER(c) toupper((c))
#define XISALPHA(c) isalpha((c))