mirror of
https://github.com/cuberite/polarssl.git
synced 2025-11-30 18:35:07 -05: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(
|
status = mbedtls_to_psa_error(
|
||||||
mbedtls_gcm_finish( &operation->ctx.gcm,
|
mbedtls_gcm_finish( &operation->ctx.gcm,
|
||||||
ciphertext, ciphertext_size,
|
ciphertext, ciphertext_size,
|
||||||
tag, tag_size ) );
|
tag, operation->tag_length ) );
|
||||||
else
|
else
|
||||||
#endif /* MBEDTLS_PSA_BUILTIN_ALG_GCM */
|
#endif /* MBEDTLS_PSA_BUILTIN_ALG_GCM */
|
||||||
#if defined(MBEDTLS_PSA_BUILTIN_ALG_CHACHA20_POLY1305)
|
#if defined(MBEDTLS_PSA_BUILTIN_ALG_CHACHA20_POLY1305)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user