mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-27 07:14:15 +01:00
Ensure the full driver structure is zeroized at setup
Signed-off-by: Steven Cooreman <steven.cooreman@silabs.com>
This commit is contained in:
parent
fa952958a5
commit
893232fbde
@ -2164,6 +2164,9 @@ psa_status_t psa_hash_setup( psa_hash_operation_t *operation,
|
||||
if( !PSA_ALG_IS_HASH( alg ) )
|
||||
return( PSA_ERROR_INVALID_ARGUMENT );
|
||||
|
||||
/* Ensure all of the context is zeroized, not just the dummy int */
|
||||
memset( &operation->ctx, 0, sizeof( operation->ctx ) );
|
||||
|
||||
return( psa_driver_wrapper_hash_setup( operation, alg ) );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user