X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=fips%2Fcmac%2Ffips_cmactest.c;h=cc07265370b2b349f3f7efdfa77d60552e3293c0;hp=5930b98484f38d8b4d992f6ff3cabe031a12c376;hb=bd7e6bd44b2ebaff45aea1368886d4e9573e949c;hpb=af267e4315234f167c4917ddb5f1b1ca1472bad6 diff --git a/fips/cmac/fips_cmactest.c b/fips/cmac/fips_cmactest.c index 5930b98484..cc07265370 100644 --- a/fips/cmac/fips_cmactest.c +++ b/fips/cmac/fips_cmactest.c @@ -456,7 +456,7 @@ static int print_cmac_gen(const EVP_CIPHER *cipher, FILE *out, fputs("Error calculating CMAC\n", stderr); rc = 0; } - else if (Tlen > reslen) + else if (Tlen > (int)reslen) { fputs("Parameter error, Tlen > CMAC length\n", stderr); rc = 0; @@ -491,7 +491,7 @@ static int print_cmac_ver(const EVP_CIPHER *cipher, FILE *out, fputs("Error calculating CMAC\n", stderr); rc = 0; } - else if (Tlen > reslen) + else if (Tlen > (int)reslen) { fputs("Parameter error, Tlen > CMAC length\n", stderr); rc = 0;