Package list libcryptx-perl / 5219575
tlc sync Karel Miko 3 years ago
1 changed file(s) with 3 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
210210 st->work_ctx.c[i] = st->master_ctx.c[i];
211211 }
212212 st->work_ctx.carry = st->master_ctx.carry;
213
214 /* reset keystream buffer and unused count */
213 /* ...and prepare block for crypt() */
215214 XMEMSET(&(st->block), 0, sizeof(st->block));
216215 st->unused = 0;
217216
227226 unsigned char tmpiv[8] = {0};
228227
229228 LTC_ARGCHK(st != NULL);
229 LTC_ARGCHK(iv != NULL || ivlen == 0);
230230 LTC_ARGCHK(ivlen <= 8);
231 LTC_ARGCHK(iv != NULL || ivlen == 0);
232231
233232 /* pad iv in tmpiv */
234 if (ivlen > 0) XMEMCPY(tmpiv, iv, ivlen);
233 if (iv && ivlen > 0) XMEMCPY(tmpiv, iv, ivlen);
235234
236235 /* Generate four subvectors */
237236 LOAD32L(i0, tmpiv+0);