Skip to content

Commit

Permalink
fix for minor warning on sign comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobBarthelmeh committed Aug 23, 2024
1 parent 15fe12a commit 9a48a36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mplabx/small-psk-build/psk-ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2669,7 +2669,7 @@ static int SanityCheckCipherText(WOLFSSL* ssl, word32 encryptSz)
#endif

#ifndef WOLFSSL_AEAD_ONLY
if (ssl->specs.cipher_type == block) {
if (ssl->specs.cipher_type == (byte)block) {
#ifdef HAVE_ENCRYPT_THEN_MAC
if (ssl->options.startedETMRead) {
if ((encryptSz - MacSize(ssl)) % ssl->specs.block_size) {
Expand All @@ -2696,7 +2696,7 @@ static int SanityCheckCipherText(WOLFSSL* ssl, word32 encryptSz)
}
else
#endif
if (ssl->specs.cipher_type == aead) {
if (ssl->specs.cipher_type == (byte)aead) {
minLength = ssl->specs.aead_mac_size; /* authTag size */
if (CipherHasExpIV(ssl))
minLength += AESGCM_EXP_IV_SZ; /* explicit IV */
Expand Down

0 comments on commit 9a48a36

Please sign in to comment.