summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Walden <jwalden@mit.edu>2020-05-21 20:37:41 +0000
committerJeff Walden <jwalden@mit.edu>2020-05-21 20:37:41 +0000
commit7dbd504a572f1442136ecccc140c921a54cb1f3e (patch)
tree51a6a005625a09332d3b6c04a04a901421816ccc
parent16a0ab4ec0fa665e63015d8df19ec9b0beaa0037 (diff)
downloadnss-hg-7dbd504a572f1442136ecccc140c921a54cb1f3e.tar.gz
Bug 1639033 - Use unsigned int rather than int for two variables to eliminate a bunch of signed-unsigned comparison warnings. r=kjacobs
Depends on D75845 Differential Revision: https://phabricator.services.mozilla.com/D75846
-rw-r--r--lib/freebl/cmac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/freebl/cmac.c b/lib/freebl/cmac.c
index 5c6728c83..222cef1b4 100644
--- a/lib/freebl/cmac.c
+++ b/lib/freebl/cmac.c
@@ -24,7 +24,7 @@ struct CMACContextStr {
union {
AESContext *aes;
} cipher;
- int blockSize;
+ unsigned int blockSize;
/* Internal keys which are conditionally used by the algorithm. Derived
* from encrypting the NULL block. We leave the storing of (and the
@@ -210,7 +210,7 @@ SECStatus
CMAC_Update(CMACContext *ctx, const unsigned char *data,
unsigned int data_len)
{
- int data_index = 0;
+ unsigned int data_index = 0;
if (ctx == NULL) {
PORT_SetError(SEC_ERROR_INVALID_ARGS);
return SECFailure;