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

pull/4157/head
adustm 2017-03-20 11:18:38 +01:00
parent ddd186cc61
commit 1695e9a7bb
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();