Add documentation comment to internal abort functions

Explain the reasoning behind not clearing some variables.

Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
Paul Elliott 2023-02-07 12:51:21 +00:00
parent de1114c883
commit e6145dc47f

View File

@ -3192,6 +3192,10 @@ static psa_status_t psa_sign_hash_abort_internal(
operation->id = 0;
/* Do not clear either the error_occurred or num_ops elements here as they
* only want to be cleared by the application calling abort, not by abort
* being called at completion of an operation. */
return status;
}
@ -3335,6 +3339,10 @@ static psa_status_t psa_verify_hash_abort_internal(
operation->id = 0;
/* Do not clear either the error_occurred or num_ops elements here as they
* only want to be cleared by the application calling abort, not by abort
* being called at completion of an operation. */
return status;
}