mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-24 22:35:15 +00:00
Merge remote-tracking branch 'upstream-restricted/pr/436' into development-restricted
This commit is contained in:
commit
6e4c756a18
|
@ -29,6 +29,14 @@
|
||||||
|
|
||||||
#include "mbedtls/platform.h"
|
#include "mbedtls/platform.h"
|
||||||
|
|
||||||
|
#if defined(MBEDTLS_ENTROPY_NV_SEED) && \
|
||||||
|
!defined(MBEDTLS_PLATFORM_NO_STD_FUNCTIONS) && defined(MBEDTLS_FS_IO)
|
||||||
|
/* Implementation that should never be optimized out by the compiler */
|
||||||
|
static void mbedtls_zeroize( void *v, size_t n ) {
|
||||||
|
volatile unsigned char *p = (unsigned char*)v; while( n-- ) *p++ = 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(MBEDTLS_PLATFORM_MEMORY)
|
#if defined(MBEDTLS_PLATFORM_MEMORY)
|
||||||
#if !defined(MBEDTLS_PLATFORM_STD_CALLOC)
|
#if !defined(MBEDTLS_PLATFORM_STD_CALLOC)
|
||||||
static void *platform_calloc_uninit( size_t n, size_t size )
|
static void *platform_calloc_uninit( size_t n, size_t size )
|
||||||
|
|
Loading…
Reference in a new issue