mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-24 22:15:07 +00:00
Use platform_memset() in platform_zeroize()
We're using zeroize in many places in order to erase secrets, so we really need it to be as secure as possible.
This commit is contained in:
parent
5220781b98
commit
14f33e74c0
|
@ -72,7 +72,8 @@
|
||||||
* mbedtls_platform_zeroize() to use a suitable implementation for their
|
* mbedtls_platform_zeroize() to use a suitable implementation for their
|
||||||
* platform and needs.
|
* platform and needs.
|
||||||
*/
|
*/
|
||||||
static void * (* const volatile memset_func)( void *, int, size_t ) = memset;
|
void *mbedtls_platform_memset( void *, int, size_t );
|
||||||
|
static void * (* const volatile memset_func)( void *, int, size_t ) = mbedtls_platform_memset;
|
||||||
|
|
||||||
void mbedtls_platform_zeroize( void *buf, size_t len )
|
void mbedtls_platform_zeroize( void *buf, size_t len )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue