mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-27 06:35:22 +00:00
Fix passing wrong tag size to GCM finish
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
parent
99f548d974
commit
2fe5db87d5
@ -628,7 +628,7 @@ psa_status_t mbedtls_psa_aead_finish(
|
||||
status = mbedtls_to_psa_error(
|
||||
mbedtls_gcm_finish( &operation->ctx.gcm,
|
||||
ciphertext, ciphertext_size,
|
||||
tag, tag_size ) );
|
||||
tag, operation->tag_length ) );
|
||||
else
|
||||
#endif /* MBEDTLS_PSA_BUILTIN_ALG_GCM */
|
||||
#if defined(MBEDTLS_PSA_BUILTIN_ALG_CHACHA20_POLY1305)
|
||||
|
Loading…
x
Reference in New Issue
Block a user