From b59ac022c97d3e3595e409e2b403f4352a2e147a Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Fri, 6 May 2022 13:36:54 -0500 Subject: [PATCH] fix comment explaining ConstantCompare() in AES_GCM_decrypt_C(). --- wolfcrypt/src/aes.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wolfcrypt/src/aes.c b/wolfcrypt/src/aes.c index 2594fa941..9febd9408 100644 --- a/wolfcrypt/src/aes.c +++ b/wolfcrypt/src/aes.c @@ -8246,7 +8246,9 @@ int WARN_UNUSED_RESULT AES_GCM_decrypt_C( XMEMCPY(p, scratch, partial); } - /* ConstantCompare returns cumulative or of the bytewise XOR. */ + /* ConstantCompare returns the cumulative bitwise or of the bitwise xor of + * the pairwise bytes in the strings. + */ res = ConstantCompare(authTag, Tprime, authTagSz); /* convert positive retval from ConstantCompare() to all-1s word, in * constant time.