diff --git a/library/psa_crypto_aead.c b/library/psa_crypto_aead.c index a201985b4f..307bfe7840 100644 --- a/library/psa_crypto_aead.c +++ b/library/psa_crypto_aead.c @@ -310,9 +310,6 @@ psa_status_t mbedtls_psa_aead_decrypt( exit: mbedtls_psa_aead_abort(&operation); - if (status == PSA_SUCCESS) { - *plaintext_length = ciphertext_length - operation.tag_length; - } return status; }