| /Linux-v5.10/include/crypto/ |
| D | skcipher.h | 24 struct skcipher_request { struct 107 int (*encrypt)(struct skcipher_request *req); 108 int (*decrypt)(struct skcipher_request *req); 127 char __##name##_desc[sizeof(struct skcipher_request) + \ 132 struct skcipher_request *name = (void *)__##name##_desc 393 struct skcipher_request *req) in crypto_skcipher_reqtfm() 399 struct skcipher_request *req) in crypto_sync_skcipher_reqtfm() 417 int crypto_skcipher_encrypt(struct skcipher_request *req); 430 int crypto_skcipher_decrypt(struct skcipher_request *req); 462 static inline void skcipher_request_set_tfm(struct skcipher_request *req, in skcipher_request_set_tfm() [all …]
|
| /Linux-v5.10/drivers/crypto/allwinner/sun4i-ss/ |
| D | sun4i-ss.h | 178 struct skcipher_request fallback_req; // keep at the end 202 int sun4i_ss_cbc_aes_encrypt(struct skcipher_request *areq); 203 int sun4i_ss_cbc_aes_decrypt(struct skcipher_request *areq); 204 int sun4i_ss_ecb_aes_encrypt(struct skcipher_request *areq); 205 int sun4i_ss_ecb_aes_decrypt(struct skcipher_request *areq); 207 int sun4i_ss_cbc_des_encrypt(struct skcipher_request *areq); 208 int sun4i_ss_cbc_des_decrypt(struct skcipher_request *areq); 209 int sun4i_ss_ecb_des_encrypt(struct skcipher_request *areq); 210 int sun4i_ss_ecb_des_decrypt(struct skcipher_request *areq); 212 int sun4i_ss_cbc_des3_encrypt(struct skcipher_request *areq); [all …]
|
| D | sun4i-ss-cipher.c | 15 static int noinline_for_stack sun4i_ss_opti_poll(struct skcipher_request *areq) in sun4i_ss_opti_poll() 120 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() 345 int sun4i_ss_cbc_aes_encrypt(struct skcipher_request *areq) in sun4i_ss_cbc_aes_encrypt() 356 int sun4i_ss_cbc_aes_decrypt(struct skcipher_request *areq) in sun4i_ss_cbc_aes_decrypt() 368 int sun4i_ss_ecb_aes_encrypt(struct skcipher_request *areq) in sun4i_ss_ecb_aes_encrypt() 379 int sun4i_ss_ecb_aes_decrypt(struct skcipher_request *areq) in sun4i_ss_ecb_aes_decrypt() 391 int sun4i_ss_cbc_des_encrypt(struct skcipher_request *areq) in sun4i_ss_cbc_des_encrypt() 402 int sun4i_ss_cbc_des_decrypt(struct skcipher_request *areq) in sun4i_ss_cbc_des_decrypt() 414 int sun4i_ss_ecb_des_encrypt(struct skcipher_request *areq) in sun4i_ss_ecb_des_encrypt() [all …]
|
| /Linux-v5.10/drivers/crypto/marvell/cesa/ |
| D | cipher.c | 42 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() 116 static int mv_cesa_skcipher_std_process(struct skcipher_request *req, in mv_cesa_skcipher_std_process() 138 struct skcipher_request *skreq = skcipher_request_cast(req); in mv_cesa_skcipher_process() 150 struct skcipher_request *skreq = skcipher_request_cast(req); in mv_cesa_skcipher_step() 160 mv_cesa_skcipher_dma_prepare(struct skcipher_request *req) in mv_cesa_skcipher_dma_prepare() 169 mv_cesa_skcipher_std_prepare(struct skcipher_request *req) in mv_cesa_skcipher_std_prepare() 181 struct skcipher_request *skreq = skcipher_request_cast(req); in mv_cesa_skcipher_prepare() [all …]
|
| /Linux-v5.10/drivers/crypto/amcc/ |
| D | crypto4xx_core.h | 175 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-v5.10/crypto/ |
| D | xts.c | 37 struct skcipher_request subreq; 81 static int xts_xor_tweak(struct skcipher_request *req, bool second_pass, in xts_xor_tweak() 132 static int xts_xor_tweak_pre(struct skcipher_request *req, bool enc) in xts_xor_tweak_pre() 137 static int xts_xor_tweak_post(struct skcipher_request *req, bool enc) in xts_xor_tweak_post() 144 struct skcipher_request *req = areq->data; in xts_cts_done() 158 static int xts_cts_final(struct skcipher_request *req, in xts_cts_final() 159 int (*crypt)(struct skcipher_request *req)) in xts_cts_final() 165 struct skcipher_request *subreq = &rctx->subreq; in xts_cts_final() 200 struct skcipher_request *req = areq->data; in xts_encrypt_done() 220 struct skcipher_request *req = areq->data; in xts_decrypt_done() [all …]
|
| D | cts.c | 62 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 …]
|
| D | lrw.c | 54 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 …]
|
| D | pcbc.c | 19 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.10/drivers/crypto/rockchip/ |
| D | rk3288_crypto_skcipher.c | 23 struct skcipher_request *req) in rk_handle_req() 75 static int rk_aes_ecb_encrypt(struct skcipher_request *req) in rk_aes_ecb_encrypt() 85 static int rk_aes_ecb_decrypt(struct skcipher_request *req) in rk_aes_ecb_decrypt() 95 static int rk_aes_cbc_encrypt(struct skcipher_request *req) in rk_aes_cbc_encrypt() 105 static int rk_aes_cbc_decrypt(struct skcipher_request *req) in rk_aes_cbc_decrypt() 115 static int rk_des_ecb_encrypt(struct skcipher_request *req) in rk_des_ecb_encrypt() 125 static int rk_des_ecb_decrypt(struct skcipher_request *req) in rk_des_ecb_decrypt() 135 static int rk_des_cbc_encrypt(struct skcipher_request *req) in rk_des_cbc_encrypt() 145 static int rk_des_cbc_decrypt(struct skcipher_request *req) in rk_des_cbc_decrypt() 155 static int rk_des3_ede_ecb_encrypt(struct skcipher_request *req) in rk_des3_ede_ecb_encrypt() [all …]
|
| /Linux-v5.10/arch/x86/include/asm/crypto/ |
| D | glue_helper.h | 98 struct skcipher_request *req); 101 struct skcipher_request *req); 104 struct skcipher_request *req); 107 struct skcipher_request *req); 110 struct skcipher_request *req,
|
| /Linux-v5.10/arch/s390/crypto/ |
| D | des_s390.c | 89 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-v5.10/drivers/crypto/vmx/ |
| D | aes_cbc.c | 38 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()
|
| D | aes_xts.c | 40 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-v5.10/arch/sparc/crypto/ |
| D | des_glue.c | 95 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-v5.10/arch/x86/crypto/ |
| D | serpent_avx2_glue.c | 135 static int ecb_encrypt(struct skcipher_request *req) in ecb_encrypt() 140 static int ecb_decrypt(struct skcipher_request *req) in ecb_decrypt() 145 static int cbc_encrypt(struct skcipher_request *req) in cbc_encrypt() 150 static int cbc_decrypt(struct skcipher_request *req) in cbc_decrypt() 155 static int ctr_crypt(struct skcipher_request *req) in ctr_crypt() 160 static int xts_encrypt(struct skcipher_request *req) in xts_encrypt() 170 static int xts_decrypt(struct skcipher_request *req) in xts_decrypt()
|
| D | camellia_aesni_avx2_glue.c | 148 static int ecb_encrypt(struct skcipher_request *req) in ecb_encrypt() 153 static int ecb_decrypt(struct skcipher_request *req) in ecb_decrypt() 158 static int cbc_encrypt(struct skcipher_request *req) in cbc_encrypt() 163 static int cbc_decrypt(struct skcipher_request *req) in cbc_decrypt() 168 static int ctr_crypt(struct skcipher_request *req) in ctr_crypt() 173 static int xts_encrypt(struct skcipher_request *req) in xts_encrypt() 182 static int xts_decrypt(struct skcipher_request *req) in xts_decrypt()
|
| D | twofish_avx_glue.c | 172 static int ecb_encrypt(struct skcipher_request *req) in ecb_encrypt() 177 static int ecb_decrypt(struct skcipher_request *req) in ecb_decrypt() 182 static int cbc_encrypt(struct skcipher_request *req) in cbc_encrypt() 187 static int cbc_decrypt(struct skcipher_request *req) in cbc_decrypt() 192 static int ctr_crypt(struct skcipher_request *req) in ctr_crypt() 197 static int xts_encrypt(struct skcipher_request *req) in xts_encrypt() 206 static int xts_decrypt(struct skcipher_request *req) in xts_decrypt()
|
| D | cast6_avx_glue.c | 142 static int ecb_encrypt(struct skcipher_request *req) in ecb_encrypt() 147 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() 162 static int ctr_crypt(struct skcipher_request *req) in ctr_crypt() 191 static int xts_encrypt(struct skcipher_request *req) in xts_encrypt() 200 static int xts_decrypt(struct skcipher_request *req) in xts_decrypt()
|
| D | serpent_avx_glue.c | 177 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() 192 static int cbc_decrypt(struct skcipher_request *req) in cbc_decrypt() 197 static int ctr_crypt(struct skcipher_request *req) in ctr_crypt() 202 static int xts_encrypt(struct skcipher_request *req) in xts_encrypt() 212 static int xts_decrypt(struct skcipher_request *req) in xts_decrypt()
|
| D | camellia_aesni_avx_glue.c | 150 static int ecb_encrypt(struct skcipher_request *req) in ecb_encrypt() 155 static int ecb_decrypt(struct skcipher_request *req) in ecb_decrypt() 160 static int cbc_encrypt(struct skcipher_request *req) in cbc_encrypt() 165 static int cbc_decrypt(struct skcipher_request *req) in cbc_decrypt() 170 static int ctr_crypt(struct skcipher_request *req) in ctr_crypt() 195 static int xts_encrypt(struct skcipher_request *req) in xts_encrypt() 204 static int xts_decrypt(struct skcipher_request *req) in xts_decrypt()
|
| /Linux-v5.10/drivers/crypto/cavium/nitrox/ |
| D | nitrox_skcipher.c | 51 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-v5.10/include/crypto/internal/ |
| D | skcipher.h | 86 static inline void skcipher_request_complete(struct skcipher_request *req, int err) in skcipher_request_complete() 133 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-v5.10/arch/arm/crypto/ |
| D | aes-neonbs-glue.c | 85 static int __ecb_crypt(struct skcipher_request *req, in __ecb_crypt() 114 static int ecb_encrypt(struct skcipher_request *req) in ecb_encrypt() 119 static int ecb_decrypt(struct skcipher_request *req) in ecb_decrypt() 145 static int cbc_encrypt(struct skcipher_request *req) in cbc_encrypt() 147 struct skcipher_request *subreq = skcipher_request_ctx(req); in cbc_encrypt() 161 static int cbc_decrypt(struct skcipher_request *req) in cbc_decrypt() 198 reqsize = sizeof(struct skcipher_request); in cbc_init() 231 static int ctr_encrypt(struct skcipher_request *req) in ctr_encrypt() 288 static int ctr_encrypt_sync(struct skcipher_request *req) in ctr_encrypt_sync() 340 static int __xts_crypt(struct skcipher_request *req, bool encrypt, in __xts_crypt() [all …]
|
| /Linux-v5.10/arch/powerpc/crypto/ |
| D | aes-spe-glue.c | 180 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 …]
|