Lines Matching refs:cop
159 struct crypt_op *cop; in cryptof_ioctl() local
299 cop = (struct crypt_op *)data; in cryptof_ioctl()
300 cse = csefind(fcr, cop->ses); in cryptof_ioctl()
303 error = cryptodev_op(cse, cop, p); in cryptof_ioctl()
318 cryptodev_op(struct csession *cse, struct crypt_op *cop, struct proc *p) in cryptodev_op() argument
325 if (cop->len > 64*1024-4) in cryptodev_op()
328 if (cse->txform && (cop->len % cse->txform->blocksize) != 0) { in cryptodev_op()
340 cse->uio.uio_iov[0].iov_len = cop->len; in cryptodev_op()
341 cse->uio.uio_iov[0].iov_base = malloc(cop->len, M_XDATA, M_WAITOK); in cryptodev_op()
364 if ((error = copyin(cop->src, cse->uio.uio_iov[0].iov_base, cop->len))) in cryptodev_op()
369 crda->crd_len = cop->len; in cryptodev_op()
378 if (cop->op == COP_ENCRYPT) in cryptodev_op()
382 crde->crd_len = cop->len; in cryptodev_op()
390 crp->crp_ilen = cop->len; in cryptodev_op()
396 if (cop->iv) { in cryptodev_op()
405 if ((error = copyin(cop->iv, cse->tmp_iv, cse->txform->blocksize))) in cryptodev_op()
418 if (cop->mac) { in cryptodev_op()
466 if (cop->dst && in cryptodev_op()
467 (error = copyout(cse->uio.uio_iov[0].iov_base, cop->dst, cop->len))) in cryptodev_op()
470 if (cop->mac && in cryptodev_op()
471 (error = copyout(crp->crp_mac, cop->mac, cse->thash->authsize))) in cryptodev_op()