forked from wolfSSL/wolfssl
tyto build - add GenerateSeed, exclude ctype.h, test.h
This commit is contained in:
@@ -629,6 +629,18 @@ int GenerateSeed(OS_Seed* os, byte* output, word32 sz)
|
|||||||
return 0;
|
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)
|
#elif defined(NO_DEV_RANDOM)
|
||||||
|
|
||||||
#error "you need to write an os specific GenerateSeed() here"
|
#error "you need to write an os specific GenerateSeed() here"
|
||||||
|
@@ -121,7 +121,9 @@
|
|||||||
#define printf dc_log_printf
|
#define printf dc_log_printf
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "ctaocrypt/test/test.h"
|
#ifndef CYASSL_TYTO
|
||||||
|
#include "ctaocrypt/test/test.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
typedef struct testVector {
|
typedef struct testVector {
|
||||||
|
@@ -211,7 +211,9 @@ enum {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CTYPE_USER
|
#ifndef CTYPE_USER
|
||||||
#include <ctype.h>
|
#ifndef CYASSL_TYTO
|
||||||
|
#include <ctype.h>
|
||||||
|
#endif
|
||||||
#if defined(HAVE_ECC) || defined(HAVE_OCSP)
|
#if defined(HAVE_ECC) || defined(HAVE_OCSP)
|
||||||
#define XTOUPPER(c) toupper((c))
|
#define XTOUPPER(c) toupper((c))
|
||||||
#define XISALPHA(c) isalpha((c))
|
#define XISALPHA(c) isalpha((c))
|
||||||
|
Reference in New Issue
Block a user