Home
last modified time | relevance | path

Searched refs:kcaop (Results 1 – 4 of 4) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/crypto/rockchip/cryptodev_linux/
H A Dauthenc.c53 static int get_userbuf_tls(struct csession *ses, struct kernel_crypt_auth_op *kcaop, in get_userbuf_tls() argument
57 struct crypt_auth_op *caop = &kcaop->caop; in get_userbuf_tls()
69 if (kcaop->dst_len == 0) { in get_userbuf_tls()
74 pagecount = PAGECOUNT(caop->dst, kcaop->dst_len); in get_userbuf_tls()
83 rc = __cryptodev_get_userbuf(caop->dst, kcaop->dst_len, 1, pagecount, in get_userbuf_tls()
84 ses->pages, ses->sg, kcaop->task, kcaop->mm); in get_userbuf_tls()
104 static int get_userbuf_srtp(struct csession *ses, struct kernel_crypt_auth_op *kcaop, in get_userbuf_srtp() argument
109 struct crypt_auth_op *caop = &kcaop->caop; in get_userbuf_srtp()
126 if (unlikely(kcaop->dst_len == 0 || caop->auth_len == 0)) { in get_userbuf_srtp()
150 ses->pages, ses->sg, kcaop->task, kcaop->mm); in get_userbuf_srtp()
[all …]
H A Drk_cryptodev.c749 static int rk_auth_fd_n_crypt(struct csession *ses_ptr, struct kernel_crypt_auth_fd_op *kcaop, in rk_auth_fd_n_crypt() argument
755 struct crypt_auth_fd_op *caop = &kcaop->caop; in rk_auth_fd_n_crypt()
803 struct kernel_crypt_auth_fd_op *kcaop) in crypto_auth_fd_zc_rk() argument
805 struct crypt_auth_fd_op *caop = &kcaop->caop; in crypto_auth_fd_zc_rk()
900 ret = rk_auth_fd_n_crypt(ses_ptr, kcaop, NULL, caop->auth_len, in crypto_auth_fd_zc_rk()
903 ret = rk_auth_fd_n_crypt(ses_ptr, kcaop, NULL, caop->auth_len, in crypto_auth_fd_zc_rk()
907 ret = copy_to_user(u64_to_user_ptr((u64)kcaop->caop.tag), tag_buf, caop->tag_len); in crypto_auth_fd_zc_rk()
934 struct kernel_crypt_auth_fd_op *kcaop) in __crypto_auth_fd_run_zc() argument
936 struct crypt_auth_fd_op *caop = &kcaop->caop; in __crypto_auth_fd_run_zc()
940 ret = crypto_auth_fd_zc_rk(fcr, ses_ptr, kcaop); in __crypto_auth_fd_run_zc()
[all …]
H A Dcryptodev.h145 int compat_kcaop_to_user(struct kernel_crypt_auth_op *kcaop,
147 int compat_kcaop_from_user(struct kernel_crypt_auth_op *kcaop,
152 int cryptodev_kcaop_to_user(struct kernel_crypt_auth_op *kcaop,
154 int crypto_auth_run(struct fcrypt *fcr, struct kernel_crypt_auth_op *kcaop);
H A Dioctl.c932 struct kernel_crypt_auth_op kcaop; in cryptodev_ioctl() local
1012 if (unlikely(ret = cryptodev_kcaop_from_user(&kcaop, fcr, arg))) { in cryptodev_ioctl()
1017 ret = crypto_auth_run(fcr, &kcaop); in cryptodev_ioctl()
1022 return cryptodev_kcaop_to_user(&kcaop, fcr, arg); in cryptodev_ioctl()
1139 struct kernel_crypt_auth_op kcaop; in cryptodev_compat_ioctl() local
1184 ret = compat_kcaop_from_user(&kcaop, fcr, arg); in cryptodev_compat_ioctl()
1190 ret = crypto_auth_run(fcr, &kcaop); in cryptodev_compat_ioctl()
1195 return compat_kcaop_to_user(&kcaop, fcr, arg); in cryptodev_compat_ioctl()