mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-07 13:22:46 +00:00
Wipe output buffer even when INCOMPLETE is returned.
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
parent
c569fc268f
commit
53bb312054
@ -3292,10 +3292,10 @@ exit:
|
|||||||
/* Update ops count with work done. */
|
/* Update ops count with work done. */
|
||||||
operation->num_ops = psa_driver_wrapper_sign_hash_get_num_ops(operation);
|
operation->num_ops = psa_driver_wrapper_sign_hash_get_num_ops(operation);
|
||||||
|
|
||||||
if (status != PSA_OPERATION_INCOMPLETE) {
|
psa_wipe_output_buffer(signature, status, signature_size,
|
||||||
psa_wipe_output_buffer(signature, status, signature_size,
|
*signature_length);
|
||||||
*signature_length);
|
|
||||||
|
|
||||||
|
if (status != PSA_OPERATION_INCOMPLETE) {
|
||||||
if (status != PSA_SUCCESS) {
|
if (status != PSA_SUCCESS) {
|
||||||
operation->error_occurred = 1;
|
operation->error_occurred = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user