Home | History | Annotate | Download | only in opencrypto

Lines Matching refs:crp

465 swcr_authcompute(struct cryptop *crp, struct cryptodesc *crd,
551 memcpy(crp->crp_mac, aalg, axf->auth_hash->authsize);
563 swcr_combined(struct cryptop *crp, int outtype)
574 void *buf = (void *)crp->crp_buf;
578 for (crd = crp->crp_desc; crd; crd = crd->crd_next) {
579 for (sw = swcr_sessions[crp->crp_sid & 0xffffffff];
691 memcpy(crp->crp_mac, aalg, axf->auth_hash->authsize);
1141 swcr_process(void *arg, struct cryptop *crp, int hint)
1149 if (crp == NULL)
1152 if (crp->crp_desc == NULL || crp->crp_buf == NULL) {
1153 crp->crp_etype = EINVAL;
1157 lid = crp->crp_sid & 0xffffffff;
1159 crp->crp_etype = ENOENT;
1163 if (crp->crp_flags & CRYPTO_F_IMBUF) {
1165 } else if (crp->crp_flags & CRYPTO_F_IOV) {
1172 for (crd = crp->crp_desc; crd; crd = crd->crd_next) {
1190 crp->crp_etype = EINVAL;
1203 if ((crp->crp_etype = swcr_encdec(crd, sw,
1204 crp->crp_buf, type)) != 0)
1208 crp->crp_etype = 0;
1225 if ((crp->crp_etype = swcr_authcompute(crp, crd, sw,
1226 crp->crp_buf, type)) != 0)
1235 crp->crp_etype = swcr_combined(crp, type);
1242 if ((crp->crp_etype = swcr_compdec(crd, sw,
1243 crp->crp_buf, type, &crp->crp_olen)) != 0)
1249 crp->crp_etype = EINVAL;
1255 DPRINTF("request %p done\n", crp);
1256 crypto_done(crp);