mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-08-04 07:21:13 +00:00
Fix build failure with MBEDTLS_PLATFORM_NV_SEED_ALT
An earlier botched backport (d56ca658ab
)
had the wrong name for a variable and a missing header inclusion.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
a21c5e9988
commit
2717eaf1e0
|
@ -1,6 +1,7 @@
|
||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include "mbedtls/entropy.h"
|
#include "mbedtls/entropy.h"
|
||||||
#include "mbedtls/entropy_poll.h"
|
#include "mbedtls/entropy_poll.h"
|
||||||
|
#include "mbedtls/md.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Number of calls made to entropy_dummy_source()
|
* Number of calls made to entropy_dummy_source()
|
||||||
|
@ -346,7 +347,7 @@ void entropy_nv_seed( char *read_seed_str )
|
||||||
|
|
||||||
// Set the initial NV seed to read.
|
// Set the initial NV seed to read.
|
||||||
// Get exactly MBEDTLS_ENTROPY_BLOCK_SIZE bytes from read_str.
|
// Get exactly MBEDTLS_ENTROPY_BLOCK_SIZE bytes from read_str.
|
||||||
TEST_ASSERT( strlen( read_seed ) / 2 >= MBEDTLS_ENTROPY_BLOCK_SIZE );
|
TEST_ASSERT( strlen( read_seed_str ) / 2 >= MBEDTLS_ENTROPY_BLOCK_SIZE );
|
||||||
read_seed_str[MBEDTLS_ENTROPY_BLOCK_SIZE * 2] = '\0';
|
read_seed_str[MBEDTLS_ENTROPY_BLOCK_SIZE * 2] = '\0';
|
||||||
unhexify( read_seed, read_seed_str );
|
unhexify( read_seed, read_seed_str );
|
||||||
memcpy( buffer_seed, read_seed, MBEDTLS_ENTROPY_BLOCK_SIZE );
|
memcpy( buffer_seed, read_seed, MBEDTLS_ENTROPY_BLOCK_SIZE );
|
||||||
|
|
Loading…
Reference in a new issue