Home
last modified time | relevance | path

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

1234567

/OK3568_Linux_fs/kernel/include/crypto/
H A Dskcipher.h37 struct crypto_skcipher { struct
44 struct crypto_skcipher base; argument
105 int (*setkey)(struct crypto_skcipher *tfm, const u8 *key,
109 int (*init)(struct crypto_skcipher *tfm);
110 void (*exit)(struct crypto_skcipher *tfm);
164 static inline struct crypto_skcipher *__crypto_skcipher_cast( in __crypto_skcipher_cast()
167 return container_of(tfm, struct crypto_skcipher, base); in __crypto_skcipher_cast()
184 struct crypto_skcipher *crypto_alloc_skcipher(const char *alg_name,
191 struct crypto_skcipher *tfm) in crypto_skcipher_tfm()
202 static inline void crypto_free_skcipher(struct crypto_skcipher *tfm) in crypto_free_skcipher()
[all …]
/OK3568_Linux_fs/kernel/drivers/crypto/rockchip/
H A Drk3288_crypto_skcipher.c31 static int rk_aes_setkey(struct crypto_skcipher *cipher, in rk_aes_setkey()
45 static int rk_des_setkey(struct crypto_skcipher *cipher, in rk_des_setkey()
60 static int rk_tdes_setkey(struct crypto_skcipher *cipher, in rk_tdes_setkey()
77 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_aes_ecb_encrypt()
87 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_aes_ecb_decrypt()
97 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_aes_cbc_encrypt()
107 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_aes_cbc_decrypt()
117 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_des_ecb_encrypt()
127 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_des_ecb_decrypt()
137 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_des_cbc_encrypt()
[all …]
H A Drk_crypto_v1_skcipher.c22 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_alg_ctx_cast()
95 static int rk_cipher_setkey(struct crypto_skcipher *cipher, in rk_cipher_setkey()
145 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_cipher_encrypt()
165 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_cipher_decrypt()
189 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req); in rk_ablk_hw_init()
245 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_set_data_start()
293 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_iv_copyback()
314 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_update_iv()
369 static int rk_ablk_init_tfm(struct crypto_skcipher *tfm) in rk_ablk_init_tfm()
400 static void rk_ablk_exit_tfm(struct crypto_skcipher *tfm) in rk_ablk_exit_tfm()
/OK3568_Linux_fs/kernel/crypto/
H A Dcfb.c31 static unsigned int crypto_cfb_bsize(struct crypto_skcipher *tfm) in crypto_cfb_bsize()
36 static void crypto_cfb_encrypt_one(struct crypto_skcipher *tfm, in crypto_cfb_encrypt_one()
44 struct crypto_skcipher *tfm) in crypto_cfb_final()
59 struct crypto_skcipher *tfm) in crypto_cfb_encrypt_segment()
82 struct crypto_skcipher *tfm) in crypto_cfb_encrypt_inplace()
105 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cfb_encrypt()
129 struct crypto_skcipher *tfm) in crypto_cfb_decrypt_segment()
152 struct crypto_skcipher *tfm) in crypto_cfb_decrypt_inplace()
171 struct crypto_skcipher *tfm) in crypto_cfb_decrypt_blocks()
181 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cfb_decrypt()
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 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 Dcbc.c18 struct crypto_skcipher *skcipher) in crypto_cbc_encrypt_segment()
46 struct crypto_skcipher *skcipher) in crypto_cbc_encrypt_inplace()
75 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in crypto_cbc_encrypt()
93 struct crypto_skcipher *skcipher) in crypto_cbc_decrypt_segment()
123 struct crypto_skcipher *skcipher) in crypto_cbc_decrypt_inplace()
157 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in crypto_cbc_decrypt()
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()
144 struct crypto_skcipher *tfm; in simd_skcipher_create_compat()
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 Darc4.c18 static int crypto_arc4_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in crypto_arc4_setkey()
28 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_arc4_crypt()
44 static int crypto_arc4_init(struct crypto_skcipher *tfm) in crypto_arc4_init()
/OK3568_Linux_fs/kernel/drivers/crypto/vmx/
H A Daes_cbc.c19 struct crypto_skcipher *fallback;
24 static int p8_aes_cbc_init(struct crypto_skcipher *tfm) in p8_aes_cbc_init()
27 struct crypto_skcipher *fallback; in p8_aes_cbc_init()
44 static void p8_aes_cbc_exit(struct crypto_skcipher *tfm) in p8_aes_cbc_exit()
51 static int p8_aes_cbc_setkey(struct crypto_skcipher *tfm, const u8 *key, in p8_aes_cbc_setkey()
73 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in p8_aes_cbc_crypt()
H A Daes_ctr.c19 struct crypto_skcipher *fallback;
23 static int p8_aes_ctr_init(struct crypto_skcipher *tfm) in p8_aes_ctr_init()
26 struct crypto_skcipher *fallback; in p8_aes_ctr_init()
43 static void p8_aes_ctr_exit(struct crypto_skcipher *tfm) in p8_aes_ctr_exit()
50 static int p8_aes_ctr_setkey(struct crypto_skcipher *tfm, const u8 *key, in p8_aes_ctr_setkey()
92 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in p8_aes_ctr_crypt()
H A Daes_xts.c20 struct crypto_skcipher *fallback;
26 static int p8_aes_xts_init(struct crypto_skcipher *tfm) in p8_aes_xts_init()
29 struct crypto_skcipher *fallback; in p8_aes_xts_init()
46 static void p8_aes_xts_exit(struct crypto_skcipher *tfm) in p8_aes_xts_exit()
53 static int p8_aes_xts_setkey(struct crypto_skcipher *tfm, const u8 *key, in p8_aes_xts_setkey()
80 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in p8_aes_xts_crypt()
/OK3568_Linux_fs/kernel/drivers/crypto/allwinner/sun4i-ss/
H A Dsun4i-ss-cipher.c17 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_opti_poll()
146 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cipher_poll_fallback()
167 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cipher_poll()
386 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_aes_encrypt()
397 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_aes_decrypt()
409 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_ecb_aes_encrypt()
420 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_ecb_aes_decrypt()
432 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_des_encrypt()
443 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_des_decrypt()
455 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_ecb_des_encrypt()
[all …]
H A Dsun4i-ss.h175 struct crypto_skcipher *fallback_tfm;
221 int sun4i_ss_aes_setkey(struct crypto_skcipher *tfm, const u8 *key,
223 int sun4i_ss_des_setkey(struct crypto_skcipher *tfm, const u8 *key,
225 int sun4i_ss_des3_setkey(struct crypto_skcipher *tfm, const u8 *key,
/OK3568_Linux_fs/kernel/arch/arm/crypto/
H A Daes-neonbs-glue.c54 struct crypto_skcipher *enc_tfm;
68 static int aesbs_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_setkey()
92 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __ecb_crypt()
127 static int aesbs_cbc_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_cbc_setkey()
151 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt()
166 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt()
192 static int cbc_init(struct crypto_skcipher *tfm) in cbc_init()
209 static void cbc_exit(struct crypto_skcipher *tfm) in cbc_exit()
216 static int aesbs_ctr_setkey_sync(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_ctr_setkey_sync()
237 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr_encrypt()
[all …]
/OK3568_Linux_fs/kernel/include/crypto/internal/
H A Dskcipher.h76 struct crypto_skcipher *skcipher) in skcipher_alg_instance()
113 static inline struct crypto_skcipher *crypto_spawn_skcipher( in crypto_spawn_skcipher()
120 struct crypto_skcipher *skcipher, unsigned int reqsize) in crypto_skcipher_set_reqsize()
150 static inline void *crypto_skcipher_ctx(struct crypto_skcipher *tfm) in crypto_skcipher_ctx()
195 struct crypto_skcipher *tfm) in crypto_skcipher_walksize()
205 skcipher_cipher_simple(struct crypto_skcipher *tfm) in skcipher_cipher_simple()
H A Dchacha.h15 static inline int chacha_setkey(struct crypto_skcipher *tfm, const u8 *key, in chacha_setkey()
31 static inline int chacha20_setkey(struct crypto_skcipher *tfm, const u8 *key, in chacha20_setkey()
37 static inline int chacha12_setkey(struct crypto_skcipher *tfm, const u8 *key, in chacha12_setkey()
/OK3568_Linux_fs/kernel/arch/s390/crypto/
H A Dpaes_s390.c153 static int ecb_paes_init(struct crypto_skcipher *tfm) in ecb_paes_init()
163 static void ecb_paes_exit(struct crypto_skcipher *tfm) in ecb_paes_exit()
188 static int ecb_paes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, in ecb_paes_set_key()
204 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_paes_crypt()
266 static int cbc_paes_init(struct crypto_skcipher *tfm) in cbc_paes_init()
276 static void cbc_paes_exit(struct crypto_skcipher *tfm) in cbc_paes_exit()
301 static int cbc_paes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, in cbc_paes_set_key()
317 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_paes_crypt()
384 static int xts_paes_init(struct crypto_skcipher *tfm) in xts_paes_init()
395 static void xts_paes_exit(struct crypto_skcipher *tfm) in xts_paes_exit()
[all …]
H A Daes_s390.c48 struct crypto_skcipher *skcipher;
58 struct crypto_skcipher *fallback;
175 static int setkey_fallback_skcipher(struct crypto_skcipher *tfm, const u8 *key, in setkey_fallback_skcipher()
201 static int ecb_aes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, in ecb_aes_set_key()
224 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_aes_crypt()
254 static int fallback_init_skcipher(struct crypto_skcipher *tfm) in fallback_init_skcipher()
273 static void fallback_exit_skcipher(struct crypto_skcipher *tfm) in fallback_exit_skcipher()
297 static int cbc_aes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, in cbc_aes_set_key()
320 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_aes_crypt()
378 static int xts_fallback_setkey(struct crypto_skcipher *tfm, const u8 *key, in xts_fallback_setkey()
[all …]
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/drivers/crypto/amcc/
H A Dcrypto4xx_core.h163 int crypto4xx_setkey_aes_cbc(struct crypto_skcipher *cipher,
165 int crypto4xx_setkey_aes_cfb(struct crypto_skcipher *cipher,
167 int crypto4xx_setkey_aes_ctr(struct crypto_skcipher *cipher,
169 int crypto4xx_setkey_aes_ecb(struct crypto_skcipher *cipher,
171 int crypto4xx_setkey_aes_ofb(struct crypto_skcipher *cipher,
173 int crypto4xx_setkey_rfc3686(struct crypto_skcipher *cipher,
H A Dcrypto4xx_alg.c73 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req); in crypto4xx_crypt()
121 static int crypto4xx_setkey_aes(struct crypto_skcipher *cipher, in crypto4xx_setkey_aes()
177 int crypto4xx_setkey_aes_cbc(struct crypto_skcipher *cipher, in crypto4xx_setkey_aes_cbc()
184 int crypto4xx_setkey_aes_cfb(struct crypto_skcipher *cipher, in crypto4xx_setkey_aes_cfb()
191 int crypto4xx_setkey_aes_ecb(struct crypto_skcipher *cipher, in crypto4xx_setkey_aes_ecb()
198 int crypto4xx_setkey_aes_ofb(struct crypto_skcipher *cipher, in crypto4xx_setkey_aes_ofb()
205 int crypto4xx_setkey_rfc3686(struct crypto_skcipher *cipher, in crypto4xx_setkey_rfc3686()
224 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req); in crypto4xx_rfc3686_encrypt()
239 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req); in crypto4xx_rfc3686_decrypt()
255 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req); in crypto4xx_ctr_crypt()
[all …]
/OK3568_Linux_fs/kernel/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()
289 static int cvm_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_setkey()
304 static int cvm_cbc_aes_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_cbc_aes_setkey()
310 static int cvm_ecb_aes_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_ecb_aes_setkey()
316 static int cvm_cfb_aes_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_cfb_aes_setkey()
322 static int cvm_cbc_des3_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_cbc_des3_setkey()
329 static int cvm_ecb_des3_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_ecb_des3_setkey()
336 static int cvm_enc_dec_init(struct crypto_skcipher *tfm) in cvm_enc_dec_init()
/OK3568_Linux_fs/kernel/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 …]

1234567