Home
last modified time | relevance | path

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

1234

/Linux-v5.4/include/crypto/
Dskcipher.h24 struct skcipher_request { struct
40 int (*encrypt)(struct skcipher_request *req); argument
41 int (*decrypt)(struct skcipher_request *req);
114 int (*encrypt)(struct skcipher_request *req);
115 int (*decrypt)(struct skcipher_request *req);
134 char __##name##_desc[sizeof(struct skcipher_request) + \
139 struct skcipher_request *name = (void *)__##name##_desc
398 struct skcipher_request *req) in crypto_skcipher_reqtfm()
404 struct skcipher_request *req) in crypto_sync_skcipher_reqtfm()
422 int crypto_skcipher_encrypt(struct skcipher_request *req);
[all …]
/Linux-v5.4/drivers/crypto/sunxi-ss/
Dsun4i-ss.h190 int sun4i_ss_cbc_aes_encrypt(struct skcipher_request *areq);
191 int sun4i_ss_cbc_aes_decrypt(struct skcipher_request *areq);
192 int sun4i_ss_ecb_aes_encrypt(struct skcipher_request *areq);
193 int sun4i_ss_ecb_aes_decrypt(struct skcipher_request *areq);
195 int sun4i_ss_cbc_des_encrypt(struct skcipher_request *areq);
196 int sun4i_ss_cbc_des_decrypt(struct skcipher_request *areq);
197 int sun4i_ss_ecb_des_encrypt(struct skcipher_request *areq);
198 int sun4i_ss_ecb_des_decrypt(struct skcipher_request *areq);
200 int sun4i_ss_cbc_des3_encrypt(struct skcipher_request *areq);
201 int sun4i_ss_cbc_des3_decrypt(struct skcipher_request *areq);
[all …]
Dsun4i-ss-cipher.c15 static int noinline_for_stack sun4i_ss_opti_poll(struct skcipher_request *areq) in sun4i_ss_opti_poll()
118 static int noinline_for_stack sun4i_ss_cipher_poll_fallback(struct skcipher_request *areq) in sun4i_ss_cipher_poll_fallback()
141 static int sun4i_ss_cipher_poll(struct skcipher_request *areq) in sun4i_ss_cipher_poll()
341 int sun4i_ss_cbc_aes_encrypt(struct skcipher_request *areq) in sun4i_ss_cbc_aes_encrypt()
352 int sun4i_ss_cbc_aes_decrypt(struct skcipher_request *areq) in sun4i_ss_cbc_aes_decrypt()
364 int sun4i_ss_ecb_aes_encrypt(struct skcipher_request *areq) in sun4i_ss_ecb_aes_encrypt()
375 int sun4i_ss_ecb_aes_decrypt(struct skcipher_request *areq) in sun4i_ss_ecb_aes_decrypt()
387 int sun4i_ss_cbc_des_encrypt(struct skcipher_request *areq) in sun4i_ss_cbc_des_encrypt()
398 int sun4i_ss_cbc_des_decrypt(struct skcipher_request *areq) in sun4i_ss_cbc_des_decrypt()
410 int sun4i_ss_ecb_des_encrypt(struct skcipher_request *areq) in sun4i_ss_ecb_des_encrypt()
[all …]
/Linux-v5.4/drivers/crypto/marvell/
Dcipher.c40 struct skcipher_request *req) in mv_cesa_skcipher_req_iter_init()
57 mv_cesa_skcipher_dma_cleanup(struct skcipher_request *req) in mv_cesa_skcipher_dma_cleanup()
73 static inline void mv_cesa_skcipher_cleanup(struct skcipher_request *req) in mv_cesa_skcipher_cleanup()
81 static void mv_cesa_skcipher_std_step(struct skcipher_request *req) in mv_cesa_skcipher_std_step()
114 static int mv_cesa_skcipher_std_process(struct skcipher_request *req, in mv_cesa_skcipher_std_process()
136 struct skcipher_request *skreq = skcipher_request_cast(req); in mv_cesa_skcipher_process()
148 struct skcipher_request *skreq = skcipher_request_cast(req); in mv_cesa_skcipher_step()
158 mv_cesa_skcipher_dma_prepare(struct skcipher_request *req) in mv_cesa_skcipher_dma_prepare()
167 mv_cesa_skcipher_std_prepare(struct skcipher_request *req) in mv_cesa_skcipher_std_prepare()
179 struct skcipher_request *skreq = skcipher_request_cast(req); in mv_cesa_skcipher_prepare()
[all …]
/Linux-v5.4/drivers/crypto/amcc/
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-v5.4/crypto/
Dxts.c37 struct skcipher_request subreq;
87 static int xor_tweak(struct skcipher_request *req, bool second_pass, bool enc) in xor_tweak()
137 static int xor_tweak_pre(struct skcipher_request *req, bool enc) in xor_tweak_pre()
142 static int xor_tweak_post(struct skcipher_request *req, bool enc) in xor_tweak_post()
149 struct skcipher_request *req = areq->data; in cts_done()
163 static int cts_final(struct skcipher_request *req, in cts_final()
164 int (*crypt)(struct skcipher_request *req)) in cts_final()
169 struct skcipher_request *subreq = &rctx->subreq; in cts_final()
203 struct skcipher_request *req = areq->data; in encrypt_done()
223 struct skcipher_request *req = areq->data; in 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()
94 struct skcipher_request *req = areq->data; in cts_cbc_crypt_done()
102 static int cts_cbc_encrypt(struct skcipher_request *req) in cts_cbc_encrypt()
106 struct skcipher_request *subreq = &rctx->subreq; in cts_cbc_encrypt()
134 struct skcipher_request *req = areq->data; in crypto_cts_encrypt_done()
147 static int crypto_cts_encrypt(struct skcipher_request *req) in crypto_cts_encrypt()
152 struct skcipher_request *subreq = &rctx->subreq; in crypto_cts_encrypt()
183 static int cts_cbc_decrypt(struct skcipher_request *req) in cts_cbc_decrypt()
187 struct skcipher_request *subreq = &rctx->subreq; in cts_cbc_decrypt()
[all …]
Dlrw.c54 struct skcipher_request subreq;
142 static int xor_tweak(struct skcipher_request *req, bool second_pass) in xor_tweak()
199 static int xor_tweak_pre(struct skcipher_request *req) in xor_tweak_pre()
204 static int xor_tweak_post(struct skcipher_request *req) in xor_tweak_post()
211 struct skcipher_request *req = areq->data; in crypt_done()
223 static void init_crypt(struct skcipher_request *req) in init_crypt()
227 struct skcipher_request *subreq = &rctx->subreq; in init_crypt()
242 static int encrypt(struct skcipher_request *req) in encrypt()
245 struct skcipher_request *subreq = &rctx->subreq; in encrypt()
253 static int decrypt(struct skcipher_request *req) in decrypt()
[all …]
Dpcbc.c19 static int crypto_pcbc_encrypt_segment(struct skcipher_request *req, in crypto_pcbc_encrypt_segment()
41 static int crypto_pcbc_encrypt_inplace(struct skcipher_request *req, in crypto_pcbc_encrypt_inplace()
63 static int crypto_pcbc_encrypt(struct skcipher_request *req) in crypto_pcbc_encrypt()
86 static int crypto_pcbc_decrypt_segment(struct skcipher_request *req, in crypto_pcbc_decrypt_segment()
108 static int crypto_pcbc_decrypt_inplace(struct skcipher_request *req, in crypto_pcbc_decrypt_inplace()
130 static int crypto_pcbc_decrypt(struct skcipher_request *req) in crypto_pcbc_decrypt()
/Linux-v5.4/arch/x86/include/asm/crypto/
Dglue_helper.h103 struct skcipher_request *req);
106 struct skcipher_request *req);
109 struct skcipher_request *req);
112 struct skcipher_request *req);
115 struct skcipher_request *req,
/Linux-v5.4/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()
88 struct skcipher_request *subreq = skcipher_request_ctx(req); in p8_aes_xts_crypt()
133 static int p8_aes_xts_encrypt(struct skcipher_request *req) in p8_aes_xts_encrypt()
138 static int p8_aes_xts_decrypt(struct skcipher_request *req) in p8_aes_xts_decrypt()
/Linux-v5.4/arch/x86/crypto/
Dserpent_avx2_glue.c137 static int ecb_encrypt(struct skcipher_request *req) in ecb_encrypt()
142 static int ecb_decrypt(struct skcipher_request *req) in ecb_decrypt()
147 static int cbc_encrypt(struct skcipher_request *req) in cbc_encrypt()
153 static int cbc_decrypt(struct skcipher_request *req) in cbc_decrypt()
158 static int ctr_crypt(struct skcipher_request *req) in ctr_crypt()
163 static int xts_encrypt(struct skcipher_request *req) in xts_encrypt()
173 static int xts_decrypt(struct skcipher_request *req) in xts_decrypt()
Dcamellia_aesni_avx2_glue.c152 static int ecb_encrypt(struct skcipher_request *req) in ecb_encrypt()
157 static int ecb_decrypt(struct skcipher_request *req) in ecb_decrypt()
162 static int cbc_encrypt(struct skcipher_request *req) in cbc_encrypt()
168 static int cbc_decrypt(struct skcipher_request *req) in cbc_decrypt()
173 static int ctr_crypt(struct skcipher_request *req) in ctr_crypt()
178 static int xts_encrypt(struct skcipher_request *req) in xts_encrypt()
188 static int xts_decrypt(struct skcipher_request *req) in xts_decrypt()
Dcast6_avx_glue.c145 static int ecb_encrypt(struct skcipher_request *req) in ecb_encrypt()
150 static int ecb_decrypt(struct skcipher_request *req) in ecb_decrypt()
155 static int cbc_encrypt(struct skcipher_request *req) in cbc_encrypt()
161 static int cbc_decrypt(struct skcipher_request *req) in cbc_decrypt()
166 static int ctr_crypt(struct skcipher_request *req) in ctr_crypt()
197 static int xts_encrypt(struct skcipher_request *req) in xts_encrypt()
207 static int xts_decrypt(struct skcipher_request *req) in xts_decrypt()
Dserpent_avx_glue.c177 static int ecb_encrypt(struct skcipher_request *req) in ecb_encrypt()
182 static int ecb_decrypt(struct skcipher_request *req) in ecb_decrypt()
187 static int cbc_encrypt(struct skcipher_request *req) in cbc_encrypt()
193 static int cbc_decrypt(struct skcipher_request *req) in cbc_decrypt()
198 static int ctr_crypt(struct skcipher_request *req) in ctr_crypt()
203 static int xts_encrypt(struct skcipher_request *req) in xts_encrypt()
213 static int xts_decrypt(struct skcipher_request *req) in xts_decrypt()
Dtwofish_avx_glue.c180 static int ecb_encrypt(struct skcipher_request *req) in ecb_encrypt()
185 static int ecb_decrypt(struct skcipher_request *req) in ecb_decrypt()
190 static int cbc_encrypt(struct skcipher_request *req) in cbc_encrypt()
196 static int cbc_decrypt(struct skcipher_request *req) in cbc_decrypt()
201 static int ctr_crypt(struct skcipher_request *req) in ctr_crypt()
206 static int xts_encrypt(struct skcipher_request *req) in xts_encrypt()
216 static int xts_decrypt(struct skcipher_request *req) in xts_decrypt()
Dcamellia_aesni_avx_glue.c156 static int ecb_encrypt(struct skcipher_request *req) in ecb_encrypt()
161 static int ecb_decrypt(struct skcipher_request *req) in ecb_decrypt()
166 static int cbc_encrypt(struct skcipher_request *req) in cbc_encrypt()
172 static int cbc_decrypt(struct skcipher_request *req) in cbc_decrypt()
177 static int ctr_crypt(struct skcipher_request *req) in ctr_crypt()
204 static int xts_encrypt(struct skcipher_request *req) in xts_encrypt()
214 static int xts_decrypt(struct skcipher_request *req) in xts_decrypt()
Dserpent_sse2_glue.c128 static int ecb_encrypt(struct skcipher_request *req) in ecb_encrypt()
133 static int ecb_decrypt(struct skcipher_request *req) in ecb_decrypt()
138 static int cbc_encrypt(struct skcipher_request *req) in cbc_encrypt()
144 static int cbc_decrypt(struct skcipher_request *req) in cbc_decrypt()
149 static int ctr_crypt(struct skcipher_request *req) in ctr_crypt()
Dtwofish_glue_3way.c143 static int ecb_encrypt(struct skcipher_request *req) in ecb_encrypt()
148 static int ecb_decrypt(struct skcipher_request *req) in ecb_decrypt()
153 static int cbc_encrypt(struct skcipher_request *req) in cbc_encrypt()
159 static int cbc_decrypt(struct skcipher_request *req) in cbc_decrypt()
164 static int ctr_crypt(struct skcipher_request *req) in ctr_crypt()
/Linux-v5.4/drivers/crypto/cavium/nitrox/
Dnitrox_skcipher.c137 static int alloc_src_sglist(struct skcipher_request *skreq, int ivsize) in alloc_src_sglist()
155 static int alloc_dst_sglist(struct skcipher_request *skreq, int ivsize) in alloc_dst_sglist()
176 static void free_src_sglist(struct skcipher_request *skreq) in free_src_sglist()
183 static void free_dst_sglist(struct skcipher_request *skreq) in free_dst_sglist()
192 struct skcipher_request *skreq = arg; in nitrox_skcipher_callback()
204 static int nitrox_skcipher_crypt(struct skcipher_request *skreq, bool enc) in nitrox_skcipher_crypt()
247 static int nitrox_aes_encrypt(struct skcipher_request *skreq) in nitrox_aes_encrypt()
252 static int nitrox_aes_decrypt(struct skcipher_request *skreq) in nitrox_aes_decrypt()
264 static int nitrox_3des_encrypt(struct skcipher_request *skreq) in nitrox_3des_encrypt()
269 static int nitrox_3des_decrypt(struct skcipher_request *skreq) in nitrox_3des_decrypt()
/Linux-v5.4/arch/arm/crypto/
Daes-ce-glue.c177 static int ecb_encrypt(struct skcipher_request *req) in ecb_encrypt()
197 static int ecb_decrypt(struct skcipher_request *req) in ecb_decrypt()
217 static int cbc_encrypt_walk(struct skcipher_request *req, in cbc_encrypt_walk()
236 static int cbc_encrypt(struct skcipher_request *req) in cbc_encrypt()
247 static int cbc_decrypt_walk(struct skcipher_request *req, in cbc_decrypt_walk()
266 static int cbc_decrypt(struct skcipher_request *req) in cbc_decrypt()
277 static int cts_cbc_encrypt(struct skcipher_request *req) in cts_cbc_encrypt()
284 struct skcipher_request subreq; in cts_cbc_encrypt()
335 static int cts_cbc_decrypt(struct skcipher_request *req) in cts_cbc_decrypt()
342 struct skcipher_request subreq; in cts_cbc_decrypt()
[all …]
Daes-neonbs-glue.c86 static int __ecb_crypt(struct skcipher_request *req, in __ecb_crypt()
115 static int ecb_encrypt(struct skcipher_request *req) in ecb_encrypt()
120 static int ecb_decrypt(struct skcipher_request *req) in ecb_decrypt()
152 static int cbc_encrypt(struct skcipher_request *req) in cbc_encrypt()
157 static int cbc_decrypt(struct skcipher_request *req) in cbc_decrypt()
220 static int ctr_encrypt(struct skcipher_request *req) in ctr_encrypt()
277 static int ctr_encrypt_sync(struct skcipher_request *req) in ctr_encrypt_sync()
329 static int __xts_crypt(struct skcipher_request *req, bool encrypt, in __xts_crypt()
336 struct skcipher_request subreq; in __xts_crypt()
401 static int xts_encrypt(struct skcipher_request *req) in xts_encrypt()
[all …]
/Linux-v5.4/include/crypto/internal/
Dskcipher.h86 static inline void skcipher_request_complete(struct skcipher_request *req, int err) in skcipher_request_complete()
138 struct skcipher_request *req,
142 struct skcipher_request *req);
172 static inline void *skcipher_request_ctx(struct skcipher_request *req) in skcipher_request_ctx()
177 static inline u32 skcipher_request_flags(struct skcipher_request *req) in skcipher_request_flags()
/Linux-v5.4/arch/arm64/crypto/
Daes-neonbs-glue.c97 static int __ecb_crypt(struct skcipher_request *req, in __ecb_crypt()
126 static int ecb_encrypt(struct skcipher_request *req) in ecb_encrypt()
131 static int ecb_decrypt(struct skcipher_request *req) in ecb_decrypt()
158 static int cbc_encrypt(struct skcipher_request *req) in cbc_encrypt()
181 static int cbc_decrypt(struct skcipher_request *req) in cbc_decrypt()
228 static int ctr_encrypt(struct skcipher_request *req) in ctr_encrypt()
309 static int ctr_encrypt_sync(struct skcipher_request *req) in ctr_encrypt_sync()
317 static int __xts_crypt(struct skcipher_request *req, bool encrypt, in __xts_crypt()
325 struct skcipher_request subreq; in __xts_crypt()
422 static int xts_encrypt(struct skcipher_request *req) in xts_encrypt()
[all …]

1234