Skip to content

Commit

Permalink
Merge pull request #661 from libtom/fix-ccm
Browse files Browse the repository at this point in the history
Fix compiler warning
  • Loading branch information
sjaeckel authored Aug 29, 2024
2 parents c4b423f + 349d56e commit 12bf723
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/encauth/ccm/ccm_add_nonce.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ int ccm_add_nonce(ccm_state *ccm,
ccm->PAD[x++] = 0;
}
for (; y < ccm->L; y++) {
if (x >= sizeof(ccm->PAD)) {
return CRYPT_INVALID_ARG;
}
ccm->PAD[x++] = (unsigned char)((len >> 24) & 255);
len <<= 8;
}
Expand Down

0 comments on commit 12bf723

Please sign in to comment.