Lines Matching defs:sw

76 swcr_encdec(struct cryptodesc *crd, const struct swcr_data *sw, void *bufv,
86 exf = sw->sw_exf;
101 exf->reinit(sw->sw_kschedule, iv, 0);
103 exf->reinit(sw->sw_kschedule, 0, iv);
140 exf->reinit(sw->sw_kschedule, iv, 0);
150 exf->encrypt(sw->sw_kschedule, buf + i);
152 exf->decrypt(sw->sw_kschedule, buf + i);
165 exf->encrypt(sw->sw_kschedule, buf + i);
174 exf->decrypt(sw->sw_kschedule, buf + i);
208 exf->encrypt(sw->sw_kschedule,
211 exf->decrypt(sw->sw_kschedule,
219 exf->encrypt(sw->sw_kschedule, blk);
237 exf->decrypt(sw->sw_kschedule, blk);
286 exf->encrypt(sw->sw_kschedule,
289 exf->decrypt(sw->sw_kschedule,
297 exf->encrypt(sw->sw_kschedule, idat);
309 exf->decrypt(sw->sw_kschedule, idat);
351 exf->encrypt(sw->sw_kschedule,
354 exf->decrypt(sw->sw_kschedule,
362 exf->encrypt(sw->sw_kschedule, blk);
380 exf->decrypt(sw->sw_kschedule, blk);
420 exf->encrypt(sw->sw_kschedule,
423 exf->decrypt(sw->sw_kschedule,
431 exf->encrypt(sw->sw_kschedule, idat);
443 exf->decrypt(sw->sw_kschedule, idat);
473 const struct swcr_data *sw, void *buf, int outtype)
480 if (sw->sw_ictx == 0)
483 axf = sw->sw_axf;
485 memcpy(&ctx, sw->sw_ictx, axf->ctxsize);
511 switch (sw->sw_alg) {
521 if (sw->sw_octx == NULL)
525 memcpy(&ctx, sw->sw_octx, axf->ctxsize);
532 if (sw->sw_octx == NULL)
535 axf->Update(&ctx, sw->sw_octx, sw->sw_klen);
578 struct swcr_data *sw, *swa, *swe = NULL;
586 for (sw = swcr_sessions[crp->crp_sid & 0xffffffff];
587 sw && sw->sw_alg != crd->crd_alg;
588 sw = sw->sw_next)
590 if (sw == NULL)
593 switch (sw->sw_alg) {
596 swe = sw;
604 swa = sw;
707 swcr_compdec(struct cryptodesc *crd, const struct swcr_data *sw,
715 cxf = sw->sw_cxf;
743 sw->sw_alg == CRYPTO_DEFLATE_COMP_NOGROW &&
1146 struct swcr_data *sw;
1185 for (sw = swcr_sessions[lid];
1186 sw && sw->sw_alg != crd->crd_alg;
1187 sw = sw->sw_next)
1191 if (sw == NULL) {
1196 switch (sw->sw_alg) {
1205 if ((crp->crp_etype = swcr_encdec(crd, sw,
1227 if ((crp->crp_etype = swcr_authcompute(crp, crd, sw,
1243 DPRINTF(("swcr_process: compdec for %d\n", sw->sw_alg));
1244 if ((crp->crp_etype = swcr_compdec(crd, sw,