/linux/include/crypto/ |
H A D | skcipher.h | 40 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); 221 char __##name##_desc[sizeof(struct skcipher_request) + \ 226 struct skcipher_request *name = (void *)__##name##_desc 669 struct skcipher_request *req) in crypto_skcipher_reqtfm() 675 struct skcipher_request *req) in crypto_sync_skcipher_reqtfm() 842 struct skcipher_request *req; in skcipher_request_alloc_noprof() 844 req = kmalloc_noprof(sizeof(struct skcipher_request) + in skcipher_request_alloc_noprof() [all …]
|
/linux/drivers/crypto/allwinner/sun4i-ss/ |
H A D | sun4i-ss.h | 187 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 D | sun4i-ss-cipher.c | 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() 477 int sun4i_ss_ecb_des_decrypt(struct skcipher_request *areq) in sun4i_ss_ecb_des_decrypt() 489 int sun4i_ss_cbc_des3_encrypt(struct skcipher_request *areq) in sun4i_ss_cbc_des3_encrypt() [all …]
|
/linux/drivers/crypto/marvell/cesa/ |
H A 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() 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() 407 mv_cesa_skcipher_std_req_init(struct skcipher_request *req, in mv_cesa_skcipher_std_req_init() 477 static int mv_cesa_des_op(struct skcipher_request *req, in mv_cesa_des_op() 533 static int mv_cesa_cbc_des_op(struct skcipher_request *req, in mv_cesa_cbc_des_op() 584 static int mv_cesa_des3_op(struct skcipher_request *req, in mv_cesa_des3_op() [all …]
|
/linux/arch/x86/crypto/ |
H A D | sm4-avx.h | 10 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 D | cast5_avx_glue.c | 34 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()
|
H A D | cast6_avx_glue.c | 34 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()
|
H A D | serpent_avx_glue.c | 41 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()
|
H A D | serpent_sse2_glue.c | 44 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()
|
/linux/drivers/crypto/amcc/ |
H A D | crypto4xx_core.h | 170 int crypto4xx_encrypt_ctr(struct skcipher_request *req); 171 int crypto4xx_decrypt_ctr(struct skcipher_request *req); 172 int crypto4xx_encrypt_iv_stream(struct skcipher_request *req); 173 int crypto4xx_decrypt_iv_stream(struct skcipher_request *req); 174 int crypto4xx_encrypt_iv_block(struct skcipher_request *req); 175 int crypto4xx_decrypt_iv_block(struct skcipher_request *req); 176 int crypto4xx_encrypt_noiv_block(struct skcipher_request *req); 177 int crypto4xx_decrypt_noiv_block(struct skcipher_request *req); 178 int crypto4xx_rfc3686_encrypt(struct skcipher_request *req); 179 int crypto4xx_rfc3686_decrypt(struct skcipher_request *req);
|
/linux/drivers/crypto/aspeed/ |
H A D | aspeed-hace-crypto.c | 27 static int aspeed_crypto_do_fallback(struct skcipher_request *areq) in aspeed_crypto_do_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() 500 static int aspeed_des_ctr_decrypt(struct skcipher_request *req) in aspeed_des_ctr_decrypt() [all …]
|
/linux/crypto/ |
H A D | xts.c | 38 struct skcipher_request subreq; 145 struct skcipher_request *req = data; in xts_cts_done() 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() 245 struct skcipher_request *subreq = &rctx->subreq; in xts_init_crypt() 261 static int xts_encrypt(struct skcipher_request *req) in xts_encrypt() 264 struct skcipher_request *subreq = &rctx->subreq; in xts_encrypt() 278 static int xts_decrypt(struct skcipher_request *req) in xts_decrypt() [all …]
|
H A D | cts.c | 62 struct skcipher_request subreq; 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() 224 struct skcipher_request *req = data; in crypto_cts_decrypt_done() [all …]
|
H A 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 = 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 D | pcbc.c | 20 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/drivers/crypto/rockchip/ |
H A D | rk3288_crypto_skcipher.c | 23 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() 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() 211 static int rk_des_cbc_decrypt(struct skcipher_request *req) in rk_des_cbc_decrypt() [all …]
|
/linux/arch/s390/crypto/ |
H A D | des_s390.c | 89 static int ecb_desall_crypt(struct skcipher_request *req, unsigned long fc) in ecb_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() 356 static int ctr_des_crypt(struct skcipher_request *req) in ctr_des_crypt() [all …]
|
/linux/arch/powerpc/crypto/ |
H A 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()
|
H A 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()
|
H A 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() 320 static int ppc_xts_encrypt(struct skcipher_request *req) in ppc_xts_encrypt() 326 struct skcipher_request subreq; in ppc_xts_encrypt() 358 static int ppc_xts_decrypt(struct skcipher_request *req) in ppc_xts_decrypt() [all …]
|
/linux/arch/sparc/crypto/ |
H A 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() 327 static int cbc3_encrypt(struct skcipher_request *req) in cbc3_encrypt() [all …]
|
/linux/arch/riscv/crypto/ |
H A D | aes-riscv64-glue.c | 161 static int riscv64_aes_ecb_encrypt(struct skcipher_request *req) in riscv64_aes_ecb_encrypt() 166 static int riscv64_aes_ecb_decrypt(struct skcipher_request *req) in riscv64_aes_ecb_decrypt() 201 static int riscv64_aes_cbc_encrypt(struct skcipher_request *req) in riscv64_aes_cbc_encrypt() 206 static int riscv64_aes_cbc_decrypt(struct skcipher_request *req) in riscv64_aes_cbc_decrypt() 218 struct skcipher_request subreq; in riscv64_aes_cbc_cts_crypt() 265 static int riscv64_aes_cbc_cts_encrypt(struct skcipher_request *req) in riscv64_aes_cbc_cts_encrypt() 270 static int riscv64_aes_cbc_cts_decrypt(struct skcipher_request *req) in riscv64_aes_cbc_cts_decrypt() 277 static int riscv64_aes_ctr_crypt(struct skcipher_request *req) in riscv64_aes_ctr_crypt() 360 struct skcipher_request subreq; in riscv64_aes_xts_crypt() 447 static int riscv64_aes_xts_encrypt(struct skcipher_request *req) in riscv64_aes_xts_encrypt() [all …]
|
/linux/drivers/crypto/cavium/nitrox/ |
H A 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() 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() 327 static int nitrox_3des_encrypt(struct skcipher_request *skreq) in nitrox_3des_encrypt() [all …]
|
/linux/include/crypto/internal/ |
H A D | skcipher.h | 128 static inline void skcipher_request_complete(struct skcipher_request *req, int err) in skcipher_request_complete() 210 struct skcipher_request *req, 213 struct skcipher_request *req); 240 static inline void *skcipher_request_ctx(struct skcipher_request *req) in skcipher_request_ctx() 245 static inline void *skcipher_request_ctx_dma(struct skcipher_request *req) in skcipher_request_ctx_dma() 255 static inline u32 skcipher_request_flags(struct skcipher_request *req) in skcipher_request_flags()
|
/linux/arch/arm64/crypto/ |
H A D | sm4-ce-glue.c | 138 static int sm4_ecb_encrypt(struct skcipher_request *req) in sm4_ecb_encrypt() 146 static int sm4_ecb_decrypt(struct skcipher_request *req) in sm4_ecb_decrypt() 154 static int sm4_cbc_crypt(struct skcipher_request *req, in sm4_cbc_crypt() 190 static int sm4_cbc_encrypt(struct skcipher_request *req) in sm4_cbc_encrypt() 198 static int sm4_cbc_decrypt(struct skcipher_request *req) in sm4_cbc_decrypt() 213 struct skcipher_request subreq; in sm4_cbc_cts_crypt() 268 static int sm4_cbc_cts_encrypt(struct skcipher_request *req) in sm4_cbc_cts_encrypt() 278 static int sm4_ctr_crypt(struct skcipher_request *req) in sm4_ctr_crypt() 328 struct skcipher_request subreq; in sm4_xts_crypt() 416 static int sm4_xts_encrypt(struct skcipher_request *req) in sm4_xts_encrypt() [all …]
|