MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ccp_blkcipher_done

Function ccp_blkcipher_done

freebsd/crypto/ccp/ccp_hardware.c:1332–1349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1330}
1331
1332static void
1333ccp_blkcipher_done(struct ccp_queue *qp, struct ccp_session *s, void *vcrp,
1334 int error)
1335{
1336 struct cryptop *crp;
1337
1338 explicit_bzero(&s->blkcipher.iv, sizeof(s->blkcipher.iv));
1339
1340 crp = vcrp;
1341
1342 s->pending--;
1343
1344 if (error != 0)
1345 crp->crp_etype = error;
1346
1347 DPRINTF(qp->cq_softc->dev, "%s: qp=%p crp=%p\n", __func__, qp, crp);
1348 crypto_done(crp);
1349}
1350
1351static void
1352ccp_collect_iv(struct cryptop *crp, const struct crypto_session_params *csp,

Callers

nothing calls this directly

Calls 2

explicit_bzeroFunction · 0.85
crypto_doneFunction · 0.85

Tested by

no test coverage detected