Searched refs:kcop (Results 1 – 4 of 4) sorted by relevance
| /OK3568_Linux_fs/kernel/drivers/crypto/rockchip/cryptodev_linux/ |
| H A D | rk_cryptodev.c | 111 static int fill_kcop_fd_from_cop(struct kernel_crypt_fd_op *kcop, struct fcrypt *fcr) in fill_kcop_fd_from_cop() argument 113 struct crypt_fd_op *cop = &kcop->cop; in fill_kcop_fd_from_cop() 123 kcop->ivlen = cop->iv ? ses_ptr->cdata.ivsize : 0; in fill_kcop_fd_from_cop() 124 kcop->digestsize = 0; /* will be updated during operation */ in fill_kcop_fd_from_cop() 128 kcop->task = current; in fill_kcop_fd_from_cop() 129 kcop->mm = current->mm; in fill_kcop_fd_from_cop() 132 rc = copy_from_user(kcop->iv, cop->iv, kcop->ivlen); in fill_kcop_fd_from_cop() 135 kcop->ivlen, rc, cop->iv); in fill_kcop_fd_from_cop() 145 static int fill_cop_fd_from_kcop(struct kernel_crypt_fd_op *kcop, struct fcrypt *fcr) in fill_cop_fd_from_kcop() argument 149 if (kcop->digestsize) { in fill_cop_fd_from_kcop() [all …]
|
| H A D | ioctl.c | 78 struct kernel_crypt_op kcop; member 553 item->result = crypto_run(&pcr->fcrypt, &item->kcop); in cryptask_routine() 693 static int crypto_async_run(struct crypt_priv *pcr, struct kernel_crypt_op *kcop) in crypto_async_run() argument 697 if (unlikely(kcop->cop.flags & COP_FLAG_NO_ZC)) in crypto_async_run() 720 memcpy(&item->kcop, kcop, sizeof(struct kernel_crypt_op)); in crypto_async_run() 736 struct kernel_crypt_op *kcop) in crypto_async_fetch() argument 750 memcpy(kcop, &item->kcop, sizeof(struct kernel_crypt_op)); in crypto_async_fetch() 765 static int fill_kcop_from_cop(struct kernel_crypt_op *kcop, struct fcrypt *fcr) in fill_kcop_from_cop() argument 767 struct crypt_op *cop = &kcop->cop; in fill_kcop_from_cop() 777 kcop->ivlen = cop->iv ? ses_ptr->cdata.ivsize : 0; in fill_kcop_from_cop() [all …]
|
| H A D | main.c | 164 __crypto_run_zc(struct csession *ses_ptr, struct kernel_crypt_op *kcop) in __crypto_run_zc() argument 167 struct crypt_op *cop = &kcop->cop; in __crypto_run_zc() 171 kcop->task, kcop->mm, &src_sg, &dst_sg); in __crypto_run_zc() 183 int crypto_run(struct fcrypt *fcr, struct kernel_crypt_op *kcop) in crypto_run() argument 186 struct crypt_op *cop = &kcop->cop; in crypto_run() 219 cryptodev_cipher_set_iv(&ses_ptr->cdata, kcop->iv, in crypto_run() 220 min(ses_ptr->cdata.ivsize, kcop->ivlen)); in crypto_run() 239 ret = __crypto_run_std(ses_ptr, &kcop->cop); in crypto_run() 241 ret = __crypto_run_zc(ses_ptr, kcop); in crypto_run() 247 cryptodev_cipher_get_iv(&ses_ptr->cdata, kcop->iv, in crypto_run() [all …]
|
| H A D | cryptodev.h | 150 int cryptodev_kcaop_from_user(struct kernel_crypt_auth_op *kcop, 155 int crypto_run(struct fcrypt *fcr, struct kernel_crypt_op *kcop);
|