Home
last modified time | relevance | path

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

12

/linux-4.4.14/include/linux/
Dcrypto.h158 struct crypto_tfm *tfm; member
177 struct crypto_blkcipher *tfm; member
183 struct crypto_tfm *tfm; member
191 struct crypto_hash *tfm; member
621 static inline void crypto_free_tfm(struct crypto_tfm *tfm) in crypto_free_tfm()
631 static inline const char *crypto_tfm_alg_name(struct crypto_tfm *tfm) in crypto_tfm_alg_name()
636 static inline const char *crypto_tfm_alg_driver_name(struct crypto_tfm *tfm) in crypto_tfm_alg_driver_name()
641 static inline int crypto_tfm_alg_priority(struct crypto_tfm *tfm) in crypto_tfm_alg_priority()
646 static inline u32 crypto_tfm_alg_type(struct crypto_tfm *tfm) in crypto_tfm_alg_type()
651 static inline unsigned int crypto_tfm_alg_blocksize(struct crypto_tfm *tfm) in crypto_tfm_alg_blocksize()
[all …]
/linux-4.4.14/include/crypto/
Dskcipher.h69 #define SKCIPHER_REQUEST_ON_STACK(name, tfm) \ argument
97 struct skcipher_givcrypt_request *req, struct crypto_ablkcipher *tfm) in skcipher_givcrypt_set_tfm()
110 struct crypto_ablkcipher *tfm, gfp_t gfp) in skcipher_givcrypt_alloc()
181 struct crypto_tfm *tfm) in __crypto_skcipher_cast()
204 struct crypto_skcipher *tfm) in crypto_skcipher_tfm()
213 static inline void crypto_free_skcipher(struct crypto_skcipher *tfm) in crypto_free_skcipher()
244 static inline unsigned int crypto_skcipher_ivsize(struct crypto_skcipher *tfm) in crypto_skcipher_ivsize()
260 struct crypto_skcipher *tfm) in crypto_skcipher_blocksize()
266 struct crypto_skcipher *tfm) in crypto_skcipher_alignmask()
271 static inline u32 crypto_skcipher_get_flags(struct crypto_skcipher *tfm) in crypto_skcipher_get_flags()
[all …]
Dhash.h143 struct crypto_shash *tfm; member
226 static inline struct crypto_ahash *__crypto_ahash_cast(struct crypto_tfm *tfm) in __crypto_ahash_cast()
248 static inline struct crypto_tfm *crypto_ahash_tfm(struct crypto_ahash *tfm) in crypto_ahash_tfm()
257 static inline void crypto_free_ahash(struct crypto_ahash *tfm) in crypto_free_ahash()
263 struct crypto_ahash *tfm) in crypto_ahash_alignmask()
277 static inline unsigned int crypto_ahash_blocksize(struct crypto_ahash *tfm) in crypto_ahash_blocksize()
289 struct crypto_ahash *tfm) in crypto_hash_alg_common()
304 static inline unsigned int crypto_ahash_digestsize(struct crypto_ahash *tfm) in crypto_ahash_digestsize()
309 static inline unsigned int crypto_ahash_statesize(struct crypto_ahash *tfm) in crypto_ahash_statesize()
314 static inline u32 crypto_ahash_get_flags(struct crypto_ahash *tfm) in crypto_ahash_get_flags()
[all …]
Daead.h158 static inline struct crypto_aead *__crypto_aead_cast(struct crypto_tfm *tfm) in __crypto_aead_cast()
179 static inline struct crypto_tfm *crypto_aead_tfm(struct crypto_aead *tfm) in crypto_aead_tfm()
188 static inline void crypto_free_aead(struct crypto_aead *tfm) in crypto_free_aead()
193 static inline struct aead_alg *crypto_aead_alg(struct crypto_aead *tfm) in crypto_aead_alg()
213 static inline unsigned int crypto_aead_ivsize(struct crypto_aead *tfm) in crypto_aead_ivsize()
230 static inline unsigned int crypto_aead_authsize(struct crypto_aead *tfm) in crypto_aead_authsize()
245 static inline unsigned int crypto_aead_blocksize(struct crypto_aead *tfm) in crypto_aead_blocksize()
250 static inline unsigned int crypto_aead_alignmask(struct crypto_aead *tfm) in crypto_aead_alignmask()
255 static inline u32 crypto_aead_get_flags(struct crypto_aead *tfm) in crypto_aead_get_flags()
260 static inline void crypto_aead_set_flags(struct crypto_aead *tfm, u32 flags) in crypto_aead_set_flags()
[all …]
Dakcipher.h134 struct crypto_akcipher *tfm) in crypto_akcipher_tfm()
145 struct crypto_tfm *tfm) in __crypto_akcipher_tfm()
151 struct crypto_akcipher *tfm) in crypto_akcipher_alg()
156 static inline unsigned int crypto_akcipher_reqsize(struct crypto_akcipher *tfm) in crypto_akcipher_reqsize()
162 struct crypto_akcipher *tfm) in akcipher_request_set_tfm()
178 static inline void crypto_free_akcipher(struct crypto_akcipher *tfm) in crypto_free_akcipher()
192 struct crypto_akcipher *tfm, gfp_t gfp) in akcipher_request_alloc()
266 static inline int crypto_akcipher_maxsize(struct crypto_akcipher *tfm) in crypto_akcipher_maxsize()
285 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in crypto_akcipher_encrypt() local
303 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in crypto_akcipher_decrypt() local
[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 …]
Drng.h97 static inline struct crypto_tfm *crypto_rng_tfm(struct crypto_rng *tfm) in crypto_rng_tfm()
110 static inline struct rng_alg *crypto_rng_alg(struct crypto_rng *tfm) in crypto_rng_alg()
120 static inline void crypto_free_rng(struct crypto_rng *tfm) in crypto_free_rng()
139 static inline int crypto_rng_generate(struct crypto_rng *tfm, in crypto_rng_generate()
157 static inline int crypto_rng_get_bytes(struct crypto_rng *tfm, in crypto_rng_get_bytes()
195 static inline int crypto_rng_seedsize(struct crypto_rng *tfm) in crypto_rng_seedsize()
Dcryptd.h25 struct crypto_ablkcipher *tfm) in __cryptd_ablkcipher_cast()
41 struct crypto_ahash *tfm) in __cryptd_ahash_cast()
58 struct crypto_aead *tfm) in __cryptd_aead_cast()
Dalgapi.h212 static inline void *crypto_tfm_ctx_aligned(struct crypto_tfm *tfm) in crypto_tfm_ctx_aligned()
219 struct crypto_tfm *tfm) in crypto_tfm_alg_instance()
230 struct crypto_ablkcipher *tfm) in crypto_ablkcipher_alg()
235 static inline void *crypto_ablkcipher_ctx(struct crypto_ablkcipher *tfm) in crypto_ablkcipher_ctx()
240 static inline void *crypto_ablkcipher_ctx_aligned(struct crypto_ablkcipher *tfm) in crypto_ablkcipher_ctx_aligned()
254 static inline void *crypto_blkcipher_ctx(struct crypto_blkcipher *tfm) in crypto_blkcipher_ctx()
259 static inline void *crypto_blkcipher_ctx_aligned(struct crypto_blkcipher *tfm) in crypto_blkcipher_ctx_aligned()
273 static inline struct cipher_alg *crypto_cipher_alg(struct crypto_cipher *tfm) in crypto_cipher_alg()
286 static inline void *crypto_hash_ctx(struct crypto_hash *tfm) in crypto_hash_ctx()
291 static inline void *crypto_hash_ctx_aligned(struct crypto_hash *tfm) in crypto_hash_ctx_aligned()
[all …]
Dmcryptd.h22 struct crypto_ahash *tfm) in __mcryptd_ahash_cast()
/linux-4.4.14/crypto/
Dskcipher.c34 static int skcipher_setkey_blkcipher(struct crypto_skcipher *tfm, in skcipher_setkey_blkcipher()
57 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in skcipher_crypt_blkcipher() local
72 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in skcipher_encrypt_blkcipher() local
81 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in skcipher_decrypt_blkcipher() local
87 static void crypto_exit_skcipher_ops_blkcipher(struct crypto_tfm *tfm) in crypto_exit_skcipher_ops_blkcipher()
94 static int crypto_init_skcipher_ops_blkcipher(struct crypto_tfm *tfm) in crypto_init_skcipher_ops_blkcipher()
126 static int skcipher_setkey_ablkcipher(struct crypto_skcipher *tfm, in skcipher_setkey_ablkcipher()
148 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in skcipher_crypt_ablkcipher() local
164 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in skcipher_encrypt_ablkcipher() local
173 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in skcipher_decrypt_ablkcipher() local
[all …]
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, const 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, const 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()
Drsa.c73 static inline struct rsa_key *rsa_get_key(struct crypto_akcipher *tfm) in rsa_get_key()
80 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_enc() local
125 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_dec() local
169 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_sign() local
214 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_verify() local
274 static int rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, in rsa_set_pub_key()
291 static int rsa_set_priv_key(struct crypto_akcipher *tfm, const void *key, in rsa_set_priv_key()
308 static int rsa_max_size(struct crypto_akcipher *tfm) in rsa_max_size()
315 static void rsa_exit_tfm(struct crypto_akcipher *tfm) in rsa_exit_tfm()
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()
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()
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()
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 …]
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()
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()
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()
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()
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()
Daead.c31 static int setkey_unaligned(struct crypto_aead *tfm, const u8 *key, in setkey_unaligned()
52 int crypto_aead_setkey(struct crypto_aead *tfm, in crypto_aead_setkey()
64 int crypto_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in crypto_aead_setauthsize()
82 static void crypto_aead_exit_tfm(struct crypto_tfm *tfm) in crypto_aead_exit_tfm()
90 static int crypto_aead_init_tfm(struct crypto_tfm *tfm) in crypto_aead_init_tfm()
175 static int aead_geniv_setkey(struct crypto_aead *tfm, in aead_geniv_setkey()
183 static int aead_geniv_setauthsize(struct crypto_aead *tfm, in aead_geniv_setauthsize()
322 void aead_exit_geniv(struct crypto_aead *tfm) in aead_exit_geniv()
Dcrypto_null.c32 static int null_compress(struct crypto_tfm *tfm, const u8 *src, in null_compress()
64 static int null_hash_setkey(struct crypto_shash *tfm, const u8 *key, in null_hash_setkey()
68 static int null_setkey(struct crypto_tfm *tfm, const u8 *key, in null_setkey()
72 static void null_crypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in null_crypt()
158 struct crypto_blkcipher *tfm; in crypto_get_default_null_skcipher() local
Dcryptd.c164 static inline struct cryptd_queue *cryptd_get_queue(struct crypto_tfm *tfm) in cryptd_get_queue()
252 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); in cryptd_blkcipher_enqueue() local
272 static int cryptd_blkcipher_init_tfm(struct crypto_tfm *tfm) in cryptd_blkcipher_init_tfm()
290 static void cryptd_blkcipher_exit_tfm(struct crypto_tfm *tfm) in cryptd_blkcipher_exit_tfm()
403 static int cryptd_hash_init_tfm(struct crypto_tfm *tfm) in cryptd_hash_init_tfm()
422 static void cryptd_hash_exit_tfm(struct crypto_tfm *tfm) in cryptd_hash_exit_tfm()
449 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cryptd_hash_enqueue() local
729 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cryptd_aead_enqueue() local
747 static int cryptd_aead_init_tfm(struct crypto_aead *tfm) in cryptd_aead_init_tfm()
766 static void cryptd_aead_exit_tfm(struct crypto_aead *tfm) in cryptd_aead_exit_tfm()
[all …]
Dblkcipher.c363 struct crypto_aead *tfm, in blkcipher_aead_walk_virt_block()
375 static int setkey_unaligned(struct crypto_tfm *tfm, const u8 *key, in setkey_unaligned()
397 static int setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) in setkey()
413 static int async_setkey(struct crypto_ablkcipher *tfm, const u8 *key, in async_setkey()
421 struct crypto_tfm *tfm = req->base.tfm; in async_encrypt() local
435 struct crypto_tfm *tfm = req->base.tfm; in async_decrypt() local
461 static int crypto_init_blkcipher_ops_async(struct crypto_tfm *tfm) in crypto_init_blkcipher_ops_async()
479 static int crypto_init_blkcipher_ops_sync(struct crypto_tfm *tfm) in crypto_init_blkcipher_ops_sync()
498 static int crypto_init_blkcipher_ops(struct crypto_tfm *tfm, u32 type, u32 mask) in crypto_init_blkcipher_ops()
721 int skcipher_geniv_init(struct crypto_tfm *tfm) in skcipher_geniv_init()
[all …]
Dansi_cprng.c52 struct crypto_cipher *tfm; member
325 static int cprng_init(struct crypto_tfm *tfm) in cprng_init()
349 static void cprng_exit(struct crypto_tfm *tfm) in cprng_exit()
354 static int cprng_get_random(struct crypto_rng *tfm, in cprng_get_random()
369 static int cprng_reset(struct crypto_rng *tfm, in cprng_reset()
390 static int fips_cprng_get_random(struct crypto_rng *tfm, in fips_cprng_get_random()
399 static int fips_cprng_reset(struct crypto_rng *tfm, 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()
Dtestmgr.c201 static int __test_hash(struct crypto_ahash *tfm, struct hash_testvec *template, in __test_hash()
400 static int test_hash(struct crypto_ahash *tfm, struct hash_testvec *template, in test_hash()
427 static int __test_aead(struct crypto_aead *tfm, int enc, in __test_aead()
817 static int test_aead(struct crypto_aead *tfm, int enc, in test_aead()
850 static int test_cipher(struct crypto_cipher *tfm, int enc, in test_cipher()
925 static int __test_skcipher(struct crypto_skcipher *tfm, int enc, in __test_skcipher()
1183 static int test_skcipher(struct crypto_skcipher *tfm, int enc, in test_skcipher()
1216 static int test_comp(struct crypto_comp *tfm, struct comp_testvec *ctemplate, in test_comp()
1296 static int test_pcomp(struct crypto_pcomp *tfm, in test_pcomp()
1473 static int test_cprng(struct crypto_rng *tfm, struct cprng_testvec *template, in test_cprng()
[all …]
Djitterentropy-kcapi.c121 static int jent_kcapi_init(struct crypto_tfm *tfm) in jent_kcapi_init()
134 static void jent_kcapi_cleanup(struct crypto_tfm *tfm) in jent_kcapi_cleanup()
145 static int jent_kcapi_random(struct crypto_rng *tfm, in jent_kcapi_random()
159 static int jent_kcapi_reset(struct crypto_rng *tfm, in jent_kcapi_reset()
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()
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()
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()
684 struct crypto_tfm *tfm; in crypto_alloc_ablkcipher() local
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.c250 struct algif_hash_tfm *tfm; in hash_check_key() local
355 struct algif_hash_tfm *tfm; in hash_bind() local
375 struct algif_hash_tfm *tfm = private; in hash_release() local
383 struct algif_hash_tfm *tfm = private; in hash_setkey() local
407 struct algif_hash_tfm *tfm = private; in hash_accept_parent_nokey() local
441 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()
Dchainiv.c83 static int chainiv_init_common(struct crypto_tfm *tfm, char iv[]) in chainiv_init_common()
99 static int chainiv_init(struct crypto_tfm *tfm) in chainiv_init()
230 static int async_chainiv_init(struct crypto_tfm *tfm) in async_chainiv_init()
251 static void async_chainiv_exit(struct crypto_tfm *tfm) in async_chainiv_exit()
D842.c39 static int crypto842_compress(struct crypto_tfm *tfm, in crypto842_compress()
48 static int crypto842_decompress(struct crypto_tfm *tfm, in crypto842_decompress()
Drng.c35 static inline struct crypto_rng *__crypto_rng_cast(struct crypto_tfm *tfm) in __crypto_rng_cast()
40 int crypto_rng_reset(struct crypto_rng *tfm, const u8 *seed, unsigned int slen) in crypto_rng_reset()
61 static int crypto_rng_init_tfm(struct crypto_tfm *tfm) in crypto_rng_init_tfm()
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()
Dkeywrap.c139 struct crypto_blkcipher *tfm = desc->tfm; in crypto_kw_decrypt() local
224 struct crypto_blkcipher *tfm = desc->tfm; in crypto_kw_encrypt() local
321 static int crypto_kw_init_tfm(struct crypto_tfm *tfm) in crypto_kw_init_tfm()
336 static void crypto_kw_exit_tfm(struct crypto_tfm *tfm) in crypto_kw_exit_tfm()
Dalgif_skcipher.c302 struct crypto_skcipher *tfm = skc->skcipher; in skcipher_sendmsg() local
508 struct crypto_skcipher *tfm = skc->skcipher; in skcipher_recvmsg_async() local
644 struct crypto_skcipher *tfm = skc->skcipher; in skcipher_recvmsg_sync() local
765 struct skcipher_tfm *tfm; in skcipher_check_key() local
858 struct skcipher_tfm *tfm; in skcipher_bind() local
878 struct skcipher_tfm *tfm = private; in skcipher_release() local
886 struct skcipher_tfm *tfm = private; in skcipher_setkey() local
909 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(&ctx->req); in skcipher_sock_destruct() local
924 struct skcipher_tfm *tfm = private; in skcipher_accept_parent_nokey() local
964 struct skcipher_tfm *tfm = private; in skcipher_accept_parent() local
Dpcompress.c36 static int crypto_pcomp_init(struct crypto_tfm *tfm, u32 type, u32 mask) in crypto_pcomp_init()
41 static int crypto_pcomp_init_tfm(struct crypto_tfm *tfm) in crypto_pcomp_init_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()
Dakcipher.c56 static void crypto_akcipher_exit_tfm(struct crypto_tfm *tfm) in crypto_akcipher_exit_tfm()
64 static int crypto_akcipher_init_tfm(struct crypto_tfm *tfm) in crypto_akcipher_init_tfm()
Dccm.c87 struct crypto_cipher *tfm = ctx->cipher; in crypto_ccm_setkey() local
110 static int crypto_ccm_setauthsize(struct crypto_aead *tfm, in crypto_ccm_setauthsize()
170 static void compute_mac(struct crypto_cipher *tfm, u8 *data, int n, in compute_mac()
209 static void get_data_to_compute(struct crypto_cipher *tfm, in get_data_to_compute()
451 static int crypto_ccm_init_tfm(struct crypto_aead *tfm) in crypto_ccm_init_tfm()
487 static void crypto_ccm_exit_tfm(struct crypto_aead *tfm) in crypto_ccm_exit_tfm()
769 static int crypto_rfc4309_init_tfm(struct crypto_aead *tfm) in crypto_rfc4309_init_tfm()
794 static void crypto_rfc4309_exit_tfm(struct crypto_aead *tfm) in crypto_rfc4309_exit_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()
Ddrbg.c1611 static void drbg_kcapi_set_entropy(struct crypto_rng *tfm, in drbg_kcapi_set_entropy()
1634 struct crypto_shash *tfm; in drbg_init_hash_kernel() local
1686 struct crypto_cipher *tfm; in drbg_init_sym_kernel() local
1701 struct crypto_cipher *tfm = in drbg_fini_sym_kernel() local
1712 struct crypto_cipher *tfm = in drbg_kcapi_sym() local
1767 static int drbg_kcapi_init(struct crypto_tfm *tfm) in drbg_kcapi_init()
1776 static void drbg_kcapi_cleanup(struct crypto_tfm *tfm) in drbg_kcapi_cleanup()
1790 static int drbg_kcapi_random(struct crypto_rng *tfm, in drbg_kcapi_random()
1810 static int drbg_kcapi_seed(struct crypto_rng *tfm, in drbg_kcapi_seed()
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()
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()
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()
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()
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()
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()
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()
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.c56 #define get_driver_name(tfm_type, tfm) crypto_tfm_alg_driver_name(tfm_type ## _tfm(tfm)) argument
307 struct crypto_aead *tfm; in test_aead_speed() local
464 struct crypto_blkcipher *tfm; in test_cipher_speed() local
730 struct crypto_hash *tfm; in test_hash_speed() local
954 struct crypto_ahash *tfm; in test_ahash_speed() local
1118 struct crypto_ablkcipher *tfm; in test_acipher_speed() local
Dchacha20poly1305.c173 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in poly_tail() local
372 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in poly_genkey() local
505 static int chachapoly_setauthsize(struct crypto_aead *tfm, in chachapoly_setauthsize()
514 static int chachapoly_init(struct crypto_aead *tfm) in chachapoly_init()
552 static void chachapoly_exit(struct crypto_aead *tfm) in chachapoly_exit()
Dgcm.c176 static int crypto_gcm_setauthsize(struct crypto_aead *tfm, in crypto_gcm_setauthsize()
564 static int crypto_gcm_init_tfm(struct crypto_aead *tfm) in crypto_gcm_init_tfm()
602 static void crypto_gcm_exit_tfm(struct crypto_aead *tfm) in crypto_gcm_exit_tfm()
884 static int crypto_rfc4106_init_tfm(struct crypto_aead *tfm) in crypto_rfc4106_init_tfm()
909 static void crypto_rfc4106_exit_tfm(struct crypto_aead *tfm) in crypto_rfc4106_exit_tfm()
1104 static int crypto_rfc4543_init_tfm(struct crypto_aead *tfm) in crypto_rfc4543_init_tfm()
1142 static void crypto_rfc4543_exit_tfm(struct crypto_aead *tfm) in crypto_rfc4543_exit_tfm()
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()
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()
Dblowfish_common.c349 int blowfish_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) in blowfish_setkey()
Dchacha20_generic.c127 int crypto_chacha20_setkey(struct crypto_tfm *tfm, const u8 *key, in crypto_chacha20_setkey()
Dalgapi.c677 struct crypto_tfm *tfm; in crypto_spawn_tfm() local
702 struct crypto_tfm *tfm; in crypto_spawn_tfm2() local
924 int crypto_tfm_in_queue(struct crypto_queue *queue, struct crypto_tfm *tfm) in crypto_tfm_in_queue()
Dmichael_mic.c136 static int michael_setkey(struct crypto_shash *tfm, const u8 *key, in michael_setkey()
Dcrc32.c48 static int crc32_cra_init(struct crypto_tfm *tfm) in crc32_cra_init()
Dpcrypt.c222 static int pcrypt_aead_init_tfm(struct crypto_aead *tfm) in pcrypt_aead_init_tfm()
250 static void pcrypt_aead_exit_tfm(struct crypto_aead *tfm) in pcrypt_aead_exit_tfm()
Dauthenc.c315 static int crypto_authenc_init_tfm(struct crypto_aead *tfm) in crypto_authenc_init_tfm()
362 static void crypto_authenc_exit_tfm(struct crypto_aead *tfm) in crypto_authenc_exit_tfm()
Deseqiv.c149 static int eseqiv_init(struct crypto_tfm *tfm) in eseqiv_init()
Dauthencesn.c328 static int crypto_authenc_esn_init_tfm(struct crypto_aead *tfm) in crypto_authenc_esn_init_tfm()
378 static void crypto_authenc_esn_exit_tfm(struct crypto_aead *tfm) in crypto_authenc_esn_exit_tfm()
Dpoly1305_generic.c54 int crypto_poly1305_setkey(struct crypto_shash *tfm, in crypto_poly1305_setkey()
/linux-4.4.14/drivers/crypto/sunxi-ss/
Dsun4i-ss-cipher.c21 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_opti_poll() local
128 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_cipher_poll() local
321 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_cbc_aes_encrypt() local
332 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_cbc_aes_decrypt() local
344 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_ecb_aes_encrypt() local
355 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_ecb_aes_decrypt() local
367 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_cbc_des_encrypt() local
378 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_cbc_des_decrypt() local
390 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_ecb_des_encrypt() local
401 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_ecb_des_decrypt() local
[all …]
Dsun4i-ss-hash.c21 int sun4i_hash_crainit(struct crypto_tfm *tfm) in sun4i_hash_crainit()
32 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun4i_hash_init() local
171 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun4i_hash_update() local
350 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun4i_hash_final() local
/linux-4.4.14/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.4.14/drivers/crypto/vmx/
Daes.c38 static int p8_aes_init(struct crypto_tfm *tfm) in p8_aes_init()
68 static void p8_aes_exit(struct crypto_tfm *tfm) in p8_aes_exit()
78 static int p8_aes_setkey(struct crypto_tfm *tfm, const u8 *key, in p8_aes_setkey()
97 static void p8_aes_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in p8_aes_encrypt()
114 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()
67 static void p8_aes_ctr_exit(struct crypto_tfm *tfm) in p8_aes_ctr_exit()
77 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()
69 static void p8_aes_cbc_exit(struct crypto_tfm *tfm) in p8_aes_cbc_exit()
79 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()
89 static void p8_ghash_exit_tfm(struct crypto_tfm *tfm) in p8_ghash_exit_tfm()
111 static int p8_ghash_setkey(struct crypto_shash *tfm, const u8 *key, in p8_ghash_setkey()
/linux-4.4.14/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.4.14/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
245 static inline u32 cipher_cfg_enc(struct crypto_tfm *tfm) in cipher_cfg_enc()
250 static inline u32 cipher_cfg_dec(struct crypto_tfm *tfm) in cipher_cfg_dec()
255 static inline const struct ix_hash_algo *ix_hash(struct crypto_tfm *tfm) in ix_hash()
350 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in finish_scattered_hmac() local
565 static int init_tfm(struct crypto_tfm *tfm) in init_tfm()
581 static int init_tfm_ablk(struct crypto_tfm *tfm) in init_tfm_ablk()
587 static int init_tfm_aead(struct crypto_aead *tfm) in init_tfm_aead()
593 static void exit_tfm(struct crypto_tfm *tfm) in exit_tfm()
600 static void exit_tfm_aead(struct crypto_aead *tfm) in exit_tfm_aead()
[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.c130 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in bfin_crypto_crc_init() local
417 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in bfin_crypto_crc_final() local
430 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in bfin_crypto_crc_finup() local
453 static int bfin_crypto_crc_setkey(struct crypto_ahash *tfm, const u8 *key, in bfin_crypto_crc_setkey()
469 static int bfin_crypto_crc_cra_init(struct crypto_tfm *tfm) in bfin_crypto_crc_cra_init()
480 static void bfin_crypto_crc_cra_exit(struct crypto_tfm *tfm) in bfin_crypto_crc_cra_exit()
Dpicoxcell_crypto.c449 static int spacc_aead_setkey(struct crypto_aead *tfm, const u8 *key, in spacc_aead_setkey()
488 static int spacc_aead_setauthsize(struct crypto_aead *tfm, in spacc_aead_setauthsize()
686 static int spacc_aead_cra_init(struct crypto_aead *tfm) in spacc_aead_cra_init()
715 static void spacc_aead_cra_exit(struct crypto_aead *tfm) in spacc_aead_cra_exit()
729 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in spacc_des_setkey() local
757 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in spacc_aes_setkey() local
804 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in spacc_kasumi_f8_setkey() local
824 struct crypto_tfm *tfm = req->req->tfm; in spacc_ablk_need_fallback() local
855 struct crypto_tfm *tfm = req->req->tfm; in spacc_ablk_submit() local
988 static int spacc_ablk_cra_init(struct crypto_tfm *tfm) in spacc_ablk_cra_init()
[all …]
Dsahara.c601 static int sahara_aes_setkey(struct crypto_ablkcipher *tfm, const u8 *key, in sahara_aes_setkey()
666 struct crypto_tfm *tfm = in sahara_aes_ecb_encrypt() local
684 struct crypto_tfm *tfm = in sahara_aes_ecb_decrypt() local
702 struct crypto_tfm *tfm = in sahara_aes_cbc_encrypt() local
720 struct crypto_tfm *tfm = in sahara_aes_cbc_decrypt() local
736 static int sahara_aes_cra_init(struct crypto_tfm *tfm) in sahara_aes_cra_init()
753 static void sahara_aes_cra_exit(struct crypto_tfm *tfm) in sahara_aes_cra_exit()
913 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in sahara_sha_prepare_request() local
1107 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in sahara_sha_init() local
1182 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
463 struct crypto_ahash *tfm = crypto_ahash_reqtfm(dd->req); in omap_sham_write_ctrl_omap4() local
837 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in omap_sham_init() local
1125 static int omap_sham_shash_digest(struct crypto_shash *tfm, u32 flags, in omap_sham_shash_digest()
1189 static int omap_sham_setkey(struct crypto_ahash *tfm, const u8 *key, in omap_sham_setkey()
1240 static int omap_sham_cra_init_alg(struct crypto_tfm *tfm, const char *alg_base) in omap_sham_cra_init_alg()
1274 static int omap_sham_cra_init(struct crypto_tfm *tfm) in omap_sham_cra_init()
1279 static int omap_sham_cra_sha1_init(struct crypto_tfm *tfm) in omap_sham_cra_sha1_init()
1284 static int omap_sham_cra_sha224_init(struct crypto_tfm *tfm) in omap_sham_cra_sha224_init()
1289 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()
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()
Dmv_cesa.c202 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in mv_setkey_aes() local
702 static int mv_cra_init(struct crypto_tfm *tfm) in mv_cra_init()
778 static int mv_hash_setkey(struct crypto_ahash *tfm, const u8 * key, in mv_hash_setkey()
843 static int mv_cra_hash_init(struct crypto_tfm *tfm, const char *base_hash_name, in mv_cra_hash_init()
891 static void mv_cra_hash_exit(struct crypto_tfm *tfm) in mv_cra_hash_exit()
900 static int mv_cra_hash_sha1_init(struct crypto_tfm *tfm) in mv_cra_hash_sha1_init()
905 static int mv_cra_hash_hmac_sha1_init(struct crypto_tfm *tfm) in mv_cra_hash_hmac_sha1_init()
Dtalitos.c1726 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in common_nonsnoop_hash() local
1794 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in ahash_edesc_alloc() local
1804 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in ahash_init() local
1848 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in ahash_process_req() local
1987 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in ahash_import() local
2023 static int keyhash(struct crypto_ahash *tfm, const u8 *key, unsigned int keylen, in keyhash()
2066 static int ahash_setkey(struct crypto_ahash *tfm, const u8 *key, in ahash_setkey()
2620 static int talitos_cra_init(struct crypto_tfm *tfm) in talitos_cra_init()
2637 static int talitos_cra_init_aead(struct crypto_aead *tfm) in talitos_cra_init_aead()
2649 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.c413 static int omap_aes_crypt_dma(struct crypto_tfm *tfm, in omap_aes_crypt_dma()
496 struct crypto_tfm *tfm = crypto_ablkcipher_tfm( in omap_aes_crypt_dma_start() local
743 static int omap_aes_setkey(struct crypto_ablkcipher *tfm, const u8 *key, in omap_aes_setkey()
790 static int omap_aes_cra_init(struct crypto_tfm *tfm) in omap_aes_cra_init()
814 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.c515 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); in s5p_aes_crypt() local
533 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in s5p_aes_setkey() local
567 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()
/linux-4.4.14/arch/s390/crypto/
Daes_s390.c95 static int setkey_fallback_cip(struct crypto_tfm *tfm, const u8 *in_key, in setkey_fallback_cip()
114 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key()
136 static void aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in aes_encrypt()
161 static void aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in aes_decrypt()
186 static int fallback_init_cip(struct crypto_tfm *tfm) in fallback_init_cip()
203 static void fallback_exit_cip(struct crypto_tfm *tfm) in fallback_exit_cip()
233 static int setkey_fallback_blk(struct crypto_tfm *tfm, const u8 *key, in setkey_fallback_blk()
257 struct crypto_blkcipher *tfm; in fallback_blk_dec() local
274 struct crypto_blkcipher *tfm; in fallback_blk_enc() local
286 static int ecb_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in ecb_aes_set_key()
[all …]
Ddes_s390.c36 static int des_setkey(struct crypto_tfm *tfm, const u8 *key, in des_setkey()
53 static void des_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in des_encrypt()
60 static void des_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in des_decrypt()
240 static int des3_setkey(struct crypto_tfm *tfm, const u8 *key, in des3_setkey()
257 static void des3_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in des3_encrypt()
264 static void des3_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in des3_decrypt()
Dghash_s390.c41 static int ghash_setkey(struct crypto_shash *tfm, in ghash_setkey()
/linux-4.4.14/net/mac80211/
Daes_gcm.c18 void ieee80211_aes_gcm_encrypt(struct crypto_aead *tfm, u8 *j_0, u8 *aad, in ieee80211_aes_gcm_encrypt()
42 int ieee80211_aes_gcm_decrypt(struct crypto_aead *tfm, u8 *j_0, u8 *aad, in ieee80211_aes_gcm_decrypt()
72 struct crypto_aead *tfm; in ieee80211_aes_gcm_key_setup_encrypt() local
93 void ieee80211_aes_gcm_key_free(struct crypto_aead *tfm) in ieee80211_aes_gcm_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_ccm.c21 void ieee80211_aes_ccm_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, in ieee80211_aes_ccm_encrypt()
46 int ieee80211_aes_ccm_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, in ieee80211_aes_ccm_decrypt()
77 struct crypto_aead *tfm; in ieee80211_aes_key_setup_encrypt() local
98 void ieee80211_aes_key_free(struct crypto_aead *tfm) in ieee80211_aes_key_free()
Daes_gmac.c24 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce, in ieee80211_aes_gmac()
62 struct crypto_aead *tfm; in ieee80211_aes_gmac_key_setup() local
79 void ieee80211_aes_gmac_key_free(struct crypto_aead *tfm) in ieee80211_aes_gmac_key_free()
Dkey.h87 struct crypto_aead *tfm; member
92 struct crypto_cipher *tfm; member
98 struct crypto_aead *tfm; member
109 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.4.14/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()
304 static int aes_set_key_common(struct crypto_tfm *tfm, void *raw_ctx, in aes_set_key_common()
328 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key()
334 static void aes_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in aes_encrypt()
347 static void aes_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in aes_decrypt()
360 static void __aes_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in __aes_encrypt()
367 static void __aes_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in __aes_decrypt()
534 static int ablk_ecb_init(struct crypto_tfm *tfm) in ablk_ecb_init()
539 static int ablk_cbc_init(struct crypto_tfm *tfm) in ablk_cbc_init()
545 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.c255 int lrw_serpent_setkey(struct crypto_tfm *tfm, const u8 *key, in lrw_serpent_setkey()
323 void lrw_serpent_exit_tfm(struct crypto_tfm *tfm) in lrw_serpent_exit_tfm()
331 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()
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()
Dcast6_avx_glue.c247 static int lrw_cast6_setkey(struct crypto_tfm *tfm, const u8 *key, in lrw_cast6_setkey()
313 static void lrw_exit_tfm(struct crypto_tfm *tfm) in lrw_exit_tfm()
325 static int xts_cast6_setkey(struct crypto_tfm *tfm, const u8 *key, in xts_cast6_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()
/linux-4.4.14/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
162 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_sha_init() local
250 static int ccp_sha_setkey(struct crypto_ahash *tfm, const u8 *key, in ccp_sha_setkey()
301 static int ccp_sha_cra_init(struct crypto_tfm *tfm) in ccp_sha_cra_init()
314 static void ccp_sha_cra_exit(struct crypto_tfm *tfm) in ccp_sha_cra_exit()
318 static int ccp_hmac_sha_cra_init(struct crypto_tfm *tfm) in ccp_hmac_sha_cra_init()
336 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
259 static int ccp_aes_cmac_setkey(struct crypto_ahash *tfm, const u8 *key, in ccp_aes_cmac_setkey()
338 static int ccp_aes_cmac_cra_init(struct crypto_tfm *tfm) in ccp_aes_cmac_cra_init()
361 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()
/linux-4.4.14/drivers/crypto/qat/qat_common/
Dqat_algs.c125 struct crypto_tfm *tfm; member
530 static int qat_alg_aead_init_sessions(struct crypto_aead *tfm, const u8 *key, in qat_alg_aead_init_sessions()
574 static int qat_alg_aead_setkey(struct crypto_aead *tfm, const uint8_t *key, in qat_alg_aead_setkey()
817 struct crypto_tfm *tfm = crypto_aead_tfm(aead_tfm); in qat_alg_aead_dec() local
859 struct crypto_tfm *tfm = crypto_aead_tfm(aead_tfm); in qat_alg_aead_enc() local
901 static int qat_alg_ablkcipher_setkey(struct crypto_ablkcipher *tfm, in qat_alg_ablkcipher_setkey()
962 static int qat_alg_ablkcipher_cbc_setkey(struct crypto_ablkcipher *tfm, in qat_alg_ablkcipher_cbc_setkey()
969 static int qat_alg_ablkcipher_ctr_setkey(struct crypto_ablkcipher *tfm, in qat_alg_ablkcipher_ctr_setkey()
976 static int qat_alg_ablkcipher_xts_setkey(struct crypto_ablkcipher *tfm, in qat_alg_ablkcipher_xts_setkey()
986 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(atfm); in qat_alg_ablkcipher_encrypt() local
[all …]
Dqat_asym_algs.c242 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in qat_rsa_enc() local
373 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in qat_rsa_dec() local
604 static int qat_rsa_setkey(struct crypto_akcipher *tfm, const void *key, in qat_rsa_setkey()
664 static int qat_rsa_setpubkey(struct crypto_akcipher *tfm, const void *key, in qat_rsa_setpubkey()
670 static int qat_rsa_setprivkey(struct crypto_akcipher *tfm, const void *key, in qat_rsa_setprivkey()
676 static int qat_rsa_max_size(struct crypto_akcipher *tfm) in qat_rsa_max_size()
683 static int qat_rsa_init_tfm(struct crypto_akcipher *tfm) in qat_rsa_init_tfm()
697 static void qat_rsa_exit_tfm(struct crypto_akcipher *tfm) in qat_rsa_exit_tfm()
/linux-4.4.14/drivers/crypto/nx/
Dnx.c708 int nx_crypto_ctx_aes_ccm_init(struct crypto_aead *tfm) in nx_crypto_ctx_aes_ccm_init()
715 int nx_crypto_ctx_aes_gcm_init(struct crypto_aead *tfm) in nx_crypto_ctx_aes_gcm_init()
722 int nx_crypto_ctx_aes_ctr_init(struct crypto_tfm *tfm) in nx_crypto_ctx_aes_ctr_init()
728 int nx_crypto_ctx_aes_cbc_init(struct crypto_tfm *tfm) in nx_crypto_ctx_aes_cbc_init()
734 int nx_crypto_ctx_aes_ecb_init(struct crypto_tfm *tfm) in nx_crypto_ctx_aes_ecb_init()
740 int nx_crypto_ctx_sha_init(struct crypto_tfm *tfm) in nx_crypto_ctx_sha_init()
745 int nx_crypto_ctx_aes_xcbc_init(struct crypto_tfm *tfm) in nx_crypto_ctx_aes_xcbc_init()
759 void nx_crypto_ctx_exit(struct crypto_tfm *tfm) in nx_crypto_ctx_exit()
770 void nx_crypto_ctx_aead_exit(struct crypto_aead *tfm) in nx_crypto_ctx_aead_exit()
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()
100 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-842.c113 int nx842_crypto_init(struct crypto_tfm *tfm, struct nx842_driver *driver) in nx842_crypto_init()
133 void nx842_crypto_exit(struct crypto_tfm *tfm) in nx842_crypto_exit()
258 int nx842_crypto_compress(struct crypto_tfm *tfm, in nx842_crypto_compress()
442 int nx842_crypto_decompress(struct crypto_tfm *tfm, in nx842_crypto_decompress()
Dnx-aes-gcm.c34 static int gcm_aes_nx_set_key(struct crypto_aead *tfm, in gcm_aes_nx_set_key()
73 static int gcm4106_aes_nx_set_key(struct crypto_aead *tfm, in gcm4106_aes_nx_set_key()
95 static int gcm4106_aes_nx_setauthsize(struct crypto_aead *tfm, in gcm4106_aes_nx_setauthsize()
Dnx-aes-ecb.c33 static int ecb_aes_nx_set_key(struct crypto_tfm *tfm, in ecb_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-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.4.14/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.h34 static inline void *crypto_rng_ctx(struct crypto_rng *tfm) in crypto_rng_ctx()
39 static inline void crypto_rng_set_entropy(struct crypto_rng *tfm, in crypto_rng_set_entropy()
Dakcipher.h25 static inline void *akcipher_tfm_ctx(struct crypto_akcipher *tfm) in akcipher_tfm_ctx()
36 static inline const char *akcipher_alg_name(struct crypto_akcipher *tfm) in akcipher_alg_name()
Dskcipher.h110 static inline void *crypto_skcipher_ctx(struct crypto_skcipher *tfm) in crypto_skcipher_ctx()
Daead.h42 static inline void *crypto_aead_ctx(struct crypto_aead *tfm) in crypto_aead_ctx()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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()
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()
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()
Dghash-ce-glue.c103 static int ghash_setkey(struct crypto_shash *tfm, in ghash_setkey()
/linux-4.4.14/arch/x86/crypto/sha-mb/
Dsha1_mb.c704 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in sha1_mb_async_init() local
718 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in sha1_mb_async_update() local
731 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in sha1_mb_async_finup() local
744 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in sha1_mb_async_final() local
755 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in sha1_mb_async_digest() local
765 static int sha1_mb_async_init_tfm(struct crypto_tfm *tfm) in sha1_mb_async_init_tfm()
786 static void sha1_mb_async_exit_tfm(struct crypto_tfm *tfm) in sha1_mb_async_exit_tfm()
/linux-4.4.14/drivers/crypto/qce/
Dablkcipher.c155 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(ablk); in qce_ablkcipher_setkey() local
195 struct crypto_tfm *tfm = in qce_ablkcipher_crypt() local
227 static int qce_ablkcipher_init(struct crypto_tfm *tfm) in qce_ablkcipher_init()
244 static void qce_ablkcipher_exit(struct crypto_tfm *tfm) in qce_ablkcipher_exit()
Dsha.c231 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in qce_ahash_update() local
363 static int qce_ahash_hmac_setkey(struct crypto_ahash *tfm, const u8 *key, in qce_ahash_hmac_setkey()
436 static int qce_ahash_cra_init(struct crypto_tfm *tfm) in qce_ahash_cra_init()
Dcipher.h56 static inline struct qce_alg_template *to_cipher_tmpl(struct crypto_tfm *tfm) in to_cipher_tmpl()
Dsha.h68 static inline struct qce_alg_template *to_ahash_tmpl(struct crypto_tfm *tfm) in to_ahash_tmpl()
/linux-4.4.14/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.4.14/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()
/linux-4.4.14/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.4.14/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
/linux-4.4.14/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()
374 struct crypto_tfm *tfm = data->tfm; in ieee80211_ccmp_set_key() local
/linux-4.4.14/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.4.14/drivers/crypto/marvell/
Dcipher.c216 static int mv_cesa_ablkcipher_cra_init(struct crypto_tfm *tfm) in mv_cesa_ablkcipher_cra_init()
230 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in mv_cesa_aes_setkey() local
255 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in mv_cesa_des_setkey() local
279 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in mv_cesa_des3_ede_setkey() local
396 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); in mv_cesa_ablkcipher_req_init() local
Dhash.c434 static inline int mv_cesa_ahash_cra_init(struct crypto_tfm *tfm) in mv_cesa_ahash_cra_init()
1152 struct crypto_ahash *tfm; in mv_cesa_ahmac_setkey() local
1201 static int mv_cesa_ahmac_cra_init(struct crypto_tfm *tfm) in mv_cesa_ahmac_cra_init()
1225 static int mv_cesa_ahmac_md5_setkey(struct crypto_ahash *tfm, const u8 *key, in mv_cesa_ahmac_md5_setkey()
1295 static int mv_cesa_ahmac_sha1_setkey(struct crypto_ahash *tfm, const u8 *key, in mv_cesa_ahmac_sha1_setkey()
1352 static int mv_cesa_ahmac_sha256_setkey(struct crypto_ahash *tfm, const u8 *key, in mv_cesa_ahmac_sha256_setkey()
/linux-4.4.14/net/ceph/
Dcrypto.c165 struct crypto_blkcipher *tfm = ceph_crypto_alloc_cipher(); in ceph_aes_encrypt() local
225 struct crypto_blkcipher *tfm = ceph_crypto_alloc_cipher(); in ceph_aes_encrypt2() local
287 struct crypto_blkcipher *tfm = ceph_crypto_alloc_cipher(); in ceph_aes_decrypt() local
352 struct crypto_blkcipher *tfm = ceph_crypto_alloc_cipher(); in ceph_aes_decrypt2() local
/linux-4.4.14/fs/btrfs/
Dhash.c18 static struct crypto_shash *tfm; variable
/linux-4.4.14/lib/
Dlibcrc32c.c40 static struct crypto_shash *tfm; variable
/linux-4.4.14/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.4.14/security/apparmor/
Dcrypto.c76 struct crypto_shash *tfm; in init_profile_hash() local
/linux-4.4.14/mm/
Dzswap.c117 struct crypto_comp * __percpu *tfm; member
424 struct crypto_comp *tfm; in __zswap_cpu_comp_notifier() local
844 struct crypto_comp *tfm; in zswap_writeback_entry() local
967 struct crypto_comp *tfm; in zswap_frontswap_store() local
1079 struct crypto_comp *tfm; in zswap_frontswap_load() local
/linux-4.4.14/fs/f2fs/
Dcrypto_fname.c76 struct crypto_ablkcipher *tfm = ci->ci_ctfm; in f2fs_fname_encrypt() local
155 struct crypto_ablkcipher *tfm = ci->ci_ctfm; in f2fs_fname_decrypt() local
Dcrypto_key.c50 struct crypto_ablkcipher *tfm = crypto_alloc_ablkcipher("ecb(aes)", 0, in f2fs_derive_key_aes() local
/linux-4.4.14/fs/ext4/
Dcrypto_fname.c71 struct crypto_ablkcipher *tfm = ci->ci_ctfm; in ext4_fname_encrypt() local
152 struct crypto_ablkcipher *tfm = ci->ci_ctfm; in ext4_fname_decrypt() local
Dcrypto_key.c47 struct crypto_ablkcipher *tfm = crypto_alloc_ablkcipher("ecb(aes)", 0, in ext4_derive_key_aes() local
Dcrypto.c268 struct crypto_ablkcipher *tfm = ci->ci_ctfm; in ext4_page_crypto() local
/linux-4.4.14/net/mac802154/
Dllsec.h32 struct crypto_aead *tfm[3]; member
/linux-4.4.14/crypto/asymmetric_keys/
Dpkcs7_verify.c28 struct crypto_shash *tfm; in pkcs7_digest() local
Dx509_public_key.c160 struct crypto_shash *tfm; in x509_get_sig_params() local
Dverify_pefile.c325 struct crypto_shash *tfm; in pefile_digest_pe() local
/linux-4.4.14/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.4.14/drivers/misc/sgi-gru/
Dgrukdump.c80 struct gru_tlb_fault_map *tfm; in gru_dump_tfm() local
/linux-4.4.14/security/integrity/evm/
Devm_crypto.c39 struct crypto_shash **tfm; in init_desc() local
/linux-4.4.14/drivers/target/iscsi/
Discsi_target_auth.c188 struct crypto_hash *tfm; in chap_server_compute_md5() local
/linux-4.4.14/drivers/crypto/caam/
Dcaamalg.c1461 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(ablkcipher); in ablkcipher_setkey() local
4344 static int caam_cra_init(struct crypto_tfm *tfm) in caam_cra_init()
4354 static int caam_aead_init(struct crypto_aead *tfm) in caam_aead_init()
4388 static void caam_cra_exit(struct crypto_tfm *tfm) in caam_cra_exit()
4393 static void caam_aead_exit(struct crypto_aead *tfm) in caam_aead_exit()

12