We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b84e53b commit 2af6294Copy full SHA for 2af6294
features/mbedtls/targets/TARGET_STM/sha1_alt.c
@@ -28,7 +28,7 @@ static void mbedtls_zeroize( void *v, size_t n ) {
28
29
void mbedtls_sha1_init( mbedtls_sha1_context *ctx )
30
{
31
- memset( ctx, 0, sizeof( mbedtls_sha1_context ) );
+ mbedtls_zeroize( ctx, sizeof( mbedtls_sha1_context ) );
32
33
/* Enable HASH clock */
34
__HAL_RCC_HASH_CLK_ENABLE();
0 commit comments