mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
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;
|
||||
}
|
||||
|
||||
#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"
|
||||
|
@@ -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 {
|
||||
|
@@ -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))
|
||||
|
Reference in New Issue
Block a user