fix comment explaining ConstantCompare() in AES_GCM_decrypt_C().

This commit is contained in:
Daniel Pouzzner
2022-05-06 13:36:54 -05:00
parent ccc9b1535d
commit b59ac022c9

View File

@@ -8246,7 +8246,9 @@ int WARN_UNUSED_RESULT AES_GCM_decrypt_C(
XMEMCPY(p, scratch, partial); 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); res = ConstantCompare(authTag, Tprime, authTagSz);
/* convert positive retval from ConstantCompare() to all-1s word, in /* convert positive retval from ConstantCompare() to all-1s word, in
* constant time. * constant time.