mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2026-04-20 22:05:15 +00:00
Remove entropy source overwrite in baremetal_test
-Do not overwrite MBEDTLS_ENTROPY_MAX_SOURCES in baremetal_test.h -Skip tests that are not suitable for low number of entropy sources
This commit is contained in:
parent
7d2434fac2
commit
0a8f87f5eb
3 changed files with 8 additions and 5 deletions
|
|
@ -32,6 +32,8 @@
|
|||
#include "tinycrypt/ecc.h"
|
||||
#endif /* MBEDTLS_USE_TINYCRYPT */
|
||||
|
||||
#include "mbedtls/entropy.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#include <basetsd.h>
|
||||
typedef UINT8 uint8_t;
|
||||
|
|
@ -300,6 +302,10 @@ jmp_buf jmp_tmp;
|
|||
#define ENTROPY_HAVE_STRONG
|
||||
#endif
|
||||
|
||||
/* Set flag if number of entropy sources is more than 2 */
|
||||
#if ( MBEDTLS_ENTROPY_MAX_SOURCES > 2 )
|
||||
#define ENTROPY_SOURCE_COUNT_MORE_THAN_TWO
|
||||
#endif
|
||||
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Helper Functions */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue