Update logic to avoid clang-tidy warning.

This commit is contained in:
Bill Phipps
2024-09-24 13:14:00 -04:00
parent 35442d27b5
commit 5e1db686e1

View File

@@ -318,7 +318,8 @@ int wc_CmacFinalNoFree(Cmac* cmac, byte* out, word32* outSz)
else {
/* ensure we will have a valid remainder value */
if (cmac->bufferSz > AES_BLOCK_SIZE) {
return BAD_STATE_E;
ret = BAD_STATE_E;
break;
}
remainder = AES_BLOCK_SIZE - cmac->bufferSz;