comparison libtomcrypt/src/encauth/ccm/ccm_memory.c @ 1733:d529a52b2f7c coverity coverity

merge coverity from main
author Matt Johnston <matt@ucc.asn.au>
date Fri, 26 Jun 2020 21:07:34 +0800
parents e9dba7abd939
children
comparison
equal deleted inserted replaced
1643:b59623a64678 1733:d529a52b2f7c
50 unsigned char *pt_work = NULL; 50 unsigned char *pt_work = NULL;
51 symmetric_key *skey; 51 symmetric_key *skey;
52 int err; 52 int err;
53 unsigned long len, L, x, y, z, CTRlen; 53 unsigned long len, L, x, y, z, CTRlen;
54 #ifdef LTC_FAST 54 #ifdef LTC_FAST
55 LTC_FAST_TYPE fastMask = ~0; /* initialize fastMask at all zeroes */ 55 LTC_FAST_TYPE fastMask = ~(LTC_FAST_TYPE)0; /* initialize fastMask at all zeroes */
56 #endif 56 #endif
57 unsigned char mask = 0xff; /* initialize mask at all zeroes */ 57 unsigned char mask = 0xff; /* initialize mask at all zeroes */
58 58
59 if (uskey == NULL) { 59 if (uskey == NULL) {
60 LTC_ARGCHK(key != NULL); 60 LTC_ARGCHK(key != NULL);