mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-06 12:40:02 +00:00
Replace individual zeroization with memset
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
parent
f94bd99368
commit
70f447dfe5
@ -3819,12 +3819,7 @@ psa_status_t psa_aead_abort( psa_aead_operation_t *operation )
|
|||||||
|
|
||||||
status = psa_driver_wrapper_aead_abort( operation );
|
status = psa_driver_wrapper_aead_abort( operation );
|
||||||
|
|
||||||
operation->id = 0;
|
memset( operation, 0, sizeof( psa_aead_operation_t ) );
|
||||||
operation->nonce_set = 0;
|
|
||||||
operation->lengths_set = 0;
|
|
||||||
operation->ad_started = 0;
|
|
||||||
operation->body_started = 0;
|
|
||||||
operation->is_encrypt = 0;
|
|
||||||
|
|
||||||
return( status );
|
return( status );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user