Skip to content

Commit

Permalink
Update logic to avoid clang-tidy warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
billphipps committed Sep 24, 2024
1 parent 35442d2 commit 5e1db68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wolfcrypt/src/cmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 5e1db68

Please sign in to comment.