Update library/gcm.c

Co-authored-by: davidhorstmann-arm <70948878+davidhorstmann-arm@users.noreply.github.com>
Signed-off-by: openluopworld <luopengxq@gmail.com>
This commit is contained in:
LuoPeng 2021-09-22 23:51:19 +08:00 committed by openluopworld
parent e3f23091d2
commit eb009232c0

View File

@ -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 )