From eb009232c0233ebca6d6b706593a16684f1180d9 Mon Sep 17 00:00:00 2001 From: LuoPeng Date: Wed, 22 Sep 2021 23:51:19 +0800 Subject: [PATCH] Update library/gcm.c Co-authored-by: davidhorstmann-arm <70948878+davidhorstmann-arm@users.noreply.github.com> Signed-off-by: openluopworld --- library/gcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/gcm.c b/library/gcm.c index e1c1c7d51..0e402dd8c 100644 --- a/library/gcm.c +++ b/library/gcm.c @@ -278,7 +278,7 @@ int mbedtls_gcm_starts( mbedtls_gcm_context *ctx, else { memset( work_buf, 0x00, 16 ); - MBEDTLS_PUT_UINT64_BE( iv_len * 8, work_buf, 8 ); + MBEDTLS_PUT_UINT64_BE( iv_len * 8, work_buf, 8 ); p = iv; while( iv_len > 0 )