Home | History | Annotate | Download | only in opencrypto

Lines Matching defs:iv

91 	unsigned char iv[EALG_MAX_BLOCK_LEN], blk[EALG_MAX_BLOCK_LEN], *idat;
106 /* Initialize the IV */
108 /* IV explicitly provided ? */
110 memcpy(iv, crd->crd_iv, ivlen);
112 exf->reinit(sw->sw_kschedule, iv, 0);
114 exf->reinit(sw->sw_kschedule, 0, iv);
116 cprng_fast(iv, EALG_MAX_BLOCK_LEN);
119 /* Do we need to write the IV */
121 COPYBACK(outtype, buf, crd->crd_inject, ivlen, iv);
125 /* IV explicitly provided ? */
127 memcpy(iv, crd->crd_iv, ivlen);
129 /* Get IV off buf */
130 COPYDATA(outtype, buf, crd->crd_inject, ivlen, iv);
133 exf->reinit(sw->sw_kschedule, iv, 0);
136 ivp = iv;
151 /* XOR with the IV/previous block, as appropriate. */
163 * block as the IV for the next block.
169 /* XOR with the IV/previous block, as appropriate */
218 memcpy(iv, blk, blks);
219 ivp = iv;
225 if (ivp == iv)
228 memcpy(iv, blk, blks);
236 if (ivp == iv)
237 memcpy(iv, piv, blks);
239 ivp = iv;
286 /* XOR with previous block/IV */
297 if (ivp == iv)
300 memcpy(iv, idat, blks);
304 /* XOR with previous block/IV */
308 if (ivp == iv)
309 memcpy(iv, piv, blks);
311 ivp = iv;
361 memcpy(iv, blk, blks);
362 ivp = iv;
368 if (ivp == iv)
371 memcpy(iv, blk, blks);
379 if (ivp == iv)
380 memcpy(iv, piv, blks);
382 ivp = iv;
420 /* XOR with previous block/IV */
431 if (ivp == iv)
434 memcpy(iv, idat, blks);
438 /* XOR with previous block/IV */
442 if (ivp == iv)
443 memcpy(iv, piv, blks);
445 ivp = iv;
568 u_char iv[EALG_MAX_BLOCK_LEN];
614 /* Initialize the IV */
616 /* IV explicitly provided ? */
618 memcpy(iv, crde->crd_iv, ivlen);
620 exf->reinit(swe->sw_kschedule, iv, 0);
622 exf->reinit(swe->sw_kschedule, 0, iv);
624 cprng_fast(iv, ivlen);
626 /* Do we need to write the IV */
628 COPYBACK(outtype, buf, crde->crd_inject, ivlen, iv);
631 /* IV explicitly provided ? */
633 memcpy(iv, crde->crd_iv, ivlen);
635 /* Get IV off buf */
636 COPYDATA(outtype, buf, crde->crd_inject, ivlen, iv);
639 exf->reinit(swe->sw_kschedule, iv, 0);
642 /* Supply MAC with IV */
644 axf->Reinit(&ctx, iv, ivlen);