use mbedtls_zeroize instead of memset(xxx,0,xxx)

pull/4689/head
adustm 2017-03-20 11:18:38 +01:00 committed by adbridge
parent fbab24db6b
commit bc3bf9f3f4
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ static void mbedtls_zeroize( void *v, size_t n ) {
void mbedtls_sha1_init( mbedtls_sha1_context *ctx )
{
memset( ctx, 0, sizeof( mbedtls_sha1_context ) );
mbedtls_zeroize( ctx, sizeof( mbedtls_sha1_context ) );
/* Enable HASH clock */
__HAL_RCC_HASH_CLK_ENABLE();