Lines Matching defs:checksum
5898 char file_checksum[NVRAM_SHA1BUFSIZE],checksum[NVRAM_SHA1BUFSIZE];
5977 proper checksum calculations */
5981 /* read in checksum */
6019 /* Save and decode checksum from file */
6026 "No checksum present at line %d<br>",checksum_linenum+1);
6032 strncpy(posterr_msg,"Invalid checksum.<br>",ERR_MSG_SIZE);
6039 /* Extract salt value from stored checksum*/
6047 /* Plug in filler for checksum into read buffer*/
6052 /* Calculate checksum and compare with stored value*/
6054 memset(checksum,0,sizeof(checksum));
6056 key,sizeof(key),checksum);
6058 if (memcmp(checksum,file_checksum,NVRAM_HASHSIZE)){
6059 memcpy(posterr_msg,"File checksum error<br>",ERR_MSG_SIZE);
6320 char checksum[NVRAM_SHA1BUFSIZE];
6382 The third entry is the SHA1 checksum
6406 /* Plug in filler for checksum */
6446 memset(checksum,0,sizeof(checksum));
6447 hmac_sha1((unsigned char*)post_buf,sizeof(struct pb),key,sizeof(key),checksum);
6449 memcpy(tmp,checksum,NVRAM_HASHSIZE);
6455 cprintf("do_nvramdl_cgi():Error performing base-64 encode of NVRAM checksum.\n");