Home
last modified time | relevance | path

Searched refs:skcipher_request (Results 1 – 25 of 151) sorted by relevance

1234567

/linux/include/crypto/
H A Dskcipher.h40 struct skcipher_request { struct
154 int (*encrypt)(struct skcipher_request *req);
155 int (*decrypt)(struct skcipher_request *req);
156 int (*export)(struct skcipher_request *req, void *out);
157 int (*import)(struct skcipher_request *req, const void *in);
221 char __##name##_desc[sizeof(struct skcipher_request) + \
224 struct skcipher_request *name = \
225 (((struct skcipher_request *)__##name##_desc)->base.tfm = \
676 struct skcipher_request *req) in crypto_skcipher_reqtfm()
682 struct skcipher_request *req) in crypto_sync_skcipher_reqtfm()
[all …]
/linux/drivers/crypto/allwinner/sun4i-ss/
H A Dsun4i-ss.h187 struct skcipher_request fallback_req; // keep at the end
211 int sun4i_ss_cbc_aes_encrypt(struct skcipher_request *areq);
212 int sun4i_ss_cbc_aes_decrypt(struct skcipher_request *areq);
213 int sun4i_ss_ecb_aes_encrypt(struct skcipher_request *areq);
214 int sun4i_ss_ecb_aes_decrypt(struct skcipher_request *areq);
216 int sun4i_ss_cbc_des_encrypt(struct skcipher_request *areq);
217 int sun4i_ss_cbc_des_decrypt(struct skcipher_request *areq);
218 int sun4i_ss_ecb_des_encrypt(struct skcipher_request *areq);
219 int sun4i_ss_ecb_des_decrypt(struct skcipher_request *areq);
221 int sun4i_ss_cbc_des3_encrypt(struct skcipher_request *areq);
[all …]
H A Dsun4i-ss-cipher.c15 static int noinline_for_stack sun4i_ss_opti_poll(struct skcipher_request *areq) in sun4i_ss_opti_poll()
148 static int noinline_for_stack sun4i_ss_cipher_poll_fallback(struct skcipher_request *areq) in sun4i_ss_cipher_poll_fallback()
176 static int sun4i_ss_cipher_poll(struct skcipher_request *areq) in sun4i_ss_cipher_poll()
397 int sun4i_ss_cbc_aes_encrypt(struct skcipher_request *areq) in sun4i_ss_cbc_aes_encrypt()
408 int sun4i_ss_cbc_aes_decrypt(struct skcipher_request *areq) in sun4i_ss_cbc_aes_decrypt()
420 int sun4i_ss_ecb_aes_encrypt(struct skcipher_request *areq) in sun4i_ss_ecb_aes_encrypt()
431 int sun4i_ss_ecb_aes_decrypt(struct skcipher_request *areq) in sun4i_ss_ecb_aes_decrypt()
443 int sun4i_ss_cbc_des_encrypt(struct skcipher_request *areq) in sun4i_ss_cbc_des_encrypt()
454 int sun4i_ss_cbc_des_decrypt(struct skcipher_request *areq) in sun4i_ss_cbc_des_decrypt()
466 int sun4i_ss_ecb_des_encrypt(struct skcipher_request *areq) in sun4i_ss_ecb_des_encrypt()
[all …]
/linux/drivers/crypto/marvell/cesa/
H A Dcipher.c42 struct skcipher_request *req) in mv_cesa_skcipher_req_iter_init()
59 mv_cesa_skcipher_dma_cleanup(struct skcipher_request *req) in mv_cesa_skcipher_dma_cleanup()
75 static inline void mv_cesa_skcipher_cleanup(struct skcipher_request *req) in mv_cesa_skcipher_cleanup()
86 static void mv_cesa_skcipher_std_step(struct skcipher_request *req) in mv_cesa_skcipher_std_step()
126 static int mv_cesa_skcipher_std_process(struct skcipher_request *req, in mv_cesa_skcipher_std_process()
148 struct skcipher_request *skreq = skcipher_request_cast(req); in mv_cesa_skcipher_process()
160 struct skcipher_request *skreq = skcipher_request_cast(req); in mv_cesa_skcipher_step()
170 mv_cesa_skcipher_dma_prepare(struct skcipher_request *req) in mv_cesa_skcipher_dma_prepare()
179 mv_cesa_skcipher_std_prepare(struct skcipher_request *req) in mv_cesa_skcipher_std_prepare()
191 struct skcipher_request *skreq = skcipher_request_cast(req); in mv_cesa_skcipher_prepare()
[all …]
/linux/drivers/crypto/amcc/
H A Dcrypto4xx_core.h174 int crypto4xx_encrypt_ctr(struct skcipher_request *req);
175 int crypto4xx_decrypt_ctr(struct skcipher_request *req);
176 int crypto4xx_encrypt_iv_stream(struct skcipher_request *req);
177 int crypto4xx_decrypt_iv_stream(struct skcipher_request *req);
178 int crypto4xx_encrypt_iv_block(struct skcipher_request *req);
179 int crypto4xx_decrypt_iv_block(struct skcipher_request *req);
180 int crypto4xx_encrypt_noiv_block(struct skcipher_request *req);
181 int crypto4xx_decrypt_noiv_block(struct skcipher_request *req);
182 int crypto4xx_rfc3686_encrypt(struct skcipher_request *req);
183 int crypto4xx_rfc3686_decrypt(struct skcipher_request *req);
/linux/drivers/crypto/aspeed/
H A Daspeed-hace-crypto.c27 static int aspeed_crypto_do_fallback(struct skcipher_request *areq) in aspeed_crypto_do_fallback()
48 static bool aspeed_crypto_need_fallback(struct skcipher_request *areq) in aspeed_crypto_need_fallback()
67 struct skcipher_request *req) in aspeed_hace_crypto_handle_queue()
81 struct skcipher_request *req = skcipher_request_cast(areq); in aspeed_crypto_do_request()
104 struct skcipher_request *req; in aspeed_sk_complete()
133 struct skcipher_request *req; in aspeed_sk_transfer_sg()
154 struct skcipher_request *req; in aspeed_sk_transfer()
184 struct skcipher_request *req; in aspeed_sk_start()
225 struct skcipher_request *req; in aspeed_sk_start_sg()
368 struct skcipher_request *req; in aspeed_hace_skcipher_trigger()
[all …]
/linux/arch/x86/crypto/
H A Dsm4-avx.h10 int sm4_avx_ecb_encrypt(struct skcipher_request *req);
11 int sm4_avx_ecb_decrypt(struct skcipher_request *req);
13 int sm4_cbc_encrypt(struct skcipher_request *req);
14 int sm4_avx_cbc_decrypt(struct skcipher_request *req,
17 int sm4_avx_ctr_crypt(struct skcipher_request *req,
H A Dcast5_avx_glue.c33 static int ecb_encrypt(struct skcipher_request *req) in ecb_encrypt()
41 static int ecb_decrypt(struct skcipher_request *req) in ecb_decrypt()
49 static int cbc_encrypt(struct skcipher_request *req) in cbc_encrypt()
56 static int cbc_decrypt(struct skcipher_request *req) in cbc_decrypt()
H A Dcast6_avx_glue.c33 static int ecb_encrypt(struct skcipher_request *req) in ecb_encrypt()
41 static int ecb_decrypt(struct skcipher_request *req) in ecb_decrypt()
49 static int cbc_encrypt(struct skcipher_request *req) in cbc_encrypt()
56 static int cbc_decrypt(struct skcipher_request *req) in cbc_decrypt()
H A Dserpent_sse2_glue.c43 static int ecb_encrypt(struct skcipher_request *req) in ecb_encrypt()
51 static int ecb_decrypt(struct skcipher_request *req) in ecb_decrypt()
59 static int cbc_encrypt(struct skcipher_request *req) in cbc_encrypt()
66 static int cbc_decrypt(struct skcipher_request *req) in cbc_decrypt()
/linux/crypto/
H A Dxts.c38 struct skcipher_request subreq;
82 static int xts_xor_tweak(struct skcipher_request *req, bool second_pass, in xts_xor_tweak()
133 static int xts_xor_tweak_pre(struct skcipher_request *req, bool enc) in xts_xor_tweak_pre()
138 static int xts_xor_tweak_post(struct skcipher_request *req, bool enc) in xts_xor_tweak_post()
145 struct skcipher_request *req = data; in xts_cts_done()
159 static int xts_cts_final(struct skcipher_request *req, in xts_cts_final()
160 int (*crypt)(struct skcipher_request *req)) in xts_cts_final()
166 struct skcipher_request *subreq = &rctx->subreq; in xts_cts_final()
201 struct skcipher_request *req = data; in xts_encrypt_done()
221 struct skcipher_request *req = data; in xts_decrypt_done()
[all …]
H A Dcts.c62 struct skcipher_request subreq;
65 static inline u8 *crypto_cts_reqctx_space(struct skcipher_request *req) in crypto_cts_reqctx_space()
90 struct skcipher_request *req = data; in cts_cbc_crypt_done()
98 static int cts_cbc_encrypt(struct skcipher_request *req) in cts_cbc_encrypt()
102 struct skcipher_request *subreq = &rctx->subreq; in cts_cbc_encrypt()
130 struct skcipher_request *req = data; in crypto_cts_encrypt_done()
143 static int crypto_cts_encrypt(struct skcipher_request *req) in crypto_cts_encrypt()
148 struct skcipher_request *subreq = &rctx->subreq; in crypto_cts_encrypt()
179 static int cts_cbc_decrypt(struct skcipher_request *req) in cts_cbc_decrypt()
183 struct skcipher_request *subreq = &rctx->subreq; in cts_cbc_decrypt()
[all …]
H A Dlrw.c54 struct skcipher_request subreq;
140 static int lrw_xor_tweak(struct skcipher_request *req, bool second_pass) in lrw_xor_tweak()
198 static int lrw_xor_tweak_pre(struct skcipher_request *req) in lrw_xor_tweak_pre()
203 static int lrw_xor_tweak_post(struct skcipher_request *req) in lrw_xor_tweak_post()
210 struct skcipher_request *req = data; in lrw_crypt_done()
222 static void lrw_init_crypt(struct skcipher_request *req) in lrw_init_crypt()
227 struct skcipher_request *subreq = &rctx->subreq; in lrw_init_crypt()
243 static int lrw_encrypt(struct skcipher_request *req) in lrw_encrypt()
246 struct skcipher_request *subreq = &rctx->subreq; in lrw_encrypt()
254 static int lrw_decrypt(struct skcipher_request *req) in lrw_decrypt()
[all …]
H A Dpcbc.c20 static int crypto_pcbc_encrypt_segment(struct skcipher_request *req, in crypto_pcbc_encrypt_segment()
42 static int crypto_pcbc_encrypt_inplace(struct skcipher_request *req, in crypto_pcbc_encrypt_inplace()
64 static int crypto_pcbc_encrypt(struct skcipher_request *req) in crypto_pcbc_encrypt()
87 static int crypto_pcbc_decrypt_segment(struct skcipher_request *req, in crypto_pcbc_decrypt_segment()
109 static int crypto_pcbc_decrypt_inplace(struct skcipher_request *req, in crypto_pcbc_decrypt_inplace()
131 static int crypto_pcbc_decrypt(struct skcipher_request *req) in crypto_pcbc_decrypt()
/linux/arch/riscv/crypto/
H A Daes-riscv64-glue.c90 static inline int riscv64_aes_ecb_crypt(struct skcipher_request *req, bool enc) in riscv64_aes_ecb_crypt()
116 static int riscv64_aes_ecb_encrypt(struct skcipher_request *req) in riscv64_aes_ecb_encrypt()
121 static int riscv64_aes_ecb_decrypt(struct skcipher_request *req) in riscv64_aes_ecb_decrypt()
128 static int riscv64_aes_cbc_crypt(struct skcipher_request *req, bool enc) in riscv64_aes_cbc_crypt()
156 static int riscv64_aes_cbc_encrypt(struct skcipher_request *req) in riscv64_aes_cbc_encrypt()
161 static int riscv64_aes_cbc_decrypt(struct skcipher_request *req) in riscv64_aes_cbc_decrypt()
168 static int riscv64_aes_cbc_cts_crypt(struct skcipher_request *req, bool enc) in riscv64_aes_cbc_cts_crypt()
173 struct skcipher_request subreq; in riscv64_aes_cbc_cts_crypt()
220 static int riscv64_aes_cbc_cts_encrypt(struct skcipher_request *req) in riscv64_aes_cbc_cts_encrypt()
225 static int riscv64_aes_cbc_cts_decrypt(struct skcipher_request *req) in riscv64_aes_cbc_cts_decrypt()
[all …]
/linux/drivers/crypto/rockchip/
H A Drk3288_crypto_skcipher.c23 static int rk_cipher_need_fallback(struct skcipher_request *req) in rk_cipher_need_fallback()
68 static int rk_cipher_fallback(struct skcipher_request *areq) in rk_cipher_fallback()
91 static int rk_cipher_handle_req(struct skcipher_request *req) in rk_cipher_handle_req()
155 static int rk_aes_ecb_encrypt(struct skcipher_request *req) in rk_aes_ecb_encrypt()
163 static int rk_aes_ecb_decrypt(struct skcipher_request *req) in rk_aes_ecb_decrypt()
171 static int rk_aes_cbc_encrypt(struct skcipher_request *req) in rk_aes_cbc_encrypt()
179 static int rk_aes_cbc_decrypt(struct skcipher_request *req) in rk_aes_cbc_decrypt()
187 static int rk_des_ecb_encrypt(struct skcipher_request *req) in rk_des_ecb_encrypt()
195 static int rk_des_ecb_decrypt(struct skcipher_request *req) in rk_des_ecb_decrypt()
203 static int rk_des_cbc_encrypt(struct skcipher_request *req) in rk_des_cbc_encrypt()
[all …]
/linux/arch/s390/crypto/
H A Ddes_s390.c89 static int ecb_desall_crypt(struct skcipher_request *req, unsigned long fc) in ecb_desall_crypt()
108 static int cbc_desall_crypt(struct skcipher_request *req, unsigned long fc) in cbc_desall_crypt()
136 static int ecb_des_encrypt(struct skcipher_request *req) in ecb_des_encrypt()
141 static int ecb_des_decrypt(struct skcipher_request *req) in ecb_des_decrypt()
160 static int cbc_des_encrypt(struct skcipher_request *req) in cbc_des_encrypt()
165 static int cbc_des_decrypt(struct skcipher_request *req) in cbc_des_decrypt()
254 static int ecb_des3_encrypt(struct skcipher_request *req) in ecb_des3_encrypt()
259 static int ecb_des3_decrypt(struct skcipher_request *req) in ecb_des3_decrypt()
278 static int cbc_des3_encrypt(struct skcipher_request *req) in cbc_des3_encrypt()
283 static int cbc_des3_decrypt(struct skcipher_request *req) in cbc_des3_decrypt()
[all …]
/linux/arch/powerpc/crypto/
H A Daes-spe-glue.c132 static int ppc_ecb_crypt(struct skcipher_request *req, bool enc) in ppc_ecb_crypt()
161 static int ppc_ecb_encrypt(struct skcipher_request *req) in ppc_ecb_encrypt()
166 static int ppc_ecb_decrypt(struct skcipher_request *req) in ppc_ecb_decrypt()
171 static int ppc_cbc_crypt(struct skcipher_request *req, bool enc) in ppc_cbc_crypt()
202 static int ppc_cbc_encrypt(struct skcipher_request *req) in ppc_cbc_encrypt()
207 static int ppc_cbc_decrypt(struct skcipher_request *req) in ppc_cbc_decrypt()
212 static int ppc_ctr_crypt(struct skcipher_request *req) in ppc_ctr_crypt()
238 static int ppc_xts_crypt(struct skcipher_request *req, bool enc) in ppc_xts_crypt()
272 static int ppc_xts_encrypt(struct skcipher_request *req) in ppc_xts_encrypt()
278 struct skcipher_request subreq; in ppc_xts_encrypt()
[all …]
H A Daes_cbc.c42 crypto_skcipher_set_reqsize(tfm, sizeof(struct skcipher_request) + in p8_aes_cbc_init()
75 static int p8_aes_cbc_crypt(struct skcipher_request *req, int enc) in p8_aes_cbc_crypt()
84 struct skcipher_request *subreq = skcipher_request_ctx(req); in p8_aes_cbc_crypt()
111 static int p8_aes_cbc_encrypt(struct skcipher_request *req) in p8_aes_cbc_encrypt()
116 static int p8_aes_cbc_decrypt(struct skcipher_request *req) in p8_aes_cbc_decrypt()
H A Daes_xts.c44 crypto_skcipher_set_reqsize(tfm, sizeof(struct skcipher_request) + in p8_aes_xts_init()
82 static int p8_aes_xts_crypt(struct skcipher_request *req, int enc) in p8_aes_xts_crypt()
95 struct skcipher_request *subreq = skcipher_request_ctx(req); in p8_aes_xts_crypt()
140 static int p8_aes_xts_encrypt(struct skcipher_request *req) in p8_aes_xts_encrypt()
145 static int p8_aes_xts_decrypt(struct skcipher_request *req) in p8_aes_xts_decrypt()
/linux/arch/sparc/crypto/
H A Ddes_glue.c94 static int __ecb_crypt(struct skcipher_request *req, bool encrypt) in __ecb_crypt()
119 static int ecb_encrypt(struct skcipher_request *req) in ecb_encrypt()
124 static int ecb_decrypt(struct skcipher_request *req) in ecb_decrypt()
135 static int __cbc_crypt(struct skcipher_request *req, bool encrypt) in __cbc_crypt()
170 static int cbc_encrypt(struct skcipher_request *req) in cbc_encrypt()
175 static int cbc_decrypt(struct skcipher_request *req) in cbc_decrypt()
243 static int __ecb3_crypt(struct skcipher_request *req, bool encrypt) in __ecb3_crypt()
271 static int ecb3_encrypt(struct skcipher_request *req) in ecb3_encrypt()
276 static int ecb3_decrypt(struct skcipher_request *req) in ecb3_decrypt()
289 static int __cbc3_crypt(struct skcipher_request *req, bool encrypt) in __cbc3_crypt()
[all …]
/linux/drivers/crypto/cavium/nitrox/
H A Dnitrox_skcipher.c51 static void free_src_sglist(struct skcipher_request *skreq) in free_src_sglist()
58 static void free_dst_sglist(struct skcipher_request *skreq) in free_dst_sglist()
67 struct skcipher_request *skreq = arg; in nitrox_skcipher_callback()
81 struct skcipher_request *skreq = arg; in nitrox_cbc_cipher_callback()
208 static int alloc_src_sglist(struct skcipher_request *skreq, int ivsize) in alloc_src_sglist()
226 static int alloc_dst_sglist(struct skcipher_request *skreq, int ivsize) in alloc_dst_sglist()
247 static int nitrox_skcipher_crypt(struct skcipher_request *skreq, bool enc) in nitrox_skcipher_crypt()
290 static int nitrox_cbc_decrypt(struct skcipher_request *skreq) in nitrox_cbc_decrypt()
310 static int nitrox_aes_encrypt(struct skcipher_request *skreq) in nitrox_aes_encrypt()
315 static int nitrox_aes_decrypt(struct skcipher_request *skreq) in nitrox_aes_decrypt()
[all …]
/linux/arch/arm64/crypto/
H A Dsm4-ce-glue.c106 static int sm4_ecb_do_crypt(struct skcipher_request *req, const u32 *rkey) in sm4_ecb_do_crypt()
133 static int sm4_ecb_encrypt(struct skcipher_request *req) in sm4_ecb_encrypt()
141 static int sm4_ecb_decrypt(struct skcipher_request *req) in sm4_ecb_decrypt()
149 static int sm4_cbc_crypt(struct skcipher_request *req, in sm4_cbc_crypt()
183 static int sm4_cbc_encrypt(struct skcipher_request *req) in sm4_cbc_encrypt()
191 static int sm4_cbc_decrypt(struct skcipher_request *req) in sm4_cbc_decrypt()
199 static int sm4_cbc_cts_crypt(struct skcipher_request *req, bool encrypt) in sm4_cbc_cts_crypt()
206 struct skcipher_request subreq; in sm4_cbc_cts_crypt()
259 static int sm4_cbc_cts_encrypt(struct skcipher_request *req) in sm4_cbc_cts_encrypt()
264 static int sm4_cbc_cts_decrypt(struct skcipher_request *req) in sm4_cbc_cts_decrypt()
[all …]
/linux/arch/arm/crypto/
H A Daes-ce-glue.c165 static int ecb_encrypt(struct skcipher_request *req) in ecb_encrypt()
185 static int ecb_decrypt(struct skcipher_request *req) in ecb_decrypt()
205 static int cbc_encrypt_walk(struct skcipher_request *req, in cbc_encrypt_walk()
224 static int cbc_encrypt(struct skcipher_request *req) in cbc_encrypt()
235 static int cbc_decrypt_walk(struct skcipher_request *req, in cbc_decrypt_walk()
254 static int cbc_decrypt(struct skcipher_request *req) in cbc_decrypt()
265 static int cts_cbc_encrypt(struct skcipher_request *req) in cts_cbc_encrypt()
272 struct skcipher_request subreq; in cts_cbc_encrypt()
323 static int cts_cbc_decrypt(struct skcipher_request *req) in cts_cbc_decrypt()
330 struct skcipher_request subreq; in cts_cbc_decrypt()
[all …]
H A Daes-neonbs-glue.c79 static int __ecb_crypt(struct skcipher_request *req, in __ecb_crypt()
108 static int ecb_encrypt(struct skcipher_request *req) in ecb_encrypt()
113 static int ecb_decrypt(struct skcipher_request *req) in ecb_decrypt()
142 static int cbc_encrypt(struct skcipher_request *req) in cbc_encrypt()
171 static int cbc_decrypt(struct skcipher_request *req) in cbc_decrypt()
199 static int ctr_encrypt(struct skcipher_request *req) in ctr_encrypt()
255 static int __xts_crypt(struct skcipher_request *req, bool encrypt, in __xts_crypt()
263 struct skcipher_request subreq; in __xts_crypt()
328 static int xts_encrypt(struct skcipher_request *req) in xts_encrypt()
333 static int xts_decrypt(struct skcipher_request *req) in xts_decrypt()

1234567