Home
last modified time | relevance | path

Searched defs:tfm (Results 1 – 200 of 215) sorted by relevance

12

/linux-4.1.27/include/linux/
Dcrypto.h160 struct crypto_tfm *tfm; member
205 struct crypto_blkcipher *tfm; member
211 struct crypto_tfm *tfm; member
219 struct crypto_hash *tfm; member
754 static inline void crypto_free_tfm(struct crypto_tfm *tfm) in crypto_free_tfm()
764 static inline const char *crypto_tfm_alg_name(struct crypto_tfm *tfm) in crypto_tfm_alg_name()
769 static inline const char *crypto_tfm_alg_driver_name(struct crypto_tfm *tfm) in crypto_tfm_alg_driver_name()
774 static inline int crypto_tfm_alg_priority(struct crypto_tfm *tfm) in crypto_tfm_alg_priority()
779 static inline u32 crypto_tfm_alg_type(struct crypto_tfm *tfm) in crypto_tfm_alg_type()
784 static inline unsigned int crypto_tfm_alg_blocksize(struct crypto_tfm *tfm) in crypto_tfm_alg_blocksize()
[all …]
/linux-4.1.27/include/crypto/
Drng.h30 static inline struct crypto_rng *__crypto_rng_cast(struct crypto_tfm *tfm) in __crypto_rng_cast()
65 static inline struct crypto_tfm *crypto_rng_tfm(struct crypto_rng *tfm) in crypto_rng_tfm()
78 static inline struct rng_alg *crypto_rng_alg(struct crypto_rng *tfm) in crypto_rng_alg()
83 static inline struct rng_tfm *crypto_rng_crt(struct crypto_rng *tfm) in crypto_rng_crt()
92 static inline void crypto_free_rng(struct crypto_rng *tfm) in crypto_free_rng()
108 static inline int crypto_rng_get_bytes(struct crypto_rng *tfm, in crypto_rng_get_bytes()
131 static inline int crypto_rng_reset(struct crypto_rng *tfm, in crypto_rng_reset()
149 static inline int crypto_rng_seedsize(struct crypto_rng *tfm) in crypto_rng_seedsize()
Dhash.h138 struct crypto_shash *tfm; member
221 static inline struct crypto_ahash *__crypto_ahash_cast(struct crypto_tfm *tfm) in __crypto_ahash_cast()
243 static inline struct crypto_tfm *crypto_ahash_tfm(struct crypto_ahash *tfm) in crypto_ahash_tfm()
252 static inline void crypto_free_ahash(struct crypto_ahash *tfm) in crypto_free_ahash()
258 struct crypto_ahash *tfm) in crypto_ahash_alignmask()
270 struct crypto_ahash *tfm) in crypto_hash_alg_common()
285 static inline unsigned int crypto_ahash_digestsize(struct crypto_ahash *tfm) in crypto_ahash_digestsize()
290 static inline unsigned int crypto_ahash_statesize(struct crypto_ahash *tfm) in crypto_ahash_statesize()
295 static inline u32 crypto_ahash_get_flags(struct crypto_ahash *tfm) in crypto_ahash_get_flags()
300 static inline void crypto_ahash_set_flags(struct crypto_ahash *tfm, u32 flags) in crypto_ahash_set_flags()
[all …]
Dcompress.h79 static inline struct crypto_tfm *crypto_pcomp_tfm(struct crypto_pcomp *tfm) in crypto_pcomp_tfm()
84 static inline void crypto_free_pcomp(struct crypto_pcomp *tfm) in crypto_free_pcomp()
94 static inline struct pcomp_alg *crypto_pcomp_alg(struct crypto_pcomp *tfm) in crypto_pcomp_alg()
99 static inline int crypto_compress_setup(struct crypto_pcomp *tfm, in crypto_compress_setup()
105 static inline int crypto_compress_init(struct crypto_pcomp *tfm) in crypto_compress_init()
110 static inline int crypto_compress_update(struct crypto_pcomp *tfm, in crypto_compress_update()
116 static inline int crypto_compress_final(struct crypto_pcomp *tfm, in crypto_compress_final()
122 static inline int crypto_decompress_setup(struct crypto_pcomp *tfm, in crypto_decompress_setup()
128 static inline int crypto_decompress_init(struct crypto_pcomp *tfm) in crypto_decompress_init()
133 static inline int crypto_decompress_update(struct crypto_pcomp *tfm, in crypto_decompress_update()
[all …]
Dcryptd.h24 struct crypto_ablkcipher *tfm) in __cryptd_ablkcipher_cast()
40 struct crypto_ahash *tfm) in __cryptd_ahash_cast()
57 struct crypto_aead *tfm) in __cryptd_aead_cast()
Dalgapi.h209 static inline void *crypto_tfm_ctx_aligned(struct crypto_tfm *tfm) in crypto_tfm_ctx_aligned()
216 struct crypto_tfm *tfm) in crypto_tfm_alg_instance()
227 struct crypto_ablkcipher *tfm) in crypto_ablkcipher_alg()
232 static inline void *crypto_ablkcipher_ctx(struct crypto_ablkcipher *tfm) in crypto_ablkcipher_ctx()
237 static inline void *crypto_ablkcipher_ctx_aligned(struct crypto_ablkcipher *tfm) in crypto_ablkcipher_ctx_aligned()
242 static inline struct aead_alg *crypto_aead_alg(struct crypto_aead *tfm) in crypto_aead_alg()
247 static inline void *crypto_aead_ctx(struct crypto_aead *tfm) in crypto_aead_ctx()
267 static inline void *crypto_blkcipher_ctx(struct crypto_blkcipher *tfm) in crypto_blkcipher_ctx()
272 static inline void *crypto_blkcipher_ctx_aligned(struct crypto_blkcipher *tfm) in crypto_blkcipher_ctx_aligned()
286 static inline struct cipher_alg *crypto_cipher_alg(struct crypto_cipher *tfm) in crypto_cipher_alg()
[all …]
Dskcipher.h56 struct skcipher_givcrypt_request *req, struct crypto_ablkcipher *tfm) in skcipher_givcrypt_set_tfm()
69 struct crypto_ablkcipher *tfm, gfp_t gfp) in skcipher_givcrypt_alloc()
Daead.h52 struct crypto_aead *tfm) in aead_givcrypt_set_tfm()
58 struct crypto_aead *tfm, gfp_t gfp) in aead_givcrypt_alloc()
Dmcryptd.h22 struct crypto_ahash *tfm) in __mcryptd_ahash_cast()
/linux-4.1.27/crypto/
Dablk_helper.c37 int ablk_set_key(struct crypto_ablkcipher *tfm, const u8 *key, in ablk_set_key()
56 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); in __ablk_encrypt() local
71 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); in ablk_encrypt() local
90 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); in ablk_decrypt() local
114 void ablk_exit(struct crypto_tfm *tfm) in ablk_exit()
122 int ablk_init_common(struct crypto_tfm *tfm, const char *drv_name) in ablk_init_common()
140 int ablk_init(struct crypto_tfm *tfm) in ablk_init()
Dcipher.c23 static int setkey_unaligned(struct crypto_tfm *tfm, const u8 *key, in setkey_unaligned()
46 static int setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) in setkey()
65 struct crypto_tfm *tfm, in cipher_crypt_unaligned()
78 static void cipher_encrypt_unaligned(struct crypto_tfm *tfm, in cipher_encrypt_unaligned()
92 static void cipher_decrypt_unaligned(struct crypto_tfm *tfm, in cipher_decrypt_unaligned()
106 int crypto_init_cipher_ops(struct crypto_tfm *tfm) in crypto_init_cipher_ops()
120 void crypto_exit_cipher_ops(struct crypto_tfm *tfm) in crypto_exit_cipher_ops()
Dzlib.c67 static int zlib_init(struct crypto_tfm *tfm) in zlib_init()
72 static void zlib_exit(struct crypto_tfm *tfm) in zlib_exit()
81 static int zlib_compress_setup(struct crypto_pcomp *tfm, void *params, in zlib_compress_setup()
130 static int zlib_compress_init(struct crypto_pcomp *tfm) in zlib_compress_init()
143 static int zlib_compress_update(struct crypto_pcomp *tfm, in zlib_compress_update()
181 static int zlib_compress_final(struct crypto_pcomp *tfm, in zlib_compress_final()
212 static int zlib_decompress_setup(struct crypto_pcomp *tfm, void *params, in zlib_decompress_setup()
244 static int zlib_decompress_init(struct crypto_pcomp *tfm) in zlib_decompress_init()
257 static int zlib_decompress_update(struct crypto_pcomp *tfm, in zlib_decompress_update()
296 static int zlib_decompress_final(struct crypto_pcomp *tfm, in zlib_decompress_final()
Dcompress.c20 static int crypto_compress(struct crypto_tfm *tfm, in crypto_compress()
28 static int crypto_decompress(struct crypto_tfm *tfm, in crypto_decompress()
36 int crypto_init_compress_ops(struct crypto_tfm *tfm) in crypto_init_compress_ops()
46 void crypto_exit_compress_ops(struct crypto_tfm *tfm) in crypto_exit_compress_ops()
Dcbc.c44 struct crypto_cipher *tfm) in crypto_cbc_encrypt_segment()
68 struct crypto_cipher *tfm) in crypto_cbc_encrypt_inplace()
95 struct crypto_blkcipher *tfm = desc->tfm; in crypto_cbc_encrypt() local
116 struct crypto_cipher *tfm) in crypto_cbc_decrypt_segment()
142 struct crypto_cipher *tfm) in crypto_cbc_decrypt_inplace()
174 struct crypto_blkcipher *tfm = desc->tfm; in crypto_cbc_decrypt() local
193 static int crypto_cbc_init_tfm(struct crypto_tfm *tfm) in crypto_cbc_init_tfm()
208 static void crypto_cbc_exit_tfm(struct crypto_tfm *tfm) in crypto_cbc_exit_tfm()
Dpcbc.c47 struct crypto_cipher *tfm) in crypto_pcbc_encrypt_segment()
72 struct crypto_cipher *tfm) in crypto_pcbc_encrypt_inplace()
102 struct crypto_blkcipher *tfm = desc->tfm; in crypto_pcbc_encrypt() local
125 struct crypto_cipher *tfm) in crypto_pcbc_decrypt_segment()
152 struct crypto_cipher *tfm) in crypto_pcbc_decrypt_inplace()
182 struct crypto_blkcipher *tfm = desc->tfm; in crypto_pcbc_decrypt() local
203 static int crypto_pcbc_init_tfm(struct crypto_tfm *tfm) in crypto_pcbc_init_tfm()
218 static void crypto_pcbc_exit_tfm(struct crypto_tfm *tfm) in crypto_pcbc_exit_tfm()
Dtea.c47 static int tea_setkey(struct crypto_tfm *tfm, const u8 *in_key, in tea_setkey()
62 static void tea_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in tea_encrypt()
90 static void tea_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in tea_decrypt()
120 static int xtea_setkey(struct crypto_tfm *tfm, const u8 *in_key, in xtea_setkey()
135 static void xtea_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in xtea_encrypt()
156 static void xtea_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in xtea_decrypt()
179 static void xeta_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in xeta_encrypt()
200 static void xeta_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in xeta_decrypt()
Dshash.c27 static int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, in shash_no_setkey()
33 static int shash_setkey_unaligned(struct crypto_shash *tfm, const u8 *key, in shash_setkey_unaligned()
54 int crypto_shash_setkey(struct crypto_shash *tfm, const u8 *key, in crypto_shash_setkey()
77 struct crypto_shash *tfm = desc->tfm; in shash_update_unaligned() local
101 struct crypto_shash *tfm = desc->tfm; in crypto_shash_update() local
114 struct crypto_shash *tfm = desc->tfm; in shash_final_unaligned() local
136 struct crypto_shash *tfm = desc->tfm; in crypto_shash_final() local
157 struct crypto_shash *tfm = desc->tfm; in crypto_shash_finup() local
178 struct crypto_shash *tfm = desc->tfm; in crypto_shash_digest() local
201 static int shash_async_setkey(struct crypto_ahash *tfm, const u8 *key, in shash_async_setkey()
[all …]
Dlzo.c30 static int lzo_init(struct crypto_tfm *tfm) in lzo_init()
44 static void lzo_exit(struct crypto_tfm *tfm) in lzo_exit()
51 static int lzo_compress(struct crypto_tfm *tfm, const u8 *src, in lzo_compress()
67 static int lzo_decompress(struct crypto_tfm *tfm, const u8 *src, in lzo_decompress()
Dlz4.c31 static int lz4_init(struct crypto_tfm *tfm) in lz4_init()
42 static void lz4_exit(struct crypto_tfm *tfm) in lz4_exit()
48 static int lz4_compress_crypto(struct crypto_tfm *tfm, const u8 *src, in lz4_compress_crypto()
64 static int lz4_decompress_crypto(struct crypto_tfm *tfm, const u8 *src, in lz4_decompress_crypto()
Dlz4hc.c30 static int lz4hc_init(struct crypto_tfm *tfm) in lz4hc_init()
41 static void lz4hc_exit(struct crypto_tfm *tfm) in lz4hc_exit()
48 static int lz4hc_compress_crypto(struct crypto_tfm *tfm, const u8 *src, in lz4hc_compress_crypto()
64 static int lz4hc_decompress_crypto(struct crypto_tfm *tfm, const u8 *src, in lz4hc_decompress_crypto()
Dctr.c56 struct crypto_cipher *tfm) in crypto_ctr_crypt_final()
75 struct crypto_cipher *tfm) in crypto_ctr_crypt_segment()
101 struct crypto_cipher *tfm) in crypto_ctr_crypt_inplace()
132 struct crypto_blkcipher *tfm = desc->tfm; in crypto_ctr_crypt() local
158 static int crypto_ctr_init_tfm(struct crypto_tfm *tfm) in crypto_ctr_init_tfm()
174 static void crypto_ctr_exit_tfm(struct crypto_tfm *tfm) in crypto_ctr_exit_tfm()
280 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); in crypto_rfc3686_crypt() local
306 static int crypto_rfc3686_init_tfm(struct crypto_tfm *tfm) in crypto_rfc3686_init_tfm()
329 static void crypto_rfc3686_exit_tfm(struct crypto_tfm *tfm) in crypto_rfc3686_exit_tfm()
Dcryptd.c164 static inline struct cryptd_queue *cryptd_get_queue(struct crypto_tfm *tfm) in cryptd_get_queue()
253 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); in cryptd_blkcipher_enqueue() local
273 static int cryptd_blkcipher_init_tfm(struct crypto_tfm *tfm) in cryptd_blkcipher_init_tfm()
291 static void cryptd_blkcipher_exit_tfm(struct crypto_tfm *tfm) in cryptd_blkcipher_exit_tfm()
394 static int cryptd_hash_init_tfm(struct crypto_tfm *tfm) in cryptd_hash_init_tfm()
413 static void cryptd_hash_exit_tfm(struct crypto_tfm *tfm) in cryptd_hash_exit_tfm()
440 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cryptd_hash_enqueue() local
700 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cryptd_aead_enqueue() local
718 static int cryptd_aead_init_tfm(struct crypto_tfm *tfm) in cryptd_aead_init_tfm()
736 static void cryptd_aead_exit_tfm(struct crypto_tfm *tfm) in cryptd_aead_exit_tfm()
[all …]
Dblkcipher.c362 struct crypto_aead *tfm, in blkcipher_aead_walk_virt_block()
374 static int setkey_unaligned(struct crypto_tfm *tfm, const u8 *key, in setkey_unaligned()
396 static int setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) in setkey()
412 static int async_setkey(struct crypto_ablkcipher *tfm, const u8 *key, in async_setkey()
420 struct crypto_tfm *tfm = req->base.tfm; in async_encrypt() local
434 struct crypto_tfm *tfm = req->base.tfm; in async_decrypt() local
460 static int crypto_init_blkcipher_ops_async(struct crypto_tfm *tfm) in crypto_init_blkcipher_ops_async()
478 static int crypto_init_blkcipher_ops_sync(struct crypto_tfm *tfm) in crypto_init_blkcipher_ops_sync()
497 static int crypto_init_blkcipher_ops(struct crypto_tfm *tfm, u32 type, u32 mask) in crypto_init_blkcipher_ops()
720 int skcipher_geniv_init(struct crypto_tfm *tfm) in skcipher_geniv_init()
[all …]
Dansi_cprng.c54 struct crypto_cipher *tfm; member
327 static int cprng_init(struct crypto_tfm *tfm) in cprng_init()
351 static void cprng_exit(struct crypto_tfm *tfm) in cprng_exit()
356 static int cprng_get_random(struct crypto_rng *tfm, u8 *rdata, in cprng_get_random()
370 static int cprng_reset(struct crypto_rng *tfm, u8 *seed, unsigned int slen) in cprng_reset()
390 static int fips_cprng_get_random(struct crypto_rng *tfm, u8 *rdata, in fips_cprng_get_random()
398 static int fips_cprng_reset(struct crypto_rng *tfm, u8 *seed, unsigned int slen) in fips_cprng_reset()
Decb.c43 struct crypto_cipher *tfm, in crypto_ecb_crypt()
74 struct crypto_blkcipher *tfm = desc->tfm; in crypto_ecb_encrypt() local
88 struct crypto_blkcipher *tfm = desc->tfm; in crypto_ecb_decrypt() local
97 static int crypto_ecb_init_tfm(struct crypto_tfm *tfm) in crypto_ecb_init_tfm()
112 static void crypto_ecb_exit_tfm(struct crypto_tfm *tfm) in crypto_ecb_exit_tfm()
Dcrypto_null.c28 static int null_compress(struct crypto_tfm *tfm, const u8 *src, in null_compress()
60 static int null_hash_setkey(struct crypto_shash *tfm, const u8 *key, in null_hash_setkey()
64 static int null_setkey(struct crypto_tfm *tfm, const u8 *key, in null_setkey()
68 static void null_crypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in null_crypt()
D842.c50 static int nx842_init(struct crypto_tfm *tfm) in nx842_init()
63 static void nx842_exit(struct crypto_tfm *tfm) in nx842_exit()
77 static int nx842_crypto_compress(struct crypto_tfm *tfm, const u8 *src, in nx842_crypto_compress()
119 static int nx842_crypto_decompress(struct crypto_tfm *tfm, const u8 *src, in nx842_crypto_decompress()
Daead.c29 static int setkey_unaligned(struct crypto_aead *tfm, const u8 *key, in setkey_unaligned()
51 static int setkey(struct crypto_aead *tfm, const u8 *key, unsigned int keylen) in setkey()
62 int crypto_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in crypto_aead_setauthsize()
93 static int crypto_init_aead_ops(struct crypto_tfm *tfm, u32 type, u32 mask) in crypto_init_aead_ops()
177 static int crypto_init_nivaead_ops(struct crypto_tfm *tfm, u32 type, u32 mask) in crypto_init_nivaead_ops()
374 int aead_geniv_init(struct crypto_tfm *tfm) in aead_geniv_init()
390 void aead_geniv_exit(struct crypto_tfm *tfm) in aead_geniv_exit()
528 struct crypto_tfm *tfm; in crypto_alloc_aead() local
Ddeflate.c104 static int deflate_init(struct crypto_tfm *tfm) in deflate_init()
119 static void deflate_exit(struct crypto_tfm *tfm) in deflate_exit()
127 static int deflate_compress(struct crypto_tfm *tfm, const u8 *src, in deflate_compress()
156 static int deflate_decompress(struct crypto_tfm *tfm, const u8 *src, in deflate_decompress()
Dmcryptd.c220 static inline struct mcryptd_queue *mcryptd_get_queue(struct crypto_tfm *tfm) in mcryptd_get_queue()
275 static int mcryptd_hash_init_tfm(struct crypto_tfm *tfm) in mcryptd_hash_init_tfm()
294 static void mcryptd_hash_exit_tfm(struct crypto_tfm *tfm) in mcryptd_hash_exit_tfm()
323 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in mcryptd_hash_enqueue() local
601 struct crypto_ahash *tfm; in mcryptd_alloc_ahash() local
633 struct crypto_shash *tfm = desc->tfm; in shash_ahash_mcryptd_update() local
645 struct crypto_shash *tfm = desc->tfm; in shash_ahash_mcryptd_finup() local
657 struct crypto_shash *tfm = desc->tfm; in shash_ahash_mcryptd_final() local
666 struct crypto_shash *mcryptd_ahash_child(struct mcryptd_ahash *tfm) in mcryptd_ahash_child()
681 void mcryptd_free_ahash(struct mcryptd_ahash *tfm) in mcryptd_free_ahash()
Dtestmgr.c191 static int __test_hash(struct crypto_ahash *tfm, struct hash_testvec *template, in __test_hash()
390 static int test_hash(struct crypto_ahash *tfm, struct hash_testvec *template, in test_hash()
417 static int __test_aead(struct crypto_aead *tfm, int enc, in __test_aead()
798 static int test_aead(struct crypto_aead *tfm, int enc, in test_aead()
831 static int test_cipher(struct crypto_cipher *tfm, int enc, in test_cipher()
906 static int __test_skcipher(struct crypto_ablkcipher *tfm, int enc, in __test_skcipher()
1151 static int test_skcipher(struct crypto_ablkcipher *tfm, int enc, in test_skcipher()
1184 static int test_comp(struct crypto_comp *tfm, struct comp_testvec *ctemplate, in test_comp()
1264 static int test_pcomp(struct crypto_pcomp *tfm, in test_pcomp()
1441 static int test_cprng(struct crypto_rng *tfm, struct cprng_testvec *template, in test_cprng()
[all …]
Dapi.c287 static int crypto_init_ops(struct crypto_tfm *tfm, u32 type, u32 mask) in crypto_init_ops()
309 static void crypto_exit_ops(struct crypto_tfm *tfm) in crypto_exit_ops()
369 struct crypto_tfm *tfm = NULL; in __crypto_alloc_tfm() local
426 struct crypto_tfm *tfm; in crypto_alloc_base() local
462 struct crypto_tfm *tfm = NULL; in crypto_create_tfm() local
543 void *tfm; in crypto_alloc_tfm() local
583 void crypto_destroy_tfm(void *mem, struct crypto_tfm *tfm) in crypto_destroy_tfm()
Dablkcipher.c111 struct crypto_tfm *tfm = req->base.tfm; in ablkcipher_walk_done() local
190 struct crypto_tfm *tfm, in ablkcipher_copy_iv()
228 struct crypto_tfm *tfm = req->base.tfm; in ablkcipher_walk_next() local
273 struct crypto_tfm *tfm = req->base.tfm; in ablkcipher_walk_first() local
307 static int setkey_unaligned(struct crypto_ablkcipher *tfm, const u8 *key, in setkey_unaligned()
329 static int setkey(struct crypto_ablkcipher *tfm, const u8 *key, in setkey()
362 static int crypto_init_ablkcipher_ops(struct crypto_tfm *tfm, u32 type, in crypto_init_ablkcipher_ops()
444 static int crypto_init_givcipher_ops(struct crypto_tfm *tfm, u32 type, in crypto_init_givcipher_ops()
676 struct crypto_tfm *tfm; in crypto_alloc_ablkcipher() local
Dkrng.c19 static int krng_get_random(struct crypto_rng *tfm, u8 *rdata, unsigned int dlen) in krng_get_random()
25 static int krng_reset(struct crypto_rng *tfm, u8 *seed, unsigned int slen) in krng_reset()
Dahash.c188 static int ahash_setkey_unaligned(struct crypto_ahash *tfm, const u8 *key, in ahash_setkey_unaligned()
208 int crypto_ahash_setkey(struct crypto_ahash *tfm, const u8 *key, in crypto_ahash_setkey()
220 static int ahash_nosetkey(struct crypto_ahash *tfm, const u8 *key, in ahash_nosetkey()
234 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_save_req() local
353 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in crypto_ahash_op() local
428 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_def_finup() local
449 static int crypto_ahash_init_tfm(struct crypto_tfm *tfm) in crypto_ahash_init_tfm()
Dxcbc.c102 struct crypto_cipher *tfm = tctx->child; in crypto_xcbc_digest_update() local
148 struct crypto_cipher *tfm = tctx->child; in crypto_xcbc_digest_final() local
177 static int xcbc_init_tfm(struct crypto_tfm *tfm) in xcbc_init_tfm()
193 static void xcbc_exit_tfm(struct crypto_tfm *tfm) in xcbc_exit_tfm()
Dalgif_hash.c242 struct algif_hash_tfm *tfm; in hash_check_key() local
347 struct algif_hash_tfm *tfm; in hash_bind() local
367 struct algif_hash_tfm *tfm = private; in hash_release() local
375 struct algif_hash_tfm *tfm = private; in hash_setkey() local
399 struct algif_hash_tfm *tfm = private; in hash_accept_parent_nokey() local
433 struct algif_hash_tfm *tfm = private; in hash_accept_parent() local
Dcmac.c128 struct crypto_cipher *tfm = tctx->child; in crypto_cmac_digest_update() local
174 struct crypto_cipher *tfm = tctx->child; in crypto_cmac_digest_final() local
203 static int cmac_init_tfm(struct crypto_tfm *tfm) in cmac_init_tfm()
219 static void cmac_exit_tfm(struct crypto_tfm *tfm) in cmac_exit_tfm()
Dkhazad.c756 static int khazad_setkey(struct crypto_tfm *tfm, const u8 *in_key, in khazad_setkey()
837 static void khazad_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in khazad_encrypt()
843 static void khazad_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in khazad_decrypt()
Ddes_generic.c781 static int des_setkey(struct crypto_tfm *tfm, const u8 *key, in des_setkey()
803 static void des_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in des_encrypt()
826 static void des_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in des_decrypt()
882 static int des3_ede_setkey(struct crypto_tfm *tfm, const u8 *key, in des3_ede_setkey()
892 static void des3_ede_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in des3_ede_encrypt()
923 static void des3_ede_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in des3_ede_decrypt()
Dchainiv.c107 static int chainiv_init_common(struct crypto_tfm *tfm) in chainiv_init_common()
114 static int chainiv_init(struct crypto_tfm *tfm) in chainiv_init()
264 static int async_chainiv_init(struct crypto_tfm *tfm) in async_chainiv_init()
276 static void async_chainiv_exit(struct crypto_tfm *tfm) in async_chainiv_exit()
Dccm.c81 struct crypto_cipher *tfm = ctx->cipher; in crypto_ccm_setkey() local
104 static int crypto_ccm_setauthsize(struct crypto_aead *tfm, in crypto_ccm_setauthsize()
164 static void compute_mac(struct crypto_cipher *tfm, u8 *data, int n, in compute_mac()
203 static void get_data_to_compute(struct crypto_cipher *tfm, in get_data_to_compute()
432 static int crypto_ccm_init_tfm(struct crypto_tfm *tfm) in crypto_ccm_init_tfm()
467 static void crypto_ccm_exit_tfm(struct crypto_tfm *tfm) in crypto_ccm_exit_tfm()
716 static int crypto_rfc4309_init_tfm(struct crypto_tfm *tfm) in crypto_rfc4309_init_tfm()
740 static void crypto_rfc4309_exit_tfm(struct crypto_tfm *tfm) in crypto_rfc4309_exit_tfm()
Dfcrypt.c236 static void fcrypt_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in fcrypt_encrypt()
268 static void fcrypt_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in fcrypt_decrypt()
303 static int fcrypt_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) in fcrypt_setkey()
Dpcompress.c36 static int crypto_pcomp_init(struct crypto_tfm *tfm, u32 type, u32 mask) in crypto_pcomp_init()
46 static int crypto_pcomp_init_tfm(struct crypto_tfm *tfm) in crypto_pcomp_init_tfm()
Danubis.c462 static int anubis_setkey(struct crypto_tfm *tfm, const u8 *in_key, in anubis_setkey()
662 static void anubis_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in anubis_encrypt()
668 static void anubis_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in anubis_decrypt()
Dseed.c331 static int seed_set_key(struct crypto_tfm *tfm, const u8 *in_key, in seed_set_key()
368 static void seed_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in seed_encrypt()
406 static void seed_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in seed_decrypt()
Drng.c32 static int rngapi_reset(struct crypto_rng *tfm, u8 *seed, unsigned int slen) in rngapi_reset()
52 static int crypto_init_rng_ops(struct crypto_tfm *tfm, u32 type, u32 mask) in crypto_init_rng_ops()
Dcast6_generic.c157 int cast6_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) in cast6_setkey()
217 static void cast6_encrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) in cast6_encrypt()
255 static void cast6_decrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) in cast6_decrypt()
Dcast5_generic.c363 static void cast5_encrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) in cast5_encrypt()
407 static void cast5_decrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) in cast5_decrypt()
487 int cast5_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int key_len) in cast5_setkey()
Dalgif_skcipher.c310 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(&ctx->req); in skcipher_sendmsg() local
763 struct skcipher_tfm *tfm; in skcipher_check_key() local
856 struct skcipher_tfm *tfm; in skcipher_bind() local
876 struct skcipher_tfm *tfm = private; in skcipher_release() local
884 struct skcipher_tfm *tfm = private; in skcipher_setkey() local
907 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(&ctx->req); in skcipher_sock_destruct() local
922 struct skcipher_tfm *tfm = private; in skcipher_accept_parent_nokey() local
961 struct skcipher_tfm *tfm = private; in skcipher_accept_parent() local
Dhmac.c37 static inline struct hmac_ctx *hmac_ctx(struct crypto_shash *tfm) in hmac_ctx()
156 static int hmac_init_tfm(struct crypto_tfm *tfm) in hmac_init_tfm()
175 static void hmac_exit_tfm(struct crypto_tfm *tfm) in hmac_exit_tfm()
Dblowfish_generic.c41 static void bf_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in bf_encrypt()
75 static void bf_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in bf_decrypt()
Ddrbg.c1583 struct crypto_shash *tfm; in drbg_init_hash_kernel() local
1634 struct crypto_cipher *tfm; in drbg_init_sym_kernel() local
1648 struct crypto_cipher *tfm = in drbg_fini_sym_kernel() local
1659 struct crypto_cipher *tfm = in drbg_kcapi_sym() local
1714 static int drbg_kcapi_init(struct crypto_tfm *tfm) in drbg_kcapi_init()
1728 static void drbg_kcapi_cleanup(struct crypto_tfm *tfm) in drbg_kcapi_cleanup()
1745 static int drbg_kcapi_random(struct crypto_rng *tfm, u8 *rdata, in drbg_kcapi_random()
1771 static int drbg_kcapi_reset(struct crypto_rng *tfm, u8 *seed, unsigned int slen) in drbg_kcapi_reset()
Dghash-generic.c44 static int ghash_setkey(struct crypto_shash *tfm, in ghash_setkey()
134 static void ghash_exit_tfm(struct crypto_tfm *tfm) in ghash_exit_tfm()
Dxts.c82 struct crypto_tfm *tfm; member
241 static int init_tfm(struct crypto_tfm *tfm) in init_tfm()
280 static void exit_tfm(struct crypto_tfm *tfm) in exit_tfm()
Dserpent_generic.c439 int serpent_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) in serpent_setkey()
503 static void serpent_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in serpent_encrypt()
563 static void serpent_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in serpent_decrypt()
570 static int tnepres_setkey(struct crypto_tfm *tfm, const u8 *key, in tnepres_setkey()
582 static void tnepres_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in tnepres_encrypt()
602 static void tnepres_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in tnepres_decrypt()
Dsalsa20_generic.c169 static int setkey(struct crypto_tfm *tfm, const u8 *key, in setkey()
182 struct crypto_blkcipher *tfm = desc->tfm; in encrypt() local
Dcrc32c_generic.c76 static int chksum_setkey(struct crypto_shash *tfm, const u8 *key, in chksum_setkey()
128 static int crc32c_cra_init(struct crypto_tfm *tfm) in crc32c_cra_init()
Darc4.c29 static int arc4_set_key(struct crypto_tfm *tfm, const u8 *in_key, in arc4_set_key()
90 static void arc4_crypt_one(struct crypto_tfm *tfm, u8 *out, const u8 *in) in arc4_crypt_one()
Dtwofish_generic.c109 static void twofish_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in twofish_encrypt()
146 static void twofish_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in twofish_decrypt()
Daes_generic.c1282 int crypto_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in crypto_aes_set_key()
1329 static void aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in aes_encrypt()
1401 static void aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in aes_decrypt()
Dlrw.c101 struct crypto_tfm *tfm; member
296 static int init_tfm(struct crypto_tfm *tfm) in init_tfm()
318 static void exit_tfm(struct crypto_tfm *tfm) in exit_tfm()
Dtcrypt.c53 #define get_driver_name(tfm_type, tfm) crypto_tfm_alg_driver_name(tfm_type ## _tfm(tfm)) argument
274 struct crypto_aead *tfm; in test_aead_speed() local
426 struct crypto_blkcipher *tfm; in test_cipher_speed() local
692 struct crypto_hash *tfm; in test_hash_speed() local
932 struct crypto_ahash *tfm; in test_ahash_speed() local
1089 struct crypto_ablkcipher *tfm; in test_acipher_speed() local
Dseqiv.c235 static int seqiv_init(struct crypto_tfm *tfm) in seqiv_init()
247 static int seqiv_aead_init(struct crypto_tfm *tfm) in seqiv_aead_init()
Dcts.c253 static int crypto_cts_init_tfm(struct crypto_tfm *tfm) in crypto_cts_init_tfm()
268 static void crypto_cts_exit_tfm(struct crypto_tfm *tfm) in crypto_cts_exit_tfm()
Dgcm.c170 static int crypto_gcm_setauthsize(struct crypto_aead *tfm, in crypto_gcm_setauthsize()
651 static int crypto_gcm_init_tfm(struct crypto_tfm *tfm) in crypto_gcm_init_tfm()
689 static void crypto_gcm_exit_tfm(struct crypto_tfm *tfm) in crypto_gcm_exit_tfm()
933 static int crypto_rfc4106_init_tfm(struct crypto_tfm *tfm) in crypto_rfc4106_init_tfm()
957 static void crypto_rfc4106_exit_tfm(struct crypto_tfm *tfm) in crypto_rfc4106_exit_tfm()
1234 static int crypto_rfc4543_init_tfm(struct crypto_tfm *tfm) in crypto_rfc4543_init_tfm()
1271 static void crypto_rfc4543_exit_tfm(struct crypto_tfm *tfm) in crypto_rfc4543_exit_tfm()
Dblowfish_common.c349 int blowfish_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) in blowfish_setkey()
Dcamellia_generic.c981 camellia_set_key(struct crypto_tfm *tfm, const u8 *in_key, in camellia_set_key()
1010 static void camellia_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in camellia_encrypt()
1038 static void camellia_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in camellia_decrypt()
Dalgapi.c653 struct crypto_tfm *tfm; in crypto_spawn_tfm() local
678 struct crypto_tfm *tfm; in crypto_spawn_tfm2() local
907 int crypto_tfm_in_queue(struct crypto_queue *queue, struct crypto_tfm *tfm) in crypto_tfm_in_queue()
Dcrc32.c48 static int crc32_cra_init(struct crypto_tfm *tfm) in crc32_cra_init()
Dmichael_mic.c136 static int michael_setkey(struct crypto_shash *tfm, const u8 *key, in michael_setkey()
Dpcrypt.c273 static int pcrypt_aead_init_tfm(struct crypto_tfm *tfm) in pcrypt_aead_init_tfm()
302 static void pcrypt_aead_exit_tfm(struct crypto_tfm *tfm) in pcrypt_aead_exit_tfm()
Deseqiv.c172 static int eseqiv_init(struct crypto_tfm *tfm) in eseqiv_init()
Dauthenc.c547 static int crypto_authenc_init_tfm(struct crypto_tfm *tfm) in crypto_authenc_init_tfm()
588 static void crypto_authenc_exit_tfm(struct crypto_tfm *tfm) in crypto_authenc_exit_tfm()
Dvmac.c622 static int vmac_init_tfm(struct crypto_tfm *tfm) in vmac_init_tfm()
637 static void vmac_exit_tfm(struct crypto_tfm *tfm) in vmac_exit_tfm()
Dauthencesn.c639 static int crypto_authenc_esn_init_tfm(struct crypto_tfm *tfm) in crypto_authenc_esn_init_tfm()
680 static void crypto_authenc_esn_exit_tfm(struct crypto_tfm *tfm) in crypto_authenc_esn_exit_tfm()
Dtwofish_common.c703 int twofish_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int key_len) in twofish_setkey()
/linux-4.1.27/drivers/staging/rtl8192e/rtl8192e/
Drtl_crypto.h218 static inline const char *crypto_tfm_alg_name(struct crypto_tfm *tfm) in crypto_tfm_alg_name()
223 static inline const char *crypto_tfm_alg_modname(struct crypto_tfm *tfm) in crypto_tfm_alg_modname()
233 static inline u32 crypto_tfm_alg_type(struct crypto_tfm *tfm) in crypto_tfm_alg_type()
238 static inline unsigned int crypto_tfm_alg_min_keysize(struct crypto_tfm *tfm) in crypto_tfm_alg_min_keysize()
244 static inline unsigned int crypto_tfm_alg_max_keysize(struct crypto_tfm *tfm) in crypto_tfm_alg_max_keysize()
250 static inline unsigned int crypto_tfm_alg_ivsize(struct crypto_tfm *tfm) in crypto_tfm_alg_ivsize()
256 static inline unsigned int crypto_tfm_alg_blocksize(struct crypto_tfm *tfm) in crypto_tfm_alg_blocksize()
261 static inline unsigned int crypto_tfm_alg_digestsize(struct crypto_tfm *tfm) in crypto_tfm_alg_digestsize()
270 static inline void crypto_digest_init(struct crypto_tfm *tfm) in crypto_digest_init()
276 static inline void crypto_digest_update(struct crypto_tfm *tfm, in crypto_digest_update()
[all …]
/linux-4.1.27/security/integrity/ima/
Dima_crypto.c86 struct crypto_shash *tfm = ima_shash_tfm; in ima_alloc_tfm() local
103 static void ima_free_tfm(struct crypto_shash *tfm) in ima_free_tfm()
173 struct crypto_ahash *tfm = ima_ahash_tfm; in ima_alloc_atfm() local
193 static void ima_free_atfm(struct crypto_ahash *tfm) in ima_free_atfm()
229 struct crypto_ahash *tfm) in ima_calc_file_hash_atfm()
339 struct crypto_ahash *tfm; in ima_calc_file_ahash() local
355 struct crypto_shash *tfm) in ima_calc_file_hash_tfm()
412 struct crypto_shash *tfm; in ima_calc_file_shash() local
462 struct crypto_shash *tfm) in ima_calc_field_array_hash_tfm()
507 struct crypto_shash *tfm; in ima_calc_field_array_hash() local
[all …]
/linux-4.1.27/drivers/crypto/vmx/
Daes.c38 static int p8_aes_init(struct crypto_tfm *tfm) in p8_aes_init()
65 static void p8_aes_exit(struct crypto_tfm *tfm) in p8_aes_exit()
75 static int p8_aes_setkey(struct crypto_tfm *tfm, const u8 *key, in p8_aes_setkey()
92 static void p8_aes_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in p8_aes_encrypt()
107 static void p8_aes_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in p8_aes_decrypt()
Daes_ctr.c37 static int p8_aes_ctr_init(struct crypto_tfm *tfm) in p8_aes_ctr_init()
64 static void p8_aes_ctr_exit(struct crypto_tfm *tfm) in p8_aes_ctr_exit()
74 static int p8_aes_ctr_setkey(struct crypto_tfm *tfm, const u8 *key, in p8_aes_ctr_setkey()
Daes_cbc.c39 static int p8_aes_cbc_init(struct crypto_tfm *tfm) in p8_aes_cbc_init()
66 static void p8_aes_cbc_exit(struct crypto_tfm *tfm) in p8_aes_cbc_exit()
76 static int p8_aes_cbc_setkey(struct crypto_tfm *tfm, const u8 *key, in p8_aes_cbc_setkey()
Dghash.c56 static int p8_ghash_init_tfm(struct crypto_tfm *tfm) in p8_ghash_init_tfm()
87 static void p8_ghash_exit_tfm(struct crypto_tfm *tfm) in p8_ghash_exit_tfm()
109 static int p8_ghash_setkey(struct crypto_shash *tfm, const u8 *key, in p8_ghash_setkey()
/linux-4.1.27/arch/arm/crypto/
Dghash-ce-glue.c109 static int ghash_setkey(struct crypto_shash *tfm, in ghash_setkey()
153 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_init() local
177 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_update() local
195 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_final() local
210 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_digest() local
229 static int ghash_async_setkey(struct crypto_ahash *tfm, const u8 *key, in ghash_async_setkey()
246 static int ghash_async_init_tfm(struct crypto_tfm *tfm) in ghash_async_init_tfm()
264 static void ghash_async_exit_tfm(struct crypto_tfm *tfm) in ghash_async_exit_tfm()
Daes_glue.c16 static void aes_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in aes_encrypt()
22 static void aes_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in aes_decrypt()
28 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key()
Daesbs-glue.c57 static int aesbs_cbc_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aesbs_cbc_set_key()
73 static int aesbs_ctr_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aesbs_ctr_set_key()
87 static int aesbs_xts_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aesbs_xts_set_key()
Daes-ce-glue.c130 static int ce_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, in ce_aes_setkey()
149 static int xts_set_key(struct crypto_tfm *tfm, const u8 *in_key, in xts_set_key()
/linux-4.1.27/drivers/crypto/
Dgeode-aes.c116 static int geode_setkey_cip(struct crypto_tfm *tfm, const u8 *key, in geode_setkey_cip()
149 static int geode_setkey_blk(struct crypto_tfm *tfm, const u8 *key, in geode_setkey_blk()
187 struct crypto_blkcipher *tfm; in fallback_blk_dec() local
203 struct crypto_blkcipher *tfm; in fallback_blk_enc() local
216 geode_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in geode_encrypt()
237 geode_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in geode_decrypt()
256 static int fallback_init_cip(struct crypto_tfm *tfm) in fallback_init_cip()
272 static void fallback_exit_cip(struct crypto_tfm *tfm) in fallback_exit_cip()
366 static int fallback_init_blk(struct crypto_tfm *tfm) in fallback_init_blk()
382 static void fallback_exit_blk(struct crypto_tfm *tfm) in fallback_exit_blk()
Dixp4xx_crypto.c147 struct crypto_tfm *tfm; member
235 static inline u32 cipher_cfg_enc(struct crypto_tfm *tfm) in cipher_cfg_enc()
240 static inline u32 cipher_cfg_dec(struct crypto_tfm *tfm) in cipher_cfg_dec()
245 static inline const struct ix_hash_algo *ix_hash(struct crypto_tfm *tfm) in ix_hash()
340 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in finish_scattered_hmac() local
554 static int init_tfm(struct crypto_tfm *tfm) in init_tfm()
570 static int init_tfm_ablk(struct crypto_tfm *tfm) in init_tfm_ablk()
576 static int init_tfm_aead(struct crypto_tfm *tfm) in init_tfm_aead()
582 static void exit_tfm(struct crypto_tfm *tfm) in exit_tfm()
589 static int register_chain_var(struct crypto_tfm *tfm, u8 xpad, u32 target, in register_chain_var()
[all …]
Dpicoxcell_crypto.c448 struct crypto_tfm *tfm = crypto_aead_tfm(aead); in spacc_aead_des_setkey() local
468 struct crypto_tfm *tfm = crypto_aead_tfm(aead); in spacc_aead_aes_setkey() local
493 static int spacc_aead_setkey(struct crypto_aead *tfm, const u8 *key, in spacc_aead_setkey()
529 static int spacc_aead_setauthsize(struct crypto_aead *tfm, in spacc_aead_setauthsize()
547 struct crypto_tfm *tfm = req->req->tfm; in spacc_aead_need_fallback() local
597 struct crypto_tfm *tfm = req->req->tfm; in spacc_aead_submit() local
731 struct crypto_tfm *tfm = crypto_aead_tfm(aead); in spacc_aead_encrypt() local
739 struct crypto_aead *tfm = aead_givcrypt_reqtfm(req); in spacc_aead_givencrypt() local
761 struct crypto_tfm *tfm = crypto_aead_tfm(aead); in spacc_aead_decrypt() local
771 static int spacc_aead_cra_init(struct crypto_tfm *tfm) in spacc_aead_cra_init()
[all …]
Dn2_core.c253 static inline struct n2_ahash_alg *n2_ahash_alg(struct crypto_tfm *tfm) in n2_ahash_alg()
268 static inline struct n2_hmac_alg *n2_hmac_alg(struct crypto_tfm *tfm) in n2_hmac_alg()
306 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_init() local
318 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_update() local
332 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_final() local
345 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_finup() local
357 static int n2_hash_cra_init(struct crypto_tfm *tfm) in n2_hash_cra_init()
384 static void n2_hash_cra_exit(struct crypto_tfm *tfm) in n2_hash_cra_exit()
392 static int n2_hmac_cra_init(struct crypto_tfm *tfm) in n2_hmac_cra_init()
433 static void n2_hmac_cra_exit(struct crypto_tfm *tfm) in n2_hmac_cra_exit()
[all …]
Dmxs-dcp.c377 struct crypto_tfm *tfm = in mxs_dcp_block_fallback() local
439 static int mxs_dcp_aes_setkey(struct crypto_ablkcipher *tfm, const u8 *key, in mxs_dcp_aes_setkey()
482 static int mxs_dcp_aes_fallback_init(struct crypto_tfm *tfm) in mxs_dcp_aes_fallback_init()
498 static void mxs_dcp_aes_fallback_exit(struct crypto_tfm *tfm) in mxs_dcp_aes_fallback_exit()
514 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in mxs_dcp_run_sha() local
564 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in dcp_sha_req_to_buf() local
678 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in dcp_sha_init() local
708 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in dcp_sha_update_fx() local
767 static int dcp_sha_cra_init(struct crypto_tfm *tfm) in dcp_sha_cra_init()
774 static void dcp_sha_cra_exit(struct crypto_tfm *tfm) in dcp_sha_cra_exit()
Dbfin_crc.c150 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in bfin_crypto_crc_init() local
437 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in bfin_crypto_crc_final() local
450 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in bfin_crypto_crc_finup() local
473 static int bfin_crypto_crc_setkey(struct crypto_ahash *tfm, const u8 *key, in bfin_crypto_crc_setkey()
489 static int bfin_crypto_crc_cra_init(struct crypto_tfm *tfm) in bfin_crypto_crc_cra_init()
500 static void bfin_crypto_crc_cra_exit(struct crypto_tfm *tfm) in bfin_crypto_crc_cra_exit()
Dsahara.c627 static int sahara_aes_setkey(struct crypto_ablkcipher *tfm, const u8 *key, in sahara_aes_setkey()
692 struct crypto_tfm *tfm = in sahara_aes_ecb_encrypt() local
710 struct crypto_tfm *tfm = in sahara_aes_ecb_decrypt() local
728 struct crypto_tfm *tfm = in sahara_aes_cbc_encrypt() local
746 struct crypto_tfm *tfm = in sahara_aes_cbc_decrypt() local
762 static int sahara_aes_cra_init(struct crypto_tfm *tfm) in sahara_aes_cra_init()
779 static void sahara_aes_cra_exit(struct crypto_tfm *tfm) in sahara_aes_cra_exit()
958 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in sahara_sha_prepare_request() local
1171 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in sahara_sha_init() local
1246 static int sahara_sha_cra_init(struct crypto_tfm *tfm) in sahara_sha_cra_init()
[all …]
Domap-sham.c301 struct crypto_ahash *tfm = crypto_ahash_reqtfm(dd->req); in omap_sham_copy_hash_omap4() local
457 struct crypto_ahash *tfm = crypto_ahash_reqtfm(dd->req); in omap_sham_write_ctrl_omap4() local
831 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in omap_sham_init() local
1119 static int omap_sham_shash_digest(struct crypto_shash *tfm, u32 flags, in omap_sham_shash_digest()
1183 static int omap_sham_setkey(struct crypto_ahash *tfm, const u8 *key, in omap_sham_setkey()
1234 static int omap_sham_cra_init_alg(struct crypto_tfm *tfm, const char *alg_base) in omap_sham_cra_init_alg()
1268 static int omap_sham_cra_init(struct crypto_tfm *tfm) in omap_sham_cra_init()
1273 static int omap_sham_cra_sha1_init(struct crypto_tfm *tfm) in omap_sham_cra_sha1_init()
1278 static int omap_sham_cra_sha224_init(struct crypto_tfm *tfm) in omap_sham_cra_sha224_init()
1283 static int omap_sham_cra_sha256_init(struct crypto_tfm *tfm) in omap_sham_cra_sha256_init()
[all …]
Dpadlock-aes.c94 static inline struct aes_ctx *aes_ctx(struct crypto_tfm *tfm) in aes_ctx()
99 static inline struct aes_ctx *blk_aes_ctx(struct crypto_blkcipher *tfm) in blk_aes_ctx()
104 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key()
298 static void aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in aes_encrypt()
310 static void aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in aes_decrypt()
Dimg-hash.c483 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_init() local
548 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_update() local
563 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_final() local
577 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_finup() local
592 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_digest() local
646 static int img_hash_cra_init(struct crypto_tfm *tfm) in img_hash_cra_init()
669 static void img_hash_cra_exit(struct crypto_tfm *tfm) in img_hash_cra_exit()
Dmv_cesa.c197 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in mv_setkey_aes() local
697 static int mv_cra_init(struct crypto_tfm *tfm) in mv_cra_init()
773 static int mv_hash_setkey(struct crypto_ahash *tfm, const u8 * key, in mv_hash_setkey()
838 static int mv_cra_hash_init(struct crypto_tfm *tfm, const char *base_hash_name, in mv_cra_hash_init()
886 static void mv_cra_hash_exit(struct crypto_tfm *tfm) in mv_cra_hash_exit()
895 static int mv_cra_hash_sha1_init(struct crypto_tfm *tfm) in mv_cra_hash_sha1_init()
900 static int mv_cra_hash_hmac_sha1_init(struct crypto_tfm *tfm) in mv_cra_hash_hmac_sha1_init()
Datmel-tdes.c401 static int atmel_tdes_crypt_pdc(struct crypto_tfm *tfm, dma_addr_t dma_addr_in, in atmel_tdes_crypt_pdc()
437 static int atmel_tdes_crypt_dma(struct crypto_tfm *tfm, dma_addr_t dma_addr_in, in atmel_tdes_crypt_dma()
508 struct crypto_tfm *tfm = crypto_ablkcipher_tfm( in atmel_tdes_crypt_start() local
777 static int atmel_des_setkey(struct crypto_ablkcipher *tfm, const u8 *key, in atmel_des_setkey()
803 static int atmel_tdes_setkey(struct crypto_ablkcipher *tfm, const u8 *key, in atmel_tdes_setkey()
901 static int atmel_tdes_cra_init(struct crypto_tfm *tfm) in atmel_tdes_cra_init()
915 static void atmel_tdes_cra_exit(struct crypto_tfm *tfm) in atmel_tdes_cra_exit()
Dtalitos.c1558 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in common_nonsnoop_hash() local
1644 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in ahash_edesc_alloc() local
1654 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in ahash_init() local
1698 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in ahash_process_req() local
1834 static int keyhash(struct crypto_ahash *tfm, const u8 *key, unsigned int keylen, in keyhash()
1877 static int ahash_setkey(struct crypto_ahash *tfm, const u8 *key, in ahash_setkey()
2379 static int talitos_cra_init(struct crypto_tfm *tfm) in talitos_cra_init()
2411 static int talitos_cra_init_aead(struct crypto_tfm *tfm) in talitos_cra_init_aead()
2423 static int talitos_cra_init_ahash(struct crypto_tfm *tfm) in talitos_cra_init_ahash()
Domap-des.c400 static int omap_des_crypt_dma(struct crypto_tfm *tfm, in omap_des_crypt_dma()
483 struct crypto_tfm *tfm = crypto_ablkcipher_tfm( in omap_des_crypt_dma_start() local
727 static int omap_des_setkey(struct crypto_ablkcipher *tfm, const u8 *key, in omap_des_setkey()
763 static int omap_des_cra_init(struct crypto_tfm *tfm) in omap_des_cra_init()
772 static void omap_des_cra_exit(struct crypto_tfm *tfm) in omap_des_cra_exit()
Domap-aes.c416 static int omap_aes_crypt_dma(struct crypto_tfm *tfm, in omap_aes_crypt_dma()
499 struct crypto_tfm *tfm = crypto_ablkcipher_tfm( in omap_aes_crypt_dma_start() local
745 static int omap_aes_setkey(struct crypto_ablkcipher *tfm, const u8 *key, in omap_aes_setkey()
792 static int omap_aes_cra_init(struct crypto_tfm *tfm) in omap_aes_cra_init()
816 static void omap_aes_cra_exit(struct crypto_tfm *tfm) in omap_aes_cra_exit()
Dpadlock-sha.c211 static int padlock_cra_init(struct crypto_tfm *tfm) in padlock_cra_init()
237 static void padlock_cra_exit(struct crypto_tfm *tfm) in padlock_cra_exit()
Ds5p-sss.c533 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); in s5p_aes_crypt() local
551 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in s5p_aes_setkey() local
585 static int s5p_aes_cra_init(struct crypto_tfm *tfm) in s5p_aes_cra_init()
Datmel-aes.c823 static int atmel_aes_setkey(struct crypto_ablkcipher *tfm, const u8 *key, in atmel_aes_setkey()
948 static int atmel_aes_cra_init(struct crypto_tfm *tfm) in atmel_aes_cra_init()
955 static void atmel_aes_cra_exit(struct crypto_tfm *tfm) in atmel_aes_cra_exit()
Datmel-sha.c257 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in atmel_sha_init() local
983 static int atmel_sha_cra_init(struct crypto_tfm *tfm) in atmel_sha_cra_init()
/linux-4.1.27/arch/s390/crypto/
Daes_s390.c94 static int setkey_fallback_cip(struct crypto_tfm *tfm, const u8 *in_key, in setkey_fallback_cip()
113 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key()
135 static void aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in aes_encrypt()
160 static void aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in aes_decrypt()
185 static int fallback_init_cip(struct crypto_tfm *tfm) in fallback_init_cip()
202 static void fallback_exit_cip(struct crypto_tfm *tfm) in fallback_exit_cip()
232 static int setkey_fallback_blk(struct crypto_tfm *tfm, const u8 *key, in setkey_fallback_blk()
256 struct crypto_blkcipher *tfm; in fallback_blk_dec() local
273 struct crypto_blkcipher *tfm; in fallback_blk_enc() local
285 static int ecb_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in ecb_aes_set_key()
[all …]
Ddes_s390.c35 static int des_setkey(struct crypto_tfm *tfm, const u8 *key, in des_setkey()
52 static void des_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in des_encrypt()
59 static void des_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in des_decrypt()
239 static int des3_setkey(struct crypto_tfm *tfm, const u8 *key, in des3_setkey()
256 static void des3_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in des3_encrypt()
263 static void des3_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in des3_decrypt()
Dghash_s390.c40 static int ghash_setkey(struct crypto_shash *tfm, in ghash_setkey()
/linux-4.1.27/arch/x86/crypto/
Dghash-clmulni-intel_glue.c55 static int ghash_setkey(struct crypto_shash *tfm, in ghash_setkey()
167 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_init() local
191 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_update() local
209 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_final() local
224 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_digest() local
243 static int ghash_async_setkey(struct crypto_ahash *tfm, const u8 *key, in ghash_async_setkey()
260 static int ghash_async_init_tfm(struct crypto_tfm *tfm) in ghash_async_init_tfm()
278 static void ghash_async_exit_tfm(struct crypto_tfm *tfm) in ghash_async_exit_tfm()
Daesni-intel_glue.c284 aesni_rfc4106_gcm_ctx *aesni_rfc4106_gcm_ctx_get(struct crypto_aead *tfm) in aesni_rfc4106_gcm_ctx_get()
303 static int aes_set_key_common(struct crypto_tfm *tfm, void *raw_ctx, in aes_set_key_common()
327 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key()
333 static void aes_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in aes_encrypt()
346 static void aes_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in aes_decrypt()
359 static void __aes_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in __aes_encrypt()
366 static void __aes_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in __aes_decrypt()
533 static int ablk_ecb_init(struct crypto_tfm *tfm) in ablk_ecb_init()
538 static int ablk_cbc_init(struct crypto_tfm *tfm) in ablk_cbc_init()
544 static int ablk_ctr_init(struct crypto_tfm *tfm) in ablk_ctr_init()
[all …]
Dtwofish_glue.c54 static void twofish_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in twofish_encrypt()
59 static void twofish_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in twofish_decrypt()
Daes_glue.c25 static void aes_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in aes_encrypt()
30 static void aes_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in aes_decrypt()
Dsalsa20_glue.c40 static int setkey(struct crypto_tfm *tfm, const u8 *key, in setkey()
53 struct crypto_blkcipher *tfm = desc->tfm; in encrypt() local
Dcamellia_glue.c54 static void camellia_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in camellia_encrypt()
59 static void camellia_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in camellia_decrypt()
1275 static int camellia_setkey(struct crypto_tfm *tfm, const u8 *in_key, in camellia_setkey()
1440 int lrw_camellia_setkey(struct crypto_tfm *tfm, const u8 *key, in lrw_camellia_setkey()
1491 void lrw_camellia_exit_tfm(struct crypto_tfm *tfm) in lrw_camellia_exit_tfm()
1499 int xts_camellia_setkey(struct crypto_tfm *tfm, const u8 *key, in xts_camellia_setkey()
Dfpu.c81 static int crypto_fpu_init_tfm(struct crypto_tfm *tfm) in crypto_fpu_init_tfm()
96 static void crypto_fpu_exit_tfm(struct crypto_tfm *tfm) in crypto_fpu_exit_tfm()
Dserpent_avx_glue.c256 int lrw_serpent_setkey(struct crypto_tfm *tfm, const u8 *key, in lrw_serpent_setkey()
324 void lrw_serpent_exit_tfm(struct crypto_tfm *tfm) in lrw_serpent_exit_tfm()
332 int xts_serpent_setkey(struct crypto_tfm *tfm, const u8 *key, in xts_serpent_setkey()
Dtwofish_glue_3way.c216 int lrw_twofish_setkey(struct crypto_tfm *tfm, const u8 *key, in lrw_twofish_setkey()
265 void lrw_twofish_exit_tfm(struct crypto_tfm *tfm) in lrw_twofish_exit_tfm()
273 int xts_twofish_setkey(struct crypto_tfm *tfm, const u8 *key, in xts_twofish_setkey()
Ddes3_ede_glue.c76 static void des3_ede_x86_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in des3_ede_x86_encrypt()
81 static void des3_ede_x86_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in des3_ede_x86_decrypt()
359 static int des3_ede_x86_setkey(struct crypto_tfm *tfm, const u8 *key, in des3_ede_x86_setkey()
Dcast6_avx_glue.c248 static int lrw_cast6_setkey(struct crypto_tfm *tfm, const u8 *key, in lrw_cast6_setkey()
314 static void lrw_exit_tfm(struct crypto_tfm *tfm) in lrw_exit_tfm()
326 static int xts_cast6_setkey(struct crypto_tfm *tfm, const u8 *key, in xts_cast6_setkey()
Dserpent_sse2_glue.c229 static int lrw_serpent_setkey(struct crypto_tfm *tfm, const u8 *key, in lrw_serpent_setkey()
296 static void lrw_exit_tfm(struct crypto_tfm *tfm) in lrw_exit_tfm()
308 static int xts_serpent_setkey(struct crypto_tfm *tfm, const u8 *key, in xts_serpent_setkey()
Dblowfish_glue.c70 static void blowfish_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in blowfish_encrypt()
75 static void blowfish_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in blowfish_decrypt()
Dcrc32-pclmul_glue.c82 static int crc32_pclmul_cra_init(struct crypto_tfm *tfm) in crc32_pclmul_cra_init()
Dcrc32c-intel_glue.c175 static int crc32c_intel_cra_init(struct crypto_tfm *tfm) in crc32c_intel_cra_init()
Dcamellia_aesni_avx2_glue.c198 static int camellia_setkey(struct crypto_tfm *tfm, const u8 *in_key, in camellia_setkey()
Dcamellia_aesni_avx_glue.c202 static int camellia_setkey(struct crypto_tfm *tfm, const u8 *in_key, in camellia_setkey()
/linux-4.1.27/net/mac80211/
Daes_gcm.c19 void ieee80211_aes_gcm_encrypt(struct crypto_aead *tfm, u8 *j_0, u8 *aad, in ieee80211_aes_gcm_encrypt()
44 int ieee80211_aes_gcm_decrypt(struct crypto_aead *tfm, u8 *j_0, u8 *aad, in ieee80211_aes_gcm_decrypt()
75 struct crypto_aead *tfm; in ieee80211_aes_gcm_key_setup_encrypt() local
96 void ieee80211_aes_gcm_key_free(struct crypto_aead *tfm) in ieee80211_aes_gcm_key_free()
Daes_ccm.c22 void ieee80211_aes_ccm_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, in ieee80211_aes_ccm_encrypt()
48 int ieee80211_aes_ccm_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, in ieee80211_aes_ccm_decrypt()
80 struct crypto_aead *tfm; in ieee80211_aes_key_setup_encrypt() local
101 void ieee80211_aes_key_free(struct crypto_aead *tfm) in ieee80211_aes_key_free()
Daes_cmac.c38 static void aes_cmac_vector(struct crypto_cipher *tfm, size_t num_elem, in aes_cmac_vector()
95 void ieee80211_aes_cmac(struct crypto_cipher *tfm, const u8 *aad, in ieee80211_aes_cmac()
113 void ieee80211_aes_cmac_256(struct crypto_cipher *tfm, const u8 *aad, in ieee80211_aes_cmac_256()
134 struct crypto_cipher *tfm; in ieee80211_aes_cmac_key_setup() local
144 void ieee80211_aes_cmac_key_free(struct crypto_cipher *tfm) in ieee80211_aes_cmac_key_free()
Daes_gmac.c24 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce, in ieee80211_aes_gmac()
64 struct crypto_aead *tfm; in ieee80211_aes_gmac_key_setup() local
81 void ieee80211_aes_gmac_key_free(struct crypto_aead *tfm) in ieee80211_aes_gmac_key_free()
Dkey.h89 struct crypto_aead *tfm; member
95 struct crypto_cipher *tfm; member
102 struct crypto_aead *tfm; member
114 struct crypto_aead *tfm; member
Dwep.c134 int ieee80211_wep_encrypt_data(struct crypto_cipher *tfm, u8 *rc4key, in ieee80211_wep_encrypt_data()
195 int ieee80211_wep_decrypt_data(struct crypto_cipher *tfm, u8 *rc4key, in ieee80211_wep_decrypt_data()
Dtkip.c225 int ieee80211_tkip_encrypt_data(struct crypto_cipher *tfm, in ieee80211_tkip_encrypt_data()
242 int ieee80211_tkip_decrypt_data(struct crypto_cipher *tfm, in ieee80211_tkip_decrypt_data()
/linux-4.1.27/drivers/crypto/ccp/
Dccp-crypto-sha.c29 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_sha_complete() local
60 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_do_sha_update() local
149 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_sha_init() local
237 static int ccp_sha_setkey(struct crypto_ahash *tfm, const u8 *key, in ccp_sha_setkey()
288 static int ccp_sha_cra_init(struct crypto_tfm *tfm) in ccp_sha_cra_init()
301 static void ccp_sha_cra_exit(struct crypto_tfm *tfm) in ccp_sha_cra_exit()
305 static int ccp_hmac_sha_cra_init(struct crypto_tfm *tfm) in ccp_hmac_sha_cra_init()
323 static void ccp_hmac_sha_cra_exit(struct crypto_tfm *tfm) in ccp_hmac_sha_cra_exit()
Dccp-crypto-aes.c40 static int ccp_aes_setkey(struct crypto_ablkcipher *tfm, const u8 *key, in ccp_aes_setkey()
127 static int ccp_aes_cra_init(struct crypto_tfm *tfm) in ccp_aes_cra_init()
139 static void ccp_aes_cra_exit(struct crypto_tfm *tfm) in ccp_aes_cra_exit()
155 static int ccp_aes_rfc3686_setkey(struct crypto_ablkcipher *tfm, const u8 *key, in ccp_aes_rfc3686_setkey()
202 static int ccp_aes_rfc3686_cra_init(struct crypto_tfm *tfm) in ccp_aes_rfc3686_cra_init()
214 static void ccp_aes_rfc3686_cra_exit(struct crypto_tfm *tfm) in ccp_aes_rfc3686_cra_exit()
Dccp-crypto-aes-xts.c97 static int ccp_aes_xts_setkey(struct crypto_ablkcipher *tfm, const u8 *key, in ccp_aes_xts_setkey()
120 struct crypto_tfm *tfm = in ccp_aes_xts_crypt() local
192 static int ccp_aes_xts_cra_init(struct crypto_tfm *tfm) in ccp_aes_xts_cra_init()
216 static void ccp_aes_xts_cra_exit(struct crypto_tfm *tfm) in ccp_aes_xts_cra_exit()
Dccp-crypto-aes-cmac.c30 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_aes_cmac_complete() local
61 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_do_cmac_update() local
241 static int ccp_aes_cmac_setkey(struct crypto_ahash *tfm, const u8 *key, in ccp_aes_cmac_setkey()
320 static int ccp_aes_cmac_cra_init(struct crypto_tfm *tfm) in ccp_aes_cmac_cra_init()
343 static void ccp_aes_cmac_cra_exit(struct crypto_tfm *tfm) in ccp_aes_cmac_cra_exit()
Dccp-crypto.h51 ccp_crypto_ablkcipher_alg(struct crypto_tfm *tfm) in ccp_crypto_ablkcipher_alg()
59 ccp_crypto_ahash_alg(struct crypto_tfm *tfm) in ccp_crypto_ahash_alg()
Dccp-crypto-main.c67 struct crypto_tfm *tfm; member
/linux-4.1.27/drivers/crypto/nx/
Dnx.c636 int nx_crypto_ctx_aes_ccm_init(struct crypto_tfm *tfm) in nx_crypto_ctx_aes_ccm_init()
643 int nx_crypto_ctx_aes_gcm_init(struct crypto_tfm *tfm) in nx_crypto_ctx_aes_gcm_init()
650 int nx_crypto_ctx_aes_ctr_init(struct crypto_tfm *tfm) in nx_crypto_ctx_aes_ctr_init()
656 int nx_crypto_ctx_aes_cbc_init(struct crypto_tfm *tfm) in nx_crypto_ctx_aes_cbc_init()
662 int nx_crypto_ctx_aes_ecb_init(struct crypto_tfm *tfm) in nx_crypto_ctx_aes_ecb_init()
668 int nx_crypto_ctx_sha_init(struct crypto_tfm *tfm) in nx_crypto_ctx_sha_init()
673 int nx_crypto_ctx_aes_xcbc_init(struct crypto_tfm *tfm) in nx_crypto_ctx_aes_xcbc_init()
687 void nx_crypto_ctx_exit(struct crypto_tfm *tfm) in nx_crypto_ctx_exit()
Dnx-aes-gcm.c35 static int gcm_aes_nx_set_key(struct crypto_aead *tfm, in gcm_aes_nx_set_key()
74 static int gcm4106_aes_nx_set_key(struct crypto_aead *tfm, in gcm4106_aes_nx_set_key()
96 static int gcm_aes_nx_setauthsize(struct crypto_aead *tfm, in gcm_aes_nx_setauthsize()
107 static int gcm4106_aes_nx_setauthsize(struct crypto_aead *tfm, in gcm4106_aes_nx_setauthsize()
Dnx-aes-ccm.c35 static int ccm_aes_nx_set_key(struct crypto_aead *tfm, in ccm_aes_nx_set_key()
65 static int ccm4309_aes_nx_set_key(struct crypto_aead *tfm, in ccm4309_aes_nx_set_key()
81 static int ccm_aes_nx_setauthsize(struct crypto_aead *tfm, in ccm_aes_nx_setauthsize()
102 static int ccm4309_aes_nx_setauthsize(struct crypto_aead *tfm, in ccm4309_aes_nx_setauthsize()
Dnx-aes-ctr.c34 static int ctr_aes_nx_set_key(struct crypto_tfm *tfm, in ctr_aes_nx_set_key()
66 static int ctr3686_aes_nx_set_key(struct crypto_tfm *tfm, in ctr3686_aes_nx_set_key()
Dnx-aes-cbc.c33 static int cbc_aes_nx_set_key(struct crypto_tfm *tfm, in cbc_aes_nx_set_key()
Dnx-aes-ecb.c33 static int ecb_aes_nx_set_key(struct crypto_tfm *tfm, in ecb_aes_nx_set_key()
Dnx-sha256.c32 static int nx_crypto_ctx_sha256_init(struct crypto_tfm *tfm) in nx_crypto_ctx_sha256_init()
Dnx-sha512.c31 static int nx_crypto_ctx_sha512_init(struct crypto_tfm *tfm) in nx_crypto_ctx_sha512_init()
Dnx-aes-xcbc.c152 static int nx_crypto_ctx_aes_xcbc_init2(struct crypto_tfm *tfm) in nx_crypto_ctx_aes_xcbc_init2()
/linux-4.1.27/include/crypto/internal/
Dhash.h131 static inline void *crypto_ahash_ctx(struct crypto_ahash *tfm) in crypto_ahash_ctx()
142 static inline void crypto_ahash_set_reqsize(struct crypto_ahash *tfm, in crypto_ahash_set_reqsize()
195 struct crypto_ahash *tfm) in ahash_tfm_in_queue()
200 static inline void *crypto_shash_ctx(struct crypto_shash *tfm) in crypto_shash_ctx()
236 static inline void *crypto_shash_ctx_aligned(struct crypto_shash *tfm) in crypto_shash_ctx_aligned()
241 static inline struct crypto_shash *__crypto_shash_cast(struct crypto_tfm *tfm) in __crypto_shash_cast()
Drng.h21 static inline void *crypto_rng_ctx(struct crypto_rng *tfm) in crypto_rng_ctx()
/linux-4.1.27/drivers/crypto/qat/qat_common/
Dqat_algs.c116 struct crypto_tfm *tfm; member
129 struct crypto_tfm *tfm; member
564 static int qat_alg_aead_setkey(struct crypto_aead *tfm, const uint8_t *key, in qat_alg_aead_setkey()
840 struct crypto_tfm *tfm = crypto_aead_tfm(aead_tfm); in qat_alg_aead_dec() local
885 struct crypto_tfm *tfm = crypto_aead_tfm(aead_tfm); in qat_alg_aead_enc_internal() local
939 struct crypto_tfm *tfm = crypto_aead_tfm(aead_tfm); in qat_alg_aead_genivenc() local
950 static int qat_alg_ablkcipher_setkey(struct crypto_ablkcipher *tfm, in qat_alg_ablkcipher_setkey()
1014 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(atfm); in qat_alg_ablkcipher_encrypt() local
1052 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(atfm); in qat_alg_ablkcipher_decrypt() local
1087 static int qat_alg_aead_init(struct crypto_tfm *tfm, in qat_alg_aead_init()
[all …]
/linux-4.1.27/net/xfrm/
Dxfrm_ipcomp.c50 struct crypto_comp *tfm = *per_cpu_ptr(ipcd->tfms, cpu); in ipcomp_decompress() local
144 struct crypto_comp *tfm; in ipcomp_compress() local
269 struct crypto_comp *tfm = *per_cpu_ptr(tfms, cpu); in ipcomp_free_tfms() local
283 struct crypto_comp *tfm; in ipcomp_alloc_tfms() local
307 struct crypto_comp *tfm = crypto_alloc_comp(alg_name, 0, in ipcomp_alloc_tfms() local
/linux-4.1.27/drivers/crypto/ux500/hash/
Dhash_core.c566 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in hash_init() local
871 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in hash_dma_final() local
977 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in hash_hw_final() local
1084 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in hash_hw_update() local
1346 static int hash_setkey(struct crypto_ahash *tfm, in hash_setkey()
1368 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_sha1_init() local
1381 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_sha256_init() local
1424 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in hmac_sha1_init() local
1437 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in hmac_sha256_init() local
1478 static int hmac_sha1_setkey(struct crypto_ahash *tfm, in hmac_sha1_setkey()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/
Dcapa.c80 unsigned int ll_crypto_tfm_alg_min_keysize(struct crypto_blkcipher *tfm) in ll_crypto_tfm_alg_min_keysize()
242 static inline int ll_crypto_hmac(struct crypto_hash *tfm, in ll_crypto_hmac()
261 struct crypto_hash *tfm; in capa_hmac() local
294 struct crypto_blkcipher *tfm; in capa_encrypt_id() local
347 struct crypto_blkcipher *tfm; in capa_decrypt_id() local
/linux-4.1.27/drivers/block/
Dcryptoloop.c49 struct crypto_blkcipher *tfm; in cryptoloop_init() local
117 struct crypto_blkcipher *tfm = lo->key_data; in cryptoloop_transfer() local
178 struct crypto_blkcipher *tfm = lo->key_data; in cryptoloop_release() local
/linux-4.1.27/arch/arm64/crypto/
Daes-ce-cipher.c39 static void aes_cipher_encrypt(struct crypto_tfm *tfm, u8 dst[], u8 const src[]) in aes_cipher_encrypt()
84 static void aes_cipher_decrypt(struct crypto_tfm *tfm, u8 dst[], u8 const src[]) in aes_cipher_decrypt()
222 int ce_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, in ce_aes_setkey()
Daes-ce-ccm-glue.c47 static int ccm_setkey(struct crypto_aead *tfm, const u8 *in_key, in ccm_setkey()
61 static int ccm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in ccm_setauthsize()
Dcrc32-arm64.c115 static int chksum_setkey(struct crypto_shash *tfm, const u8 *key, in chksum_setkey()
206 static int crc32_cra_init(struct crypto_tfm *tfm) in crc32_cra_init()
214 static int crc32c_cra_init(struct crypto_tfm *tfm) in crc32c_cra_init()
Dghash-ce-glue.c103 static int ghash_setkey(struct crypto_shash *tfm, in ghash_setkey()
Daes-glue.c82 static int xts_set_key(struct crypto_tfm *tfm, const u8 *in_key, in xts_set_key()
/linux-4.1.27/drivers/crypto/qce/
Dablkcipher.c165 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(ablk); in qce_ablkcipher_setkey() local
205 struct crypto_tfm *tfm = in qce_ablkcipher_crypt() local
237 static int qce_ablkcipher_init(struct crypto_tfm *tfm) in qce_ablkcipher_init()
254 static void qce_ablkcipher_exit(struct crypto_tfm *tfm) in qce_ablkcipher_exit()
Dsha.c235 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in qce_ahash_update() local
367 static int qce_ahash_hmac_setkey(struct crypto_ahash *tfm, const u8 *key, in qce_ahash_hmac_setkey()
440 static int qce_ahash_cra_init(struct crypto_tfm *tfm) in qce_ahash_cra_init()
Dcipher.h60 static inline struct qce_alg_template *to_cipher_tmpl(struct crypto_tfm *tfm) in to_cipher_tmpl()
Dsha.h70 static inline struct qce_alg_template *to_ahash_tmpl(struct crypto_tfm *tfm) in to_ahash_tmpl()
/linux-4.1.27/arch/x86/crypto/sha-mb/
Dsha1_mb.c707 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in sha1_mb_async_init() local
721 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in sha1_mb_async_update() local
734 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in sha1_mb_async_finup() local
747 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in sha1_mb_async_final() local
758 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in sha1_mb_async_digest() local
768 static int sha1_mb_async_init_tfm(struct crypto_tfm *tfm) in sha1_mb_async_init_tfm()
789 static void sha1_mb_async_exit_tfm(struct crypto_tfm *tfm) in sha1_mb_async_exit_tfm()
/linux-4.1.27/arch/sparc/crypto/
Ddes_glue.c43 static int des_set_key(struct crypto_tfm *tfm, const u8 *key, in des_set_key()
70 static void des_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in des_encrypt()
78 static void des_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in des_decrypt()
200 static int des3_ede_set_key(struct crypto_tfm *tfm, const u8 *key, in des3_ede_set_key()
240 static void des3_ede_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in des3_ede_encrypt()
248 static void des3_ede_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in des3_ede_decrypt()
Dcamellia_glue.c35 static int camellia_set_key(struct crypto_tfm *tfm, const u8 *_in_key, in camellia_set_key()
57 static void camellia_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in camellia_encrypt()
66 static void camellia_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in camellia_decrypt()
Daes_glue.c166 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key()
199 static void aes_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in aes_encrypt()
206 static void aes_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in aes_decrypt()
Dcrc32c_glue.c111 static int crc32c_sparc64_cra_init(struct crypto_tfm *tfm) in crc32c_sparc64_cra_init()
/linux-4.1.27/drivers/crypto/amcc/
Dcrypto4xx_alg.c110 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in crypto4xx_setkey_aes() local
180 static int crypto4xx_hash_alg_init(struct crypto_tfm *tfm, in crypto4xx_hash_alg_init()
289 int crypto4xx_sha1_alg_init(struct crypto_tfm *tfm) in crypto4xx_sha1_alg_init()
Dcrypto4xx_core.c992 static int crypto4xx_alg_init(struct crypto_tfm *tfm) in crypto4xx_alg_init()
1018 static void crypto4xx_alg_exit(struct crypto_tfm *tfm) in crypto4xx_alg_exit()
/linux-4.1.27/arch/powerpc/crypto/
Daes-spe-glue.c92 static int ppc_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, in ppc_aes_setkey()
124 static int ppc_xts_setkey(struct crypto_tfm *tfm, const u8 *in_key, in ppc_xts_setkey()
161 static void ppc_aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in ppc_aes_encrypt()
170 static void ppc_aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in ppc_aes_decrypt()
/linux-4.1.27/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_ccmp.c51 struct crypto_tfm *tfm; member
59 static void ieee80211_ccmp_aes_encrypt(struct crypto_tfm *tfm, in ieee80211_ccmp_aes_encrypt()
114 static void ccmp_init_blocks(struct crypto_tfm *tfm, in ccmp_init_blocks()
378 struct crypto_tfm *tfm = data->tfm; in ieee80211_ccmp_set_key() local
Dieee80211_crypt_tkip.c659 struct crypto_hash *tfm = tkey->tx_tfm_michael; in ieee80211_tkip_set_key() local
/linux-4.1.27/drivers/staging/rtl8192e/
Drtllib_crypt_ccmp.c47 struct crypto_tfm *tfm; member
55 static void rtllib_ccmp_aes_encrypt(struct crypto_tfm *tfm, in rtllib_ccmp_aes_encrypt()
109 static void ccmp_init_blocks(struct crypto_tfm *tfm, in ccmp_init_blocks()
362 struct crypto_tfm *tfm = data->tfm; in rtllib_ccmp_set_key() local
Drtllib_crypt_tkip.c661 struct crypto_hash *tfm = tkey->tx_tfm_michael; in rtllib_tkip_set_key() local
/linux-4.1.27/net/wireless/
Dlib80211_crypt_ccmp.c55 struct crypto_cipher *tfm; member
63 static inline void lib80211_ccmp_aes_encrypt(struct crypto_cipher *tfm, in lib80211_ccmp_aes_encrypt()
111 static void ccmp_init_blocks(struct crypto_cipher *tfm, in ccmp_init_blocks()
384 struct crypto_cipher *tfm = data->tfm; in lib80211_ccmp_set_key() local
/linux-4.1.27/net/ceph/
Dcrypto.c169 struct crypto_blkcipher *tfm = ceph_crypto_alloc_cipher(); in ceph_aes_encrypt() local
229 struct crypto_blkcipher *tfm = ceph_crypto_alloc_cipher(); in ceph_aes_encrypt2() local
291 struct crypto_blkcipher *tfm = ceph_crypto_alloc_cipher(); in ceph_aes_decrypt() local
356 struct crypto_blkcipher *tfm = ceph_crypto_alloc_cipher(); in ceph_aes_decrypt2() local
/linux-4.1.27/lib/
Dlibcrc32c.c40 static struct crypto_shash *tfm; variable
/linux-4.1.27/fs/btrfs/
Dhash.c18 static struct crypto_shash *tfm; variable
/linux-4.1.27/security/apparmor/
Dcrypto.c76 struct crypto_shash *tfm; in init_profile_hash() local
/linux-4.1.27/net/sunrpc/auth_gss/
Dgss_krb5_crypto.c54 struct crypto_blkcipher *tfm, in krb5_encrypt()
88 struct crypto_blkcipher *tfm, in krb5_decrypt()
462 gss_encrypt_xdr_buf(struct crypto_blkcipher *tfm, struct xdr_buf *buf, in gss_encrypt_xdr_buf()
538 gss_decrypt_xdr_buf(struct crypto_blkcipher *tfm, struct xdr_buf *buf, in gss_decrypt_xdr_buf()
/linux-4.1.27/fs/ext4/
Dcrypto_key.c47 struct crypto_ablkcipher *tfm = crypto_alloc_ablkcipher("ecb(aes)", 0, in ext4_derive_key_aes() local
Dcrypto_fname.c65 struct crypto_ablkcipher *tfm = ctx->ctfm; in ext4_fname_encrypt() local
143 struct crypto_ablkcipher *tfm = ctx->ctfm; in ext4_fname_decrypt() local
Dext4_crypto.h79 struct crypto_tfm *tfm; /* Crypto API context */ member
/linux-4.1.27/crypto/asymmetric_keys/
Dpkcs7_verify.c28 struct crypto_shash *tfm; in pkcs7_digest() local
Dx509_public_key.c130 struct crypto_shash *tfm; in x509_get_sig_params() local
Dverify_pefile.c325 struct crypto_shash *tfm; in pefile_digest_pe() local
/linux-4.1.27/net/mac802154/
Dllsec.h32 struct crypto_aead *tfm[3]; member
/linux-4.1.27/drivers/crypto/caam/
Dcaamalg.c261 struct aead_tfm *tfm = &aead->base.crt_aead; in aead_null_set_sh_desc() local
452 struct aead_tfm *tfm = &aead->base.crt_aead; in aead_set_sh_desc() local
741 struct aead_tfm *tfm = &aead->base.crt_aead; in gcm_set_sh_desc() local
971 struct aead_tfm *tfm = &aead->base.crt_aead; in rfc4106_set_sh_desc() local
1252 struct aead_tfm *tfm = &aead->base.crt_aead; in rfc4543_set_sh_desc() local
1831 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(ablkcipher); in ablkcipher_setkey() local
4135 static int caam_cra_init(struct crypto_tfm *tfm) in caam_cra_init()
4156 static void caam_cra_exit(struct crypto_tfm *tfm) in caam_cra_exit()
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/linux/
Dlinux-crypto-adler.c45 static int adler32_cra_init(struct crypto_tfm *tfm) in adler32_cra_init()
/linux-4.1.27/kernel/
Dmodule_signing.c48 struct crypto_shash *tfm; in mod_make_digest() local
/linux-4.1.27/drivers/misc/sgi-gru/
Dgrukdump.c80 struct gru_tlb_fault_map *tfm; in gru_dump_tfm() local
Dgrufault.c159 struct gru_tlb_fault_map *tfm; in get_clear_fault_map() local
/linux-4.1.27/security/integrity/evm/
Devm_crypto.c39 struct crypto_shash **tfm; in init_desc() local
/linux-4.1.27/drivers/target/iscsi/
Discsi_target_auth.c188 struct crypto_hash *tfm; in chap_server_compute_md5() local
/linux-4.1.27/mm/
Dzswap.c114 struct crypto_comp *tfm; in zswap_comp_op() local
343 struct crypto_comp *tfm; in __zswap_cpu_notifier() local
/linux-4.1.27/net/bluetooth/
Damp.c136 struct crypto_shash *tfm; in hmac_sha256() local
/linux-4.1.27/drivers/block/drbd/
Ddrbd_worker.c294 void drbd_csum_ee(struct crypto_hash *tfm, struct drbd_peer_request *peer_req, void *digest) in drbd_csum_ee()
321 void drbd_csum_bio(struct crypto_hash *tfm, struct bio *bio, void *digest) in drbd_csum_bio()
/linux-4.1.27/net/sctp/
Dauth.c451 struct crypto_hash *tfm = NULL; in sctp_auth_init_hmacs() local

12