Home
last modified time | relevance | path

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

1234567

/linux-6.1.9/include/crypto/
Dskcipher.h28 struct skcipher_request { struct
111 int (*encrypt)(struct skcipher_request *req);
112 int (*decrypt)(struct skcipher_request *req);
131 char __##name##_desc[sizeof(struct skcipher_request) + \
136 struct skcipher_request *name = (void *)__##name##_desc
399 struct skcipher_request *req) in crypto_skcipher_reqtfm()
405 struct skcipher_request *req) in crypto_sync_skcipher_reqtfm()
423 int crypto_skcipher_encrypt(struct skcipher_request *req);
436 int crypto_skcipher_decrypt(struct skcipher_request *req);
468 static inline void skcipher_request_set_tfm(struct skcipher_request *req, in skcipher_request_set_tfm()
[all …]
/linux-6.1.9/drivers/crypto/allwinner/sun4i-ss/
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 …]
/linux-6.1.9/arch/x86/crypto/
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_cfb_encrypt(struct skcipher_request *req);
18 int sm4_avx_cfb_decrypt(struct skcipher_request *req,
21 int sm4_avx_ctr_crypt(struct skcipher_request *req,
Dcast5_avx_glue.c34 static int ecb_encrypt(struct skcipher_request *req) in ecb_encrypt()
42 static int ecb_decrypt(struct skcipher_request *req) in ecb_decrypt()
50 static int cbc_encrypt(struct skcipher_request *req) in cbc_encrypt()
57 static int cbc_decrypt(struct skcipher_request *req) in cbc_decrypt()
Dcast6_avx_glue.c34 static int ecb_encrypt(struct skcipher_request *req) in ecb_encrypt()
42 static int ecb_decrypt(struct skcipher_request *req) in ecb_decrypt()
50 static int cbc_encrypt(struct skcipher_request *req) in cbc_encrypt()
57 static int cbc_decrypt(struct skcipher_request *req) in cbc_decrypt()
Dserpent_avx_glue.c41 static int ecb_encrypt(struct skcipher_request *req) in ecb_encrypt()
49 static int ecb_decrypt(struct skcipher_request *req) in ecb_decrypt()
57 static int cbc_encrypt(struct skcipher_request *req) in cbc_encrypt()
64 static int cbc_decrypt(struct skcipher_request *req) in cbc_decrypt()
Dserpent_sse2_glue.c44 static int ecb_encrypt(struct skcipher_request *req) in ecb_encrypt()
52 static int ecb_decrypt(struct skcipher_request *req) in ecb_decrypt()
60 static int cbc_encrypt(struct skcipher_request *req) in cbc_encrypt()
67 static int cbc_decrypt(struct skcipher_request *req) in cbc_decrypt()
Dsm4_aesni_avx_glue.c41 static int ecb_do_crypt(struct skcipher_request *req, const u32 *rkey) in ecb_do_crypt()
75 int sm4_avx_ecb_encrypt(struct skcipher_request *req) in sm4_avx_ecb_encrypt()
84 int sm4_avx_ecb_decrypt(struct skcipher_request *req) in sm4_avx_ecb_decrypt()
93 int sm4_cbc_encrypt(struct skcipher_request *req) in sm4_cbc_encrypt()
126 int sm4_avx_cbc_decrypt(struct skcipher_request *req, in sm4_avx_cbc_decrypt()
185 static int cbc_decrypt(struct skcipher_request *req) in cbc_decrypt()
191 int sm4_cfb_encrypt(struct skcipher_request *req) in sm4_cfb_encrypt()
232 int sm4_avx_cfb_decrypt(struct skcipher_request *req, in sm4_avx_cfb_decrypt()
295 static int cfb_decrypt(struct skcipher_request *req) in cfb_decrypt()
301 int sm4_avx_ctr_crypt(struct skcipher_request *req, in sm4_avx_ctr_crypt()
[all …]
Dtwofish_avx_glue.c41 static int ecb_encrypt(struct skcipher_request *req) in ecb_encrypt()
50 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-6.1.9/drivers/crypto/marvell/cesa/
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()
83 static void mv_cesa_skcipher_std_step(struct skcipher_request *req) in mv_cesa_skcipher_std_step()
123 static int mv_cesa_skcipher_std_process(struct skcipher_request *req, in mv_cesa_skcipher_std_process()
145 struct skcipher_request *skreq = skcipher_request_cast(req); in mv_cesa_skcipher_process()
157 struct skcipher_request *skreq = skcipher_request_cast(req); in mv_cesa_skcipher_step()
167 mv_cesa_skcipher_dma_prepare(struct skcipher_request *req) in mv_cesa_skcipher_dma_prepare()
176 mv_cesa_skcipher_std_prepare(struct skcipher_request *req) in mv_cesa_skcipher_std_prepare()
188 struct skcipher_request *skreq = skcipher_request_cast(req); in mv_cesa_skcipher_prepare()
[all …]
/linux-6.1.9/drivers/crypto/aspeed/
Daspeed-hace-crypto.c16 static int aspeed_crypto_do_fallback(struct skcipher_request *areq) in aspeed_crypto_do_fallback()
37 static bool aspeed_crypto_need_fallback(struct skcipher_request *areq) in aspeed_crypto_need_fallback()
56 struct skcipher_request *req) in aspeed_hace_crypto_handle_queue()
70 struct skcipher_request *req = skcipher_request_cast(areq); in aspeed_crypto_do_request()
93 struct skcipher_request *req; in aspeed_sk_complete()
122 struct skcipher_request *req; in aspeed_sk_transfer_sg()
143 struct skcipher_request *req; in aspeed_sk_transfer()
173 struct skcipher_request *req; in aspeed_sk_start()
214 struct skcipher_request *req; in aspeed_sk_start_sg()
357 struct skcipher_request *req; in aspeed_hace_skcipher_trigger()
[all …]
/linux-6.1.9/drivers/crypto/amcc/
Dcrypto4xx_core.h175 int crypto4xx_encrypt_ctr(struct skcipher_request *req);
176 int crypto4xx_decrypt_ctr(struct skcipher_request *req);
177 int crypto4xx_encrypt_iv_stream(struct skcipher_request *req);
178 int crypto4xx_decrypt_iv_stream(struct skcipher_request *req);
179 int crypto4xx_encrypt_iv_block(struct skcipher_request *req);
180 int crypto4xx_decrypt_iv_block(struct skcipher_request *req);
181 int crypto4xx_encrypt_noiv_block(struct skcipher_request *req);
182 int crypto4xx_decrypt_noiv_block(struct skcipher_request *req);
183 int crypto4xx_rfc3686_encrypt(struct skcipher_request *req);
184 int crypto4xx_rfc3686_decrypt(struct skcipher_request *req);
/linux-6.1.9/crypto/
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 = areq->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 = areq->data; in xts_encrypt_done()
221 struct skcipher_request *req = areq->data; in xts_decrypt_done()
[all …]
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 = areq->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 = areq->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 …]
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 = areq->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 …]
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-6.1.9/drivers/crypto/rockchip/
Drk3288_crypto_skcipher.c17 static int rk_cipher_need_fallback(struct skcipher_request *req) in rk_cipher_need_fallback()
55 static int rk_cipher_fallback(struct skcipher_request *areq) in rk_cipher_fallback()
75 struct skcipher_request *req) in rk_handle_req()
132 static int rk_aes_ecb_encrypt(struct skcipher_request *req) in rk_aes_ecb_encrypt()
143 static int rk_aes_ecb_decrypt(struct skcipher_request *req) in rk_aes_ecb_decrypt()
154 static int rk_aes_cbc_encrypt(struct skcipher_request *req) in rk_aes_cbc_encrypt()
165 static int rk_aes_cbc_decrypt(struct skcipher_request *req) in rk_aes_cbc_decrypt()
176 static int rk_des_ecb_encrypt(struct skcipher_request *req) in rk_des_ecb_encrypt()
187 static int rk_des_ecb_decrypt(struct skcipher_request *req) in rk_des_ecb_decrypt()
198 static int rk_des_cbc_encrypt(struct skcipher_request *req) in rk_des_cbc_encrypt()
[all …]
/linux-6.1.9/arch/s390/crypto/
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-6.1.9/drivers/crypto/vmx/
Daes_cbc.c38 crypto_skcipher_set_reqsize(tfm, sizeof(struct skcipher_request) + in p8_aes_cbc_init()
71 static int p8_aes_cbc_crypt(struct skcipher_request *req, int enc) in p8_aes_cbc_crypt()
80 struct skcipher_request *subreq = skcipher_request_ctx(req); in p8_aes_cbc_crypt()
107 static int p8_aes_cbc_encrypt(struct skcipher_request *req) in p8_aes_cbc_encrypt()
112 static int p8_aes_cbc_decrypt(struct skcipher_request *req) in p8_aes_cbc_decrypt()
Daes_xts.c40 crypto_skcipher_set_reqsize(tfm, sizeof(struct skcipher_request) + in p8_aes_xts_init()
78 static int p8_aes_xts_crypt(struct skcipher_request *req, int enc) in p8_aes_xts_crypt()
91 struct skcipher_request *subreq = skcipher_request_ctx(req); in p8_aes_xts_crypt()
136 static int p8_aes_xts_encrypt(struct skcipher_request *req) in p8_aes_xts_encrypt()
141 static int p8_aes_xts_decrypt(struct skcipher_request *req) in p8_aes_xts_decrypt()
/linux-6.1.9/arch/sparc/crypto/
Ddes_glue.c95 static int __ecb_crypt(struct skcipher_request *req, bool encrypt) in __ecb_crypt()
120 static int ecb_encrypt(struct skcipher_request *req) in ecb_encrypt()
125 static int ecb_decrypt(struct skcipher_request *req) in ecb_decrypt()
136 static int __cbc_crypt(struct skcipher_request *req, bool encrypt) in __cbc_crypt()
171 static int cbc_encrypt(struct skcipher_request *req) in cbc_encrypt()
176 static int cbc_decrypt(struct skcipher_request *req) in cbc_decrypt()
244 static int __ecb3_crypt(struct skcipher_request *req, bool encrypt) in __ecb3_crypt()
272 static int ecb3_encrypt(struct skcipher_request *req) in ecb3_encrypt()
277 static int ecb3_decrypt(struct skcipher_request *req) in ecb3_decrypt()
290 static int __cbc3_crypt(struct skcipher_request *req, bool encrypt) in __cbc3_crypt()
[all …]
/linux-6.1.9/drivers/crypto/cavium/nitrox/
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-6.1.9/include/crypto/internal/
Dskcipher.h87 static inline void skcipher_request_complete(struct skcipher_request *req, int err) in skcipher_request_complete()
134 struct skcipher_request *req,
137 struct skcipher_request *req);
154 static inline void *skcipher_request_ctx(struct skcipher_request *req) in skcipher_request_ctx()
159 static inline u32 skcipher_request_flags(struct skcipher_request *req) in skcipher_request_flags()
/linux-6.1.9/arch/arm/crypto/
Daes-neonbs-glue.c88 static int __ecb_crypt(struct skcipher_request *req, in __ecb_crypt()
117 static int ecb_encrypt(struct skcipher_request *req) in ecb_encrypt()
122 static int ecb_decrypt(struct skcipher_request *req) in ecb_decrypt()
148 static int cbc_encrypt(struct skcipher_request *req) in cbc_encrypt()
150 struct skcipher_request *subreq = skcipher_request_ctx(req); in cbc_encrypt()
164 static int cbc_decrypt(struct skcipher_request *req) in cbc_decrypt()
202 reqsize = sizeof(struct skcipher_request); in cbc_init()
235 static int ctr_encrypt(struct skcipher_request *req) in ctr_encrypt()
285 static int ctr_encrypt_sync(struct skcipher_request *req) in ctr_encrypt_sync()
337 static int __xts_crypt(struct skcipher_request *req, bool encrypt, in __xts_crypt()
[all …]
/linux-6.1.9/arch/powerpc/crypto/
Daes-spe-glue.c180 static int ppc_ecb_crypt(struct skcipher_request *req, bool enc) in ppc_ecb_crypt()
209 static int ppc_ecb_encrypt(struct skcipher_request *req) in ppc_ecb_encrypt()
214 static int ppc_ecb_decrypt(struct skcipher_request *req) in ppc_ecb_decrypt()
219 static int ppc_cbc_crypt(struct skcipher_request *req, bool enc) in ppc_cbc_crypt()
250 static int ppc_cbc_encrypt(struct skcipher_request *req) in ppc_cbc_encrypt()
255 static int ppc_cbc_decrypt(struct skcipher_request *req) in ppc_cbc_decrypt()
260 static int ppc_ctr_crypt(struct skcipher_request *req) in ppc_ctr_crypt()
286 static int ppc_xts_crypt(struct skcipher_request *req, bool enc) in ppc_xts_crypt()
320 static int ppc_xts_encrypt(struct skcipher_request *req) in ppc_xts_encrypt()
326 struct skcipher_request subreq; in ppc_xts_encrypt()
[all …]

1234567