equal
deleted
inserted
replaced
211 sha1_end(cx->key, cx->ctx); /* store the result as the */ |
211 sha1_end(cx->key, cx->ctx); /* store the result as the */ |
212 cx->klen = OUT_BLOCK_LENGTH; /* key and set new length */ |
212 cx->klen = OUT_BLOCK_LENGTH; /* key and set new length */ |
213 } |
213 } |
214 |
214 |
215 /* pad the key if necessary */ |
215 /* pad the key if necessary */ |
216 //coverity[OVERRUN_STATIC :FALSE] |
216 //coverity[overrun-local] |
217 memset(cx->key + cx->klen, 0, IN_BLOCK_LENGTH - cx->klen); |
217 memset(cx->key + cx->klen, 0, IN_BLOCK_LENGTH - cx->klen); |
218 |
218 |
219 /* xor ipad into key value */ |
219 /* xor ipad into key value */ |
220 for(i = 0; i < (IN_BLOCK_LENGTH >> 2); ++i) |
220 for(i = 0; i < (IN_BLOCK_LENGTH >> 2); ++i) |
221 ((unsigned long*)cx->key)[i] ^= 0x36363636; |
221 ((unsigned long*)cx->key)[i] ^= 0x36363636; |