Home
last modified time | relevance | path

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

1234567

/linux/include/crypto/
H A Dskcipher.h53 struct crypto_skcipher { struct
60 struct crypto_skcipher base; argument
152 int (*setkey)(struct crypto_skcipher *tfm, const u8 *key,
158 int (*init)(struct crypto_skcipher *tfm);
159 void (*exit)(struct crypto_skcipher *tfm);
259 static inline struct crypto_skcipher *__crypto_skcipher_cast( in __crypto_skcipher_cast()
262 return container_of(tfm, struct crypto_skcipher, base); in __crypto_skcipher_cast()
279 struct crypto_skcipher *crypto_alloc_skcipher(const char *alg_name,
304 struct crypto_skcipher *tfm) in crypto_skcipher_tfm()
327 static inline void crypto_free_skcipher(struct crypto_skcipher *tfm) in crypto_free_skcipher()
[all …]
/linux/arch/powerpc/crypto/
H A Daes_cbc.c23 struct crypto_skcipher *fallback;
28 static int p8_aes_cbc_init(struct crypto_skcipher *tfm) in p8_aes_cbc_init()
31 struct crypto_skcipher *fallback; in p8_aes_cbc_init()
48 static void p8_aes_cbc_exit(struct crypto_skcipher *tfm) in p8_aes_cbc_exit()
55 static int p8_aes_cbc_setkey(struct crypto_skcipher *tfm, const u8 *key, in p8_aes_cbc_setkey()
77 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in p8_aes_cbc_crypt()
H A Daes_ctr.c23 struct crypto_skcipher *fallback;
27 static int p8_aes_ctr_init(struct crypto_skcipher *tfm) in p8_aes_ctr_init()
30 struct crypto_skcipher *fallback; in p8_aes_ctr_init()
47 static void p8_aes_ctr_exit(struct crypto_skcipher *tfm) in p8_aes_ctr_exit()
54 static int p8_aes_ctr_setkey(struct crypto_skcipher *tfm, const u8 *key, in p8_aes_ctr_setkey()
96 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in p8_aes_ctr_crypt()
H A Daes_xts.c24 struct crypto_skcipher *fallback;
30 static int p8_aes_xts_init(struct crypto_skcipher *tfm) in p8_aes_xts_init()
33 struct crypto_skcipher *fallback; in p8_aes_xts_init()
50 static void p8_aes_xts_exit(struct crypto_skcipher *tfm) in p8_aes_xts_exit()
57 static int p8_aes_xts_setkey(struct crypto_skcipher *tfm, const u8 *key, in p8_aes_xts_setkey()
84 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in p8_aes_xts_crypt()
H A Daes-spe-glue.c68 static int ppc_aes_setkey_skcipher(struct crypto_skcipher *tfm, in ppc_aes_setkey_skcipher()
95 static int ppc_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in ppc_xts_setkey()
134 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ppc_ecb_crypt()
173 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ppc_cbc_crypt()
214 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ppc_ctr_crypt()
240 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ppc_xts_crypt()
274 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ppc_xts_encrypt()
312 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ppc_xts_decrypt()
/linux/crypto/
H A Dcts.c56 struct crypto_skcipher *child;
68 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cts_reqctx_space()
70 struct crypto_skcipher *child = ctx->child; in crypto_cts_reqctx_space()
76 static int crypto_cts_setkey(struct crypto_skcipher *parent, const u8 *key, in crypto_cts_setkey()
80 struct crypto_skcipher *child = ctx->child; in crypto_cts_setkey()
101 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cts_cbc_encrypt()
145 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cts_encrypt()
182 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cts_cbc_decrypt()
239 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cts_decrypt()
283 static int crypto_cts_init_tfm(struct crypto_skcipher *tfm) in crypto_cts_init_tfm()
[all …]
H A Dskcipher.c286 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in skcipher_walk_virt()
371 static void skcipher_set_needkey(struct crypto_skcipher *tfm) in skcipher_set_needkey()
377 static int skcipher_setkey_unaligned(struct crypto_skcipher *tfm, in skcipher_setkey_unaligned()
398 int crypto_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, in crypto_skcipher_setkey()
437 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_skcipher_encrypt()
450 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_skcipher_decrypt()
463 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_lskcipher_export()
476 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_lskcipher_import()
499 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_skcipher_export()
510 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_skcipher_import()
[all …]
H A Dctr.c19 struct crypto_skcipher *child;
101 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_ctr_crypt()
169 static int crypto_rfc3686_setkey(struct crypto_skcipher *parent, in crypto_rfc3686_setkey()
173 struct crypto_skcipher *child = ctx->child; in crypto_rfc3686_setkey()
192 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_rfc3686_crypt()
194 struct crypto_skcipher *child = ctx->child; in crypto_rfc3686_crypt()
218 static int crypto_rfc3686_init_tfm(struct crypto_skcipher *tfm) in crypto_rfc3686_init_tfm()
223 struct crypto_skcipher *cipher; in crypto_rfc3686_init_tfm()
242 static void crypto_rfc3686_exit_tfm(struct crypto_skcipher *tfm) in crypto_rfc3686_exit_tfm()
H A Dchacha.c20 static int chacha_setkey(struct crypto_skcipher *tfm, in chacha_setkey()
36 static int chacha20_setkey(struct crypto_skcipher *tfm, in chacha20_setkey()
42 static int chacha12_setkey(struct crypto_skcipher *tfm, in chacha12_setkey()
76 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_chacha_crypt()
84 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_xchacha_crypt()
H A Dlrw.c31 struct crypto_skcipher *child;
68 static int lrw_setkey(struct crypto_skcipher *parent, const u8 *key, in lrw_setkey()
72 struct crypto_skcipher *child = ctx->child; in lrw_setkey()
143 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in lrw_xor_tweak()
265 static int lrw_init_tfm(struct crypto_skcipher *tfm) in lrw_init_tfm()
270 struct crypto_skcipher *cipher; in lrw_init_tfm()
284 static void lrw_exit_tfm(struct crypto_skcipher *tfm) in lrw_exit_tfm()
H A Dhctr2.c43 struct crypto_skcipher *xctr;
96 static int hctr2_setkey(struct crypto_skcipher *tfm, const u8 *key, in hctr2_setkey()
136 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in hctr2_hash_tweak()
180 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in hctr2_finish()
211 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in hctr2_crypt()
273 static int hctr2_init_tfm(struct crypto_skcipher *tfm) in hctr2_init_tfm()
278 struct crypto_skcipher *xctr; in hctr2_init_tfm()
308 static void hctr2_exit_tfm(struct crypto_skcipher *tfm) in hctr2_exit_tfm()
H A Dsimd.c50 static int simd_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, in simd_skcipher_setkey()
54 struct crypto_skcipher *child = &ctx->cryptd_tfm->base; in simd_skcipher_setkey()
64 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in simd_skcipher_encrypt()
67 struct crypto_skcipher *child; in simd_skcipher_encrypt()
85 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in simd_skcipher_decrypt()
88 struct crypto_skcipher *child; in simd_skcipher_decrypt()
104 static void simd_skcipher_exit(struct crypto_skcipher *tfm) in simd_skcipher_exit()
111 static int simd_skcipher_init(struct crypto_skcipher *tfm) in simd_skcipher_init()
H A Dalgif_skcipher.c44 struct crypto_skcipher *tfm = pask->private; in skcipher_sendmsg()
53 struct crypto_skcipher *tfm; in algif_skcipher_export()
104 struct crypto_skcipher *tfm = pask->private; in _skcipher_recvmsg()
270 struct crypto_skcipher *tfm; in skcipher_check_key()
364 struct crypto_skcipher *tfm = pask->private; in skcipher_sock_destruct()
378 struct crypto_skcipher *tfm = private; in skcipher_accept_parent_nokey()
407 struct crypto_skcipher *tfm = private; in skcipher_accept_parent()
/linux/include/crypto/internal/
H A Dskcipher.h111 struct crypto_skcipher *skcipher) in skcipher_alg_instance()
175 static inline struct crypto_skcipher *crypto_spawn_skcipher( in crypto_spawn_skcipher()
188 struct crypto_skcipher *skcipher, unsigned int reqsize) in crypto_skcipher_set_reqsize()
194 struct crypto_skcipher *skcipher, unsigned int reqsize) in crypto_skcipher_set_reqsize_dma()
230 static inline void *crypto_skcipher_ctx(struct crypto_skcipher *tfm) in crypto_skcipher_ctx()
240 static inline void *crypto_skcipher_ctx_dma(struct crypto_skcipher *tfm) in crypto_skcipher_ctx_dma()
245 static inline bool crypto_skcipher_tested(struct crypto_skcipher *tfm) in crypto_skcipher_tested()
277 skcipher_cipher_simple(struct crypto_skcipher *tfm) in skcipher_cipher_simple()
/linux/drivers/crypto/allwinner/sun4i-ss/
H A Dsun4i-ss-cipher.c17 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_opti_poll()
150 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cipher_poll_fallback()
178 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cipher_poll()
399 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_aes_encrypt()
410 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_aes_decrypt()
422 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_ecb_aes_encrypt()
433 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_ecb_aes_decrypt()
445 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_des_encrypt()
456 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_des_decrypt()
468 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_ecb_des_encrypt()
[all …]
H A Dsun4i-ss.h181 struct crypto_skcipher *fallback_tfm;
228 int sun4i_ss_aes_setkey(struct crypto_skcipher *tfm, const u8 *key,
230 int sun4i_ss_des_setkey(struct crypto_skcipher *tfm, const u8 *key,
232 int sun4i_ss_des3_setkey(struct crypto_skcipher *tfm, const u8 *key,
/linux/drivers/crypto/cavium/nitrox/
H A Dnitrox_skcipher.c83 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(skreq); in nitrox_cbc_cipher_callback()
108 static int nitrox_skcipher_init(struct crypto_skcipher *tfm) in nitrox_skcipher_init()
134 static int nitrox_cbc_init(struct crypto_skcipher *tfm) in nitrox_cbc_init()
147 static void nitrox_skcipher_exit(struct crypto_skcipher *tfm) in nitrox_skcipher_exit()
165 static inline int nitrox_skcipher_setkey(struct crypto_skcipher *cipher, in nitrox_skcipher_setkey()
197 static int nitrox_aes_setkey(struct crypto_skcipher *cipher, const u8 *key, in nitrox_aes_setkey()
249 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(skreq); in nitrox_skcipher_crypt()
293 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(skreq); in nitrox_cbc_decrypt()
320 static int nitrox_3des_setkey(struct crypto_skcipher *cipher, in nitrox_3des_setkey()
337 static int nitrox_aes_xts_setkey(struct crypto_skcipher *cipher, in nitrox_aes_xts_setkey()
[all …]
/linux/arch/arm64/crypto/
H A Dsm4-neon-glue.c28 static int sm4_setkey(struct crypto_skcipher *tfm, const u8 *key, in sm4_setkey()
63 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_ecb_encrypt()
71 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_ecb_decrypt()
79 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_cbc_encrypt()
111 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_cbc_decrypt()
139 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_ctr_crypt()
/linux/arch/s390/crypto/
H A Daes_s390.c46 struct crypto_skcipher *skcipher;
60 struct crypto_skcipher *fallback;
73 static int setkey_fallback_skcipher(struct crypto_skcipher *tfm, const u8 *key, in setkey_fallback_skcipher()
99 static int ecb_aes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, in ecb_aes_set_key()
122 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_aes_crypt()
152 static int fallback_init_skcipher(struct crypto_skcipher *tfm) in fallback_init_skcipher()
171 static void fallback_exit_skcipher(struct crypto_skcipher *tfm) in fallback_exit_skcipher()
195 static int cbc_aes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, in cbc_aes_set_key()
218 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_aes_crypt()
276 static int xts_fallback_setkey(struct crypto_skcipher *tfm, const u8 *key, in xts_fallback_setkey()
[all …]
/linux/drivers/crypto/cavium/cpt/
H A Dcptvf_algs.c98 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in create_ctx_hdr()
195 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cvm_enc_dec()
232 static int cvm_xts_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_xts_setkey()
288 static int cvm_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_setkey()
302 static int cvm_cbc_aes_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_cbc_aes_setkey()
308 static int cvm_ecb_aes_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_ecb_aes_setkey()
314 static int cvm_cbc_des3_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_cbc_des3_setkey()
321 static int cvm_ecb_des3_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_ecb_des3_setkey()
328 static int cvm_enc_dec_init(struct crypto_skcipher *tfm) in cvm_enc_dec_init()
/linux/drivers/crypto/hisilicon/sec/
H A Dsec_algs.c142 static void sec_alg_skcipher_init_context(struct crypto_skcipher *atfm, in sec_alg_skcipher_init_context()
227 static int sec_alg_skcipher_setkey(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey()
253 static int sec_alg_skcipher_setkey_aes_ecb(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_aes_ecb()
275 static int sec_alg_skcipher_setkey_aes_cbc(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_aes_cbc()
297 static int sec_alg_skcipher_setkey_aes_ctr(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_aes_ctr()
319 static int sec_alg_skcipher_setkey_aes_xts(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_aes_xts()
343 static int sec_alg_skcipher_setkey_des_ecb(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_des_ecb()
350 static int sec_alg_skcipher_setkey_des_cbc(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_des_cbc()
357 static int sec_alg_skcipher_setkey_3des_ecb(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_3des_ecb()
365 static int sec_alg_skcipher_setkey_3des_cbc(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_3des_cbc()
[all …]
/linux/arch/x86/crypto/
H A Daria_aesni_avx_glue.c64 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in aria_avx_ecb_encrypt()
72 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in aria_avx_ecb_decrypt()
78 static int aria_avx_set_key(struct crypto_skcipher *tfm, const u8 *key, in aria_avx_set_key()
87 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in aria_avx_ctr_encrypt()
144 static int aria_avx_init_tfm(struct crypto_skcipher *tfm) in aria_avx_init_tfm()
/linux/drivers/crypto/allwinner/sun8i-ce/
H A Dsun8i-ce-cipher.c26 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ce_cipher_need_fallback()
107 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ce_cipher_fallback()
137 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ce_cipher_prepare()
313 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ce_cipher_unprepare()
353 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sun8i_ce_cipher_do_one()
379 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ce_skdecrypt()
398 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ce_skencrypt()
420 struct crypto_skcipher *sktfm = __crypto_skcipher_cast(tfm); in sun8i_ce_cipher_init()
463 int sun8i_ce_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, in sun8i_ce_aes_setkey()
492 int sun8i_ce_des3_setkey(struct crypto_skcipher *tfm, const u8 *key, in sun8i_ce_des3_setkey()
/linux/drivers/crypto/nx/
H A Dnx-aes-ctr.c24 static int ctr_aes_nx_set_key(struct crypto_skcipher *tfm, in ctr_aes_nx_set_key()
56 static int ctr3686_aes_nx_set_key(struct crypto_skcipher *tfm, in ctr3686_aes_nx_set_key()
76 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr_aes_nx_crypt()
119 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr3686_aes_nx_crypt()
/linux/arch/arm/crypto/
H A Daes-neonbs-glue.c59 static int aesbs_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_setkey()
83 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __ecb_crypt()
118 static int aesbs_cbc_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_cbc_setkey()
144 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt()
173 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt()
201 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr_encrypt()
234 static int aesbs_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_xts_setkey()
259 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __xts_crypt()

1234567