Make the error handling in some psa_cipher_xxx() and psa_mac_xxx() functions more robust by aborting the operation before returning with and error.
The impacted functions are: psa_mac_verify_finish(), psa_mac_sign_finish(), psa_cipher_generate_iv(), psa_cipher_set_iv(), psa_cipher_update(), psa_cipher_finish()
Justification
Mbed TLS needs this because this makes the implementation more robust in case the user makes a mistake and does not abort the operation as the PSA Crypto API specification requires them to do. Also, not aborting the operation on these errors provides little to no benefit.
The text was updated successfully, but these errors were encountered:
We are unable to convert the task to an issue at this time. Please try again.
The issue was successfully created but we are unable to update the comment at this time.
Suggested enhancement
Make the error handling in some
psa_cipher_xxx()
andpsa_mac_xxx()
functions more robust by aborting the operation before returning with and error.The impacted functions are:
psa_mac_verify_finish()
,psa_mac_sign_finish()
,psa_cipher_generate_iv()
,psa_cipher_set_iv()
,psa_cipher_update()
,psa_cipher_finish()
Justification
Mbed TLS needs this because this makes the implementation more robust in case the user makes a mistake and does not abort the operation as the PSA Crypto API specification requires them to do. Also, not aborting the operation on these errors provides little to no benefit.
The text was updated successfully, but these errors were encountered: