Replace individual zeroization with memset

Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
Paul Elliott 2021-09-19 18:21:58 +01:00
parent f94bd99368
commit 70f447dfe5

View File

@ -3819,12 +3819,7 @@ psa_status_t psa_aead_abort( psa_aead_operation_t *operation )
status = psa_driver_wrapper_aead_abort( operation );
operation->id = 0;
operation->nonce_set = 0;
operation->lengths_set = 0;
operation->ad_started = 0;
operation->body_started = 0;
operation->is_encrypt = 0;
memset( operation, 0, sizeof( psa_aead_operation_t ) );
return( status );
}