Home
last modified time | relevance | path

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

1234

/Linux-v5.4/include/crypto/
Dskcipher.h37 struct crypto_skcipher { struct
38 int (*setkey)(struct crypto_skcipher *tfm, const u8 *key, argument
51 struct crypto_skcipher base; argument
112 int (*setkey)(struct crypto_skcipher *tfm, const u8 *key,
116 int (*init)(struct crypto_skcipher *tfm);
117 void (*exit)(struct crypto_skcipher *tfm);
171 static inline struct crypto_skcipher *__crypto_skcipher_cast( in __crypto_skcipher_cast()
174 return container_of(tfm, struct crypto_skcipher, base); in __crypto_skcipher_cast()
191 struct crypto_skcipher *crypto_alloc_skcipher(const char *alg_name,
198 struct crypto_skcipher *tfm) in crypto_skcipher_tfm()
[all …]
Dcbc.h16 struct skcipher_walk *walk, struct crypto_skcipher *tfm, in crypto_cbc_encrypt_segment()
17 void (*fn)(struct crypto_skcipher *, const u8 *, u8 *)) in crypto_cbc_encrypt_segment() argument
38 struct skcipher_walk *walk, struct crypto_skcipher *tfm, in crypto_cbc_encrypt_inplace()
39 void (*fn)(struct crypto_skcipher *, const u8 *, u8 *)) in crypto_cbc_encrypt_inplace() argument
60 void (*fn)(struct crypto_skcipher *, in crypto_cbc_encrypt_walk() argument
63 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cbc_encrypt_walk()
81 struct skcipher_walk *walk, struct crypto_skcipher *tfm, in crypto_cbc_decrypt_segment()
82 void (*fn)(struct crypto_skcipher *, const u8 *, u8 *)) in crypto_cbc_decrypt_segment() argument
105 struct skcipher_walk *walk, struct crypto_skcipher *tfm, in crypto_cbc_decrypt_inplace()
106 void (*fn)(struct crypto_skcipher *, const u8 *, u8 *)) in crypto_cbc_decrypt_inplace() argument
[all …]
Dchacha.h46 int crypto_chacha20_setkey(struct crypto_skcipher *tfm, const u8 *key,
48 int crypto_chacha12_setkey(struct crypto_skcipher *tfm, const u8 *key,
/Linux-v5.4/crypto/
Dcfb.c30 static unsigned int crypto_cfb_bsize(struct crypto_skcipher *tfm) in crypto_cfb_bsize()
35 static void crypto_cfb_encrypt_one(struct crypto_skcipher *tfm, in crypto_cfb_encrypt_one()
43 struct crypto_skcipher *tfm) in crypto_cfb_final()
58 struct crypto_skcipher *tfm) in crypto_cfb_encrypt_segment()
81 struct crypto_skcipher *tfm) in crypto_cfb_encrypt_inplace()
104 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cfb_encrypt()
128 struct crypto_skcipher *tfm) in crypto_cfb_decrypt_segment()
151 struct crypto_skcipher *tfm) in crypto_cfb_decrypt_inplace()
170 struct crypto_skcipher *tfm) in crypto_cfb_decrypt_blocks()
180 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cfb_decrypt()
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()
105 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cts_cbc_encrypt()
149 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cts_encrypt()
186 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cts_cbc_decrypt()
243 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cts_decrypt()
287 static int crypto_cts_init_tfm(struct crypto_skcipher *tfm) in crypto_cts_init_tfm()
[all …]
Dskcipher.c451 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in skcipher_walk_skcipher()
592 static void skcipher_set_needkey(struct crypto_skcipher *tfm) in skcipher_set_needkey()
598 static int skcipher_setkey_blkcipher(struct crypto_skcipher *tfm, in skcipher_setkey_blkcipher()
626 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in skcipher_crypt_blkcipher()
640 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_encrypt_blkcipher()
649 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_decrypt_blkcipher()
666 struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm); in crypto_init_skcipher_ops_blkcipher()
697 static int skcipher_setkey_ablkcipher(struct crypto_skcipher *tfm, in skcipher_setkey_ablkcipher()
724 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in skcipher_crypt_ablkcipher()
739 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_encrypt_ablkcipher()
[all …]
Dctr.c18 struct crypto_skcipher *child;
100 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()
197 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_rfc3686_crypt()
199 struct crypto_skcipher *child = ctx->child; in crypto_rfc3686_crypt()
223 static int crypto_rfc3686_init_tfm(struct crypto_skcipher *tfm) in crypto_rfc3686_init_tfm()
228 struct crypto_skcipher *cipher; in crypto_rfc3686_init_tfm()
247 static void crypto_rfc3686_exit_tfm(struct crypto_skcipher *tfm) in crypto_rfc3686_exit_tfm()
Dcbc.c17 static inline void crypto_cbc_encrypt_one(struct crypto_skcipher *tfm, in crypto_cbc_encrypt_one()
28 static inline void crypto_cbc_decrypt_one(struct crypto_skcipher *tfm, in crypto_cbc_decrypt_one()
36 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cbc_decrypt()
Dchacha_generic.c80 static int chacha_setkey(struct crypto_skcipher *tfm, const u8 *key, in chacha_setkey()
96 int crypto_chacha20_setkey(struct crypto_skcipher *tfm, const u8 *key, in crypto_chacha20_setkey()
103 int crypto_chacha12_setkey(struct crypto_skcipher *tfm, const u8 *key, in crypto_chacha12_setkey()
112 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_chacha_crypt()
121 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_xchacha_crypt()
Dlrw.c31 struct crypto_skcipher *child;
68 static int setkey(struct crypto_skcipher *parent, const u8 *key, in setkey()
72 struct crypto_skcipher *child = ctx->child; in setkey()
145 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xor_tweak()
264 static int init_tfm(struct crypto_skcipher *tfm) in init_tfm()
269 struct crypto_skcipher *cipher; in init_tfm()
283 static void exit_tfm(struct crypto_skcipher *tfm) in exit_tfm()
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()
68 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in simd_skcipher_encrypt()
71 struct crypto_skcipher *child; in simd_skcipher_encrypt()
89 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in simd_skcipher_decrypt()
92 struct crypto_skcipher *child; in simd_skcipher_decrypt()
108 static void simd_skcipher_exit(struct crypto_skcipher *tfm) in simd_skcipher_exit()
115 static int simd_skcipher_init(struct crypto_skcipher *tfm) in simd_skcipher_init()
148 struct crypto_skcipher *tfm; in simd_skcipher_create_compat()
Dalgif_skcipher.c44 struct crypto_skcipher *tfm = pask->private; in skcipher_sendmsg()
58 struct crypto_skcipher *tfm = pask->private; in _skcipher_recvmsg()
213 struct crypto_skcipher *tfm; in skcipher_check_key()
325 struct crypto_skcipher *tfm = pask->private; in skcipher_sock_destruct()
337 struct crypto_skcipher *tfm = private; in skcipher_accept_parent_nokey()
371 struct crypto_skcipher *tfm = private; in skcipher_accept_parent()
/Linux-v5.4/drivers/crypto/vmx/
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()
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()
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()
/Linux-v5.4/drivers/crypto/sunxi-ss/
Dsun4i-ss-cipher.c17 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_opti_poll()
120 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cipher_poll_fallback()
143 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cipher_poll()
343 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_aes_encrypt()
354 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_aes_decrypt()
366 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_ecb_aes_encrypt()
377 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_ecb_aes_decrypt()
389 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_des_encrypt()
400 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_des_decrypt()
412 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_ecb_des_encrypt()
[all …]
/Linux-v5.4/include/crypto/internal/
Dskcipher.h75 struct crypto_skcipher *skcipher) in skcipher_alg_instance()
117 static inline struct crypto_skcipher *crypto_spawn_skcipher( in crypto_spawn_skcipher()
124 struct crypto_skcipher *skcipher, unsigned int reqsize) in crypto_skcipher_set_reqsize()
167 static inline void *crypto_skcipher_ctx(struct crypto_skcipher *tfm) in crypto_skcipher_ctx()
246 struct crypto_skcipher *tfm) in crypto_skcipher_chunksize()
263 struct crypto_skcipher *tfm) in crypto_skcipher_walksize()
273 skcipher_cipher_simple(struct crypto_skcipher *tfm) in skcipher_cipher_simple()
/Linux-v5.4/drivers/crypto/amcc/
Dcrypto4xx_core.h162 int crypto4xx_setkey_aes_cbc(struct crypto_skcipher *cipher,
164 int crypto4xx_setkey_aes_cfb(struct crypto_skcipher *cipher,
166 int crypto4xx_setkey_aes_ctr(struct crypto_skcipher *cipher,
168 int crypto4xx_setkey_aes_ecb(struct crypto_skcipher *cipher,
170 int crypto4xx_setkey_aes_ofb(struct crypto_skcipher *cipher,
172 int crypto4xx_setkey_rfc3686(struct crypto_skcipher *cipher,
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()
180 int crypto4xx_setkey_aes_cbc(struct crypto_skcipher *cipher, in crypto4xx_setkey_aes_cbc()
187 int crypto4xx_setkey_aes_cfb(struct crypto_skcipher *cipher, in crypto4xx_setkey_aes_cfb()
194 int crypto4xx_setkey_aes_ecb(struct crypto_skcipher *cipher, in crypto4xx_setkey_aes_ecb()
201 int crypto4xx_setkey_aes_ofb(struct crypto_skcipher *cipher, in crypto4xx_setkey_aes_ofb()
208 int crypto4xx_setkey_rfc3686(struct crypto_skcipher *cipher, in crypto4xx_setkey_rfc3686()
227 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req); in crypto4xx_rfc3686_encrypt()
242 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req); in crypto4xx_rfc3686_decrypt()
258 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req); in crypto4xx_ctr_crypt()
[all …]
/Linux-v5.4/drivers/crypto/cavium/nitrox/
Dnitrox_skcipher.c50 static int nitrox_skcipher_init(struct crypto_skcipher *tfm) in nitrox_skcipher_init()
74 static void nitrox_skcipher_exit(struct crypto_skcipher *tfm) in nitrox_skcipher_exit()
92 static inline int nitrox_skcipher_setkey(struct crypto_skcipher *cipher, in nitrox_skcipher_setkey()
124 static int nitrox_aes_setkey(struct crypto_skcipher *cipher, const u8 *key, in nitrox_aes_setkey()
206 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(skreq); in nitrox_skcipher_crypt()
257 static int nitrox_3des_setkey(struct crypto_skcipher *cipher, in nitrox_3des_setkey()
274 static int nitrox_aes_xts_setkey(struct crypto_skcipher *cipher, in nitrox_aes_xts_setkey()
301 static int nitrox_aes_ctr_rfc3686_setkey(struct crypto_skcipher *cipher, in nitrox_aes_ctr_rfc3686_setkey()
/Linux-v5.4/drivers/crypto/hisilicon/sec/
Dsec_algs.c142 static void sec_alg_skcipher_init_context(struct crypto_skcipher *atfm, in sec_alg_skcipher_init_context()
226 static int sec_alg_skcipher_setkey(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey()
252 static int sec_alg_skcipher_setkey_aes_ecb(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_aes_ecb()
274 static int sec_alg_skcipher_setkey_aes_cbc(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_aes_cbc()
296 static int sec_alg_skcipher_setkey_aes_ctr(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_aes_ctr()
318 static int sec_alg_skcipher_setkey_aes_xts(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_aes_xts()
342 static int sec_alg_skcipher_setkey_des_ecb(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_des_ecb()
349 static int sec_alg_skcipher_setkey_des_cbc(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_des_cbc()
356 static int sec_alg_skcipher_setkey_3des_ecb(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_3des_ecb()
364 static int sec_alg_skcipher_setkey_3des_cbc(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_3des_cbc()
[all …]
/Linux-v5.4/arch/arm/crypto/
Daes-neonbs-glue.c66 static int aesbs_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_setkey()
90 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __ecb_crypt()
125 static int aesbs_cbc_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_cbc_setkey()
145 static void cbc_encrypt_one(struct crypto_skcipher *tfm, const u8 *src, u8 *dst) in cbc_encrypt_one()
159 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt()
201 static int aesbs_ctr_setkey_sync(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_ctr_setkey_sync()
222 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr_encrypt()
262 static void ctr_encrypt_one(struct crypto_skcipher *tfm, const u8 *src, u8 *dst) in ctr_encrypt_one()
285 static int aesbs_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_xts_setkey()
333 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __xts_crypt()
Daes-ce-glue.c137 static int ce_aes_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in ce_aes_setkey()
156 static int xts_set_key(struct crypto_skcipher *tfm, const u8 *in_key, in xts_set_key()
179 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_encrypt()
199 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_decrypt()
220 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt_walk()
250 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt_walk()
279 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cts_cbc_encrypt()
337 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cts_cbc_decrypt()
395 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr_encrypt()
431 static void ctr_encrypt_one(struct crypto_skcipher *tfm, const u8 *src, u8 *dst) in ctr_encrypt_one()
[all …]
/Linux-v5.4/arch/arm64/crypto/
Daes-neonbs-glue.c77 static int aesbs_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_setkey()
101 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __ecb_crypt()
136 static int aesbs_cbc_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_cbc_setkey()
160 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt()
183 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt()
209 static int aesbs_ctr_setkey_sync(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_ctr_setkey_sync()
230 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr_encrypt()
269 static int aesbs_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_xts_setkey()
294 static void ctr_encrypt_one(struct crypto_skcipher *tfm, const u8 *src, u8 *dst) in ctr_encrypt_one()
321 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __xts_crypt()
Daes-glue.c131 static int skcipher_aes_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in skcipher_aes_setkey()
144 static int __maybe_unused xts_set_key(struct crypto_skcipher *tfm, in xts_set_key()
165 static int __maybe_unused essiv_cbc_set_key(struct crypto_skcipher *tfm, in essiv_cbc_set_key()
193 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_encrypt()
213 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_decrypt()
234 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt_walk()
263 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt_walk()
291 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cts_cbc_encrypt()
348 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cts_cbc_decrypt()
403 static int __maybe_unused essiv_cbc_init_tfm(struct crypto_skcipher *tfm) in essiv_cbc_init_tfm()
[all …]

1234