Home
last modified time | relevance | path

Searched refs:crypto_tfm (Results 1 – 181 of 181) sorted by relevance

/linux-4.4.14/include/linux/
Dcrypto.h141 struct crypto_tfm;
158 struct crypto_tfm *tfm;
183 struct crypto_tfm *tfm;
184 void (*crfn)(struct crypto_tfm *tfm, u8 *dst, const u8 *src);
281 int (*setkey)(struct crypto_tfm *tfm, const u8 *key,
347 int (*cia_setkey)(struct crypto_tfm *tfm, const u8 *key,
349 void (*cia_encrypt)(struct crypto_tfm *tfm, u8 *dst, const u8 *src);
350 void (*cia_decrypt)(struct crypto_tfm *tfm, u8 *dst, const u8 *src);
354 int (*coa_compress)(struct crypto_tfm *tfm, const u8 *src,
356 int (*coa_decompress)(struct crypto_tfm *tfm, const u8 *src,
[all …]
/linux-4.4.14/crypto/
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()
63 static void cipher_crypt_unaligned(void (*fn)(struct crypto_tfm *, u8 *, in cipher_crypt_unaligned() argument
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()
Dskcipher.c72 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in skcipher_encrypt_blkcipher()
81 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in skcipher_decrypt_blkcipher()
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()
100 struct crypto_tfm *btfm; in crypto_init_skcipher_ops_blkcipher()
164 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in skcipher_encrypt_ablkcipher()
173 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in skcipher_decrypt_ablkcipher()
179 static void crypto_exit_skcipher_ops_ablkcipher(struct crypto_tfm *tfm) in crypto_exit_skcipher_ops_ablkcipher()
186 static int crypto_init_skcipher_ops_ablkcipher(struct crypto_tfm *tfm) in crypto_init_skcipher_ops_ablkcipher()
192 struct crypto_tfm *abtfm; in crypto_init_skcipher_ops_ablkcipher()
[all …]
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()
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()
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()
Dinternal.h76 int crypto_init_cipher_ops(struct crypto_tfm *tfm);
77 int crypto_init_compress_ops(struct crypto_tfm *tfm);
79 void crypto_exit_cipher_ops(struct crypto_tfm *tfm);
80 void crypto_exit_compress_ops(struct crypto_tfm *tfm);
91 struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type,
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()
Dpcbc.c29 static int crypto_pcbc_setkey(struct crypto_tfm *parent, const u8 *key, in crypto_pcbc_setkey()
49 void (*fn)(struct crypto_tfm *, u8 *, const u8 *) = in crypto_pcbc_encrypt_segment()
74 void (*fn)(struct crypto_tfm *, u8 *, const u8 *) = in crypto_pcbc_encrypt_inplace()
127 void (*fn)(struct crypto_tfm *, u8 *, const u8 *) = in crypto_pcbc_decrypt_segment()
154 void (*fn)(struct crypto_tfm *, u8 *, const u8 *) = in crypto_pcbc_decrypt_inplace()
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.c26 static int crypto_cbc_setkey(struct crypto_tfm *parent, const u8 *key, in crypto_cbc_setkey()
46 void (*fn)(struct crypto_tfm *, u8 *, const u8 *) = in crypto_cbc_encrypt_segment()
70 void (*fn)(struct crypto_tfm *, u8 *, const u8 *) = in crypto_cbc_encrypt_inplace()
118 void (*fn)(struct crypto_tfm *, u8 *, const u8 *) = in crypto_cbc_decrypt_segment()
144 void (*fn)(struct crypto_tfm *, u8 *, const u8 *) = in crypto_cbc_decrypt_inplace()
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()
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()
366 struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type, in __crypto_alloc_tfm()
369 struct crypto_tfm *tfm = NULL; in __crypto_alloc_tfm()
424 struct crypto_tfm *crypto_alloc_base(const char *alg_name, u32 type, u32 mask) in crypto_alloc_base()
426 struct crypto_tfm *tfm; in crypto_alloc_base()
462 struct crypto_tfm *tfm = NULL; in crypto_create_tfm()
474 tfm = (struct crypto_tfm *)(mem + tfmsize); in crypto_create_tfm()
583 void crypto_destroy_tfm(void *mem, struct crypto_tfm *tfm) in crypto_destroy_tfm()
Dxts.c33 static int setkey(struct crypto_tfm *parent, const u8 *key, in setkey()
82 struct crypto_tfm *tfm;
83 void (*fn)(struct crypto_tfm *, u8 *, const u8 *);
95 void (*tw)(struct crypto_tfm *, u8 *, const u8 *), in crypt() argument
96 void (*fn)(struct crypto_tfm *, u8 *, const u8 *)) in crypt() argument
241 static int init_tfm(struct crypto_tfm *tfm) in init_tfm()
280 static void exit_tfm(struct crypto_tfm *tfm) in exit_tfm()
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()
Decb.c25 static int crypto_ecb_setkey(struct crypto_tfm *parent, const u8 *key, in crypto_ecb_setkey()
44 void (*fn)(struct crypto_tfm *, u8 *, const u8 *)) in crypto_ecb_crypt() argument
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()
Dablk_helper.c114 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()
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()
Dlrw.c79 static int setkey(struct crypto_tfm *parent, const u8 *key, in setkey()
101 struct crypto_tfm *tfm;
102 void (*fn)(struct crypto_tfm *, u8 *, const u8 *);
140 void (*fn)(struct crypto_tfm *, u8 *, const u8 *)) in crypt() argument
296 static int init_tfm(struct crypto_tfm *tfm) in init_tfm()
318 static void exit_tfm(struct crypto_tfm *tfm) in exit_tfm()
Dctr.c38 static int crypto_ctr_setkey(struct crypto_tfm *parent, const u8 *key, in crypto_ctr_setkey()
77 void (*fn)(struct crypto_tfm *, u8 *, const u8 *) = in crypto_ctr_crypt_segment()
103 void (*fn)(struct crypto_tfm *, u8 *, const u8 *) = in crypto_ctr_crypt_inplace()
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()
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()
Dcrypto_null.c32 static int null_compress(struct crypto_tfm *tfm, const u8 *src, in null_compress()
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()
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()
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()
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()
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()
Dblkcipher.c375 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()
421 struct crypto_tfm *tfm = req->base.tfm; in async_encrypt()
435 struct crypto_tfm *tfm = req->base.tfm; in async_decrypt()
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()
737 void skcipher_geniv_exit(struct crypto_tfm *tfm) in skcipher_geniv_exit()
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()
Dablkcipher.c111 struct crypto_tfm *tfm = req->base.tfm; in ablkcipher_walk_done()
190 struct crypto_tfm *tfm, in ablkcipher_copy_iv()
228 struct crypto_tfm *tfm = req->base.tfm; in ablkcipher_walk_next()
273 struct crypto_tfm *tfm = req->base.tfm; in ablkcipher_walk_first()
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()
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()
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()
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()
Dshash.c325 static void crypto_exit_shash_ops_async(struct crypto_tfm *tfm) in crypto_exit_shash_ops_async()
332 int crypto_init_shash_ops_async(struct crypto_tfm *tfm) in crypto_init_shash_ops_async()
446 static void crypto_exit_shash_ops_compat(struct crypto_tfm *tfm) in crypto_exit_shash_ops_compat()
455 static int crypto_init_shash_ops_compat(struct crypto_tfm *tfm) in crypto_init_shash_ops_compat()
495 static int crypto_init_shash_ops(struct crypto_tfm *tfm, u32 type, u32 mask) in crypto_init_shash_ops()
516 static int crypto_shash_init_tfm(struct crypto_tfm *tfm) in crypto_shash_init_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()
Dkeywrap.c305 static int crypto_kw_setkey(struct crypto_tfm *parent, const u8 *key, in crypto_kw_setkey()
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()
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()
Drng.c35 static inline struct crypto_rng *__crypto_rng_cast(struct crypto_tfm *tfm) in __crypto_rng_cast()
61 static int crypto_rng_init_tfm(struct crypto_tfm *tfm) in crypto_rng_init_tfm()
Dcts.c57 static int crypto_cts_setkey(struct crypto_tfm *parent, const u8 *key, in crypto_cts_setkey()
253 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()
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()
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()
Dxcbc.c177 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()
Dcmac.c203 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()
Dhmac.c156 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()
Dcryptd.c164 static inline struct cryptd_queue *cryptd_get_queue(struct crypto_tfm *tfm) in cryptd_get_queue()
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()
885 struct crypto_tfm *tfm; in cryptd_alloc_ablkcipher()
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()
Dcrc32.c48 static int crc32_cra_init(struct crypto_tfm *tfm) in crc32_cra_init()
Dansi_cprng.c325 static int cprng_init(struct crypto_tfm *tfm) in cprng_init()
349 static void cprng_exit(struct crypto_tfm *tfm) in cprng_exit()
Dcrc32c_generic.c128 static int crc32c_cra_init(struct crypto_tfm *tfm) in crc32c_cra_init()
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()
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()
Dalgapi.c673 struct crypto_tfm *crypto_spawn_tfm(struct crypto_spawn *spawn, u32 type, in crypto_spawn_tfm()
677 struct crypto_tfm *tfm; in crypto_spawn_tfm()
702 struct crypto_tfm *tfm; in crypto_spawn_tfm2()
924 int crypto_tfm_in_queue(struct crypto_queue *queue, struct crypto_tfm *tfm) in crypto_tfm_in_queue()
Dblowfish_common.c349 int blowfish_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) in blowfish_setkey()
Dghash-generic.c134 static void ghash_exit_tfm(struct crypto_tfm *tfm) in ghash_exit_tfm()
Daead.c82 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()
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()
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()
Deseqiv.c149 static int eseqiv_init(struct crypto_tfm *tfm) in eseqiv_init()
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()
Dsalsa20_generic.c169 static int setkey(struct crypto_tfm *tfm, const u8 *key, in setkey()
Dchacha20_generic.c127 int crypto_chacha20_setkey(struct crypto_tfm *tfm, const u8 *key, in crypto_chacha20_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()
Ddrbg.c1767 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()
1814 struct crypto_tfm *tfm_base = crypto_rng_tfm(tfm); in drbg_kcapi_seed()
Dseqiv.c232 static int seqiv_init(struct crypto_tfm *tfm) in seqiv_init()
Dtwofish_common.c703 int twofish_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int key_len) in twofish_setkey()
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()
Dahash.c449 static int crypto_ahash_init_tfm(struct crypto_tfm *tfm) in crypto_ahash_init_tfm()
/linux-4.4.14/drivers/crypto/vmx/
Daes.c38 static int p8_aes_init(struct crypto_tfm *tfm) in p8_aes_init()
57 crypto_tfm_alg_driver_name((struct crypto_tfm *) fallback)); 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()
57 crypto_tfm_alg_driver_name((struct crypto_tfm *) fallback)); 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()
59 crypto_tfm_alg_driver_name((struct crypto_tfm *) fallback)); 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()
/linux-4.4.14/include/crypto/
Dablk_helper.h25 extern void ablk_exit(struct crypto_tfm *tfm);
27 extern int ablk_init_common(struct crypto_tfm *tfm, const char *drv_name);
29 extern int ablk_init(struct crypto_tfm *tfm);
Dtwofish.h10 struct crypto_tfm;
22 int twofish_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int key_len);
Dalgapi.h29 int (*init)(struct crypto_tfm *tfm, u32 type, u32 mask);
30 int (*init_tfm)(struct crypto_tfm *tfm);
153 struct crypto_tfm *crypto_spawn_tfm(struct crypto_spawn *spawn, u32 type,
186 int crypto_tfm_in_queue(struct crypto_queue *queue, struct crypto_tfm *tfm);
212 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()
Dhash.h208 struct crypto_tfm base;
213 struct crypto_tfm base;
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()
646 static inline struct crypto_tfm *crypto_shash_tfm(struct crypto_shash *tfm) in crypto_shash_tfm()
Drng.h60 struct crypto_tfm base;
97 static inline struct crypto_tfm *crypto_rng_tfm(struct crypto_rng *tfm) in crypto_rng_tfm()
Daead.h155 struct crypto_tfm base;
158 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()
Dakcipher.h48 struct crypto_tfm base;
133 static inline struct crypto_tfm *crypto_akcipher_tfm( in crypto_akcipher_tfm()
145 struct crypto_tfm *tfm) in __crypto_akcipher_tfm()
Dcompress.h54 struct crypto_tfm base;
79 static inline struct crypto_tfm *crypto_pcomp_tfm(struct crypto_pcomp *tfm) in crypto_pcomp_tfm()
Dskcipher.h66 struct crypto_tfm base;
181 struct crypto_tfm *tfm) in __crypto_skcipher_cast()
203 static inline struct crypto_tfm *crypto_skcipher_tfm( in crypto_skcipher_tfm()
Dblowfish.h20 int blowfish_setkey(struct crypto_tfm *tfm, const u8 *key,
Dchacha20.h20 int crypto_chacha20_setkey(struct crypto_tfm *tfm, const u8 *key,
Dcast5.h18 int cast5_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen);
Dserpent.h22 int serpent_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen);
Dcast6.h19 int cast6_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen);
Daes.h35 int crypto_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key,
/linux-4.4.14/drivers/crypto/nx/
Dnx.h157 int nx_crypto_ctx_aes_xcbc_init(struct crypto_tfm *tfm);
158 int nx_crypto_ctx_aes_ctr_init(struct crypto_tfm *tfm);
159 int nx_crypto_ctx_aes_cbc_init(struct crypto_tfm *tfm);
160 int nx_crypto_ctx_aes_ecb_init(struct crypto_tfm *tfm);
161 int nx_crypto_ctx_sha_init(struct crypto_tfm *tfm);
162 void nx_crypto_ctx_exit(struct crypto_tfm *tfm);
Dnx-842.h176 int nx842_crypto_init(struct crypto_tfm *tfm, struct nx842_driver *driver);
177 void nx842_crypto_exit(struct crypto_tfm *tfm);
178 int nx842_crypto_compress(struct crypto_tfm *tfm,
181 int nx842_crypto_decompress(struct crypto_tfm *tfm,
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.c722 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()
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-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()
Dnx-842-powernv.c587 static int nx842_powernv_crypto_init(struct crypto_tfm *tfm) in nx842_powernv_crypto_init()
Dnx-842-pseries.c969 static int nx842_pseries_crypto_init(struct crypto_tfm *tfm) in nx842_pseries_crypto_init()
/linux-4.4.14/arch/x86/include/asm/crypto/
Dtwofish.h38 extern int lrw_twofish_setkey(struct crypto_tfm *tfm, const u8 *key,
41 extern void lrw_twofish_exit_tfm(struct crypto_tfm *tfm);
43 extern int xts_twofish_setkey(struct crypto_tfm *tfm, const u8 *key,
Dserpent-avx.h40 extern int lrw_serpent_setkey(struct crypto_tfm *tfm, const u8 *key,
43 extern void lrw_serpent_exit_tfm(struct crypto_tfm *tfm);
45 extern int xts_serpent_setkey(struct crypto_tfm *tfm, const u8 *key,
Dcamellia.h32 extern int lrw_camellia_setkey(struct crypto_tfm *tfm, const u8 *key,
34 extern void lrw_camellia_exit_tfm(struct crypto_tfm *tfm);
36 extern int xts_camellia_setkey(struct crypto_tfm *tfm, const u8 *key,
/linux-4.4.14/arch/arm/crypto/
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()
Dghash-ce-glue.c246 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()
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/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()
286 static int ecb_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in ecb_aes_set_key()
367 static int fallback_init_blk(struct crypto_tfm *tfm) in fallback_init_blk()
384 static void fallback_exit_blk(struct crypto_tfm *tfm) in fallback_exit_blk()
[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()
/linux-4.4.14/arch/x86/crypto/
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()
Dfpu.c27 static int crypto_fpu_setkey(struct crypto_tfm *parent, const u8 *key, in crypto_fpu_setkey()
81 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()
Daesni-intel_glue.c304 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()
553 static int ablk_pcbc_init(struct crypto_tfm *tfm) in ablk_pcbc_init()
[all …]
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()
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()
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()
Dsalsa20_glue.c40 static int setkey(struct crypto_tfm *tfm, const u8 *key, in setkey()
Dghash-clmulni-intel_glue.c260 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()
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()
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()
Dcrc32-pclmul_glue.c82 static int crc32_pclmul_cra_init(struct crypto_tfm *tfm) in crc32_pclmul_cra_init()
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()
Dcrc32c-intel_glue.c174 static int crc32c_intel_cra_init(struct crypto_tfm *tfm) in crc32c_intel_cra_init()
Dcamellia_aesni_avx_glue.c201 static int camellia_setkey(struct crypto_tfm *tfm, const u8 *in_key, in camellia_setkey()
Dcamellia_aesni_avx2_glue.c197 static int camellia_setkey(struct crypto_tfm *tfm, const u8 *in_key, in camellia_setkey()
/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()
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;
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()
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()
593 static void exit_tfm(struct crypto_tfm *tfm) in exit_tfm()
605 static int register_chain_var(struct crypto_tfm *tfm, u8 xpad, u32 target, in register_chain_var()
661 static int setup_auth(struct crypto_tfm *tfm, int encrypt, unsigned authsize, in setup_auth()
708 static int gen_rev_aes_key(struct crypto_tfm *tfm) in gen_rev_aes_key()
[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()
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()
703 static inline struct n2_cipher_alg *n2_cipher_alg(struct crypto_tfm *tfm) in n2_cipher_alg()
717 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in n2_aes_setkey()
746 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in n2_des_setkey()
773 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in n2_3des_setkey()
[all …]
Dpicoxcell_crypto.c524 struct crypto_tfm *old_tfm = crypto_aead_tfm(crypto_aead_reqtfm(req)); in spacc_aead_do_fallback()
729 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in spacc_des_setkey()
757 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in spacc_aes_setkey()
804 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in spacc_kasumi_f8_setkey()
824 struct crypto_tfm *tfm = req->req->tfm; in spacc_ablk_need_fallback()
855 struct crypto_tfm *tfm = req->req->tfm; in spacc_ablk_submit()
890 struct crypto_tfm *old_tfm = in spacc_ablk_do_fallback()
988 static int spacc_ablk_cra_init(struct crypto_tfm *tfm) in spacc_ablk_cra_init()
1014 static void spacc_ablk_cra_exit(struct crypto_tfm *tfm) in spacc_ablk_cra_exit()
1026 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in spacc_ablk_encrypt()
[all …]
Dpadlock-aes.c94 static inline struct aes_ctx *aes_ctx(struct crypto_tfm *tfm) in 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()
Dsahara.c629 struct crypto_tfm *tfm_aux = crypto_ablkcipher_tfm(tfm); in sahara_aes_setkey()
666 struct crypto_tfm *tfm = in sahara_aes_ecb_encrypt()
684 struct crypto_tfm *tfm = in sahara_aes_ecb_decrypt()
702 struct crypto_tfm *tfm = in sahara_aes_cbc_encrypt()
720 struct crypto_tfm *tfm = in sahara_aes_cbc_decrypt()
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()
1182 static int sahara_sha_cra_init(struct crypto_tfm *tfm) in sahara_sha_cra_init()
1200 static void sahara_sha_cra_exit(struct crypto_tfm *tfm) in sahara_sha_cra_exit()
Dmxs-dcp.c377 struct crypto_tfm *tfm = in mxs_dcp_block_fallback()
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()
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()
Dmv_cesa.c202 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in mv_setkey_aes()
702 static int mv_cra_init(struct crypto_tfm *tfm) in mv_cra_init()
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()
Domap-sham.c1240 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()
1294 static int omap_sham_cra_md5_init(struct crypto_tfm *tfm) in omap_sham_cra_md5_init()
1299 static int omap_sham_cra_sha384_init(struct crypto_tfm *tfm) in omap_sham_cra_sha384_init()
1304 static int omap_sham_cra_sha512_init(struct crypto_tfm *tfm) in omap_sham_cra_sha512_init()
1309 static void omap_sham_cra_exit(struct crypto_tfm *tfm) in omap_sham_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()
782 struct crypto_tfm *ctfm = crypto_ablkcipher_tfm(tfm); in atmel_des_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()
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()
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()
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()
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()
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()
Ds5p-sss.c533 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in s5p_aes_setkey()
567 static int s5p_aes_cra_init(struct crypto_tfm *tfm) in s5p_aes_cra_init()
Dbfin_crc.c469 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()
Dimg-hash.c646 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-aes.c948 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()
Dhifn_795x.c2048 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in hifn_setkey()
2470 static int hifn_cra_init(struct crypto_tfm *tfm) in hifn_cra_init()
Datmel-sha.c983 static int atmel_sha_cra_init(struct crypto_tfm *tfm) in atmel_sha_cra_init()
Dtalitos.c2620 static int talitos_cra_init(struct crypto_tfm *tfm) in talitos_cra_init()
2649 static int talitos_cra_init_ahash(struct crypto_tfm *tfm) in talitos_cra_init_ahash()
/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()
Daes-ce-setkey.h2 int ce_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key,
Dcrc32-arm64.c206 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-glue.c82 static int xts_set_key(struct crypto_tfm *tfm, const u8 *in_key, in xts_set_key()
/linux-4.4.14/include/crypto/internal/
Dskcipher.h66 int skcipher_geniv_init(struct crypto_tfm *tfm);
67 void skcipher_geniv_exit(struct crypto_tfm *tfm);
Dhash.h129 int crypto_init_shash_ops_async(struct crypto_tfm *tfm);
241 static inline struct crypto_shash *__crypto_shash_cast(struct crypto_tfm *tfm) in __crypto_shash_cast()
/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/sunxi-ss/
Dsun4i-ss.h169 int sun4i_hash_crainit(struct crypto_tfm *tfm);
195 int sun4i_ss_cipher_init(struct crypto_tfm *tfm);
Dsun4i-ss-hash.c21 int sun4i_hash_crainit(struct crypto_tfm *tfm) in sun4i_hash_crainit()
Dsun4i-ss-cipher.c456 int sun4i_ss_cipher_init(struct crypto_tfm *tfm) in sun4i_ss_cipher_init()
/linux-4.4.14/drivers/crypto/ccp/
Dccp-crypto-aes.c127 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()
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.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-aes-xts.c120 struct crypto_tfm *tfm = in ccp_aes_xts_crypt()
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-sha.c301 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-cmac.c338 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-main.c67 struct crypto_tfm *tfm;
/linux-4.4.14/drivers/staging/rtl8192e/
Drtllib_crypt_ccmp.c47 struct crypto_tfm *tfm;
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()
/linux-4.4.14/drivers/crypto/qce/
Dablkcipher.c155 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(ablk); in qce_ablkcipher_setkey()
195 struct crypto_tfm *tfm = in qce_ablkcipher_crypt()
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()
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()
Dsha.c436 static int qce_ahash_cra_init(struct crypto_tfm *tfm) in qce_ahash_cra_init()
/linux-4.4.14/drivers/crypto/amcc/
Dcrypto4xx_alg.c110 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in crypto4xx_setkey_aes()
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.h191 extern int crypto4xx_sha1_alg_init(struct crypto_tfm *tfm);
Dcrypto4xx_core.c972 static int crypto4xx_alg_init(struct crypto_tfm *tfm) in crypto4xx_alg_init()
998 static void crypto4xx_alg_exit(struct crypto_tfm *tfm) in crypto4xx_alg_exit()
/linux-4.4.14/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_ccmp.c51 struct crypto_tfm *tfm;
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()
/linux-4.4.14/arch/um/include/shared/
Dcommon-offsets.h20 DEFINE(crypto_tfm_ctx_offset, offsetof(struct crypto_tfm, __crt_ctx));
/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/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/arch/x86/kernel/
Dasm-offsets.c37 OFFSET(crypto_tfm_ctx_offset, crypto_tfm, __crt_ctx); in common()
/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()
255 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in mv_cesa_des_setkey()
279 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in mv_cesa_des3_ede_setkey()
Dhash.c434 static inline int mv_cesa_ahash_cra_init(struct crypto_tfm *tfm) in mv_cesa_ahash_cra_init()
1201 static int mv_cesa_ahmac_cra_init(struct crypto_tfm *tfm) in mv_cesa_ahmac_cra_init()
/linux-4.4.14/drivers/crypto/qat/qat_common/
Dqat_algs.c125 struct crypto_tfm *tfm;
817 struct crypto_tfm *tfm = crypto_aead_tfm(aead_tfm); in qat_alg_aead_dec()
859 struct crypto_tfm *tfm = crypto_aead_tfm(aead_tfm); in qat_alg_aead_enc()
986 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(atfm); in qat_alg_ablkcipher_encrypt()
1023 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(atfm); in qat_alg_ablkcipher_decrypt()
1112 static int qat_alg_ablkcipher_init(struct crypto_tfm *tfm) in qat_alg_ablkcipher_init()
1123 static void qat_alg_ablkcipher_exit(struct crypto_tfm *tfm) in qat_alg_ablkcipher_exit()
/linux-4.4.14/arch/x86/crypto/sha-mb/
Dsha1_mb.c765 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/caam/
Dcaamhash.c1759 static int caam_hash_cra_init(struct crypto_tfm *tfm) in caam_hash_cra_init()
1803 static void caam_hash_cra_exit(struct crypto_tfm *tfm) in caam_hash_cra_exit()
Dcaamalg.c1461 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(ablkcipher); in ablkcipher_setkey()
4344 static int caam_cra_init(struct crypto_tfm *tfm) in caam_cra_init()
4388 static void caam_cra_exit(struct crypto_tfm *tfm) in caam_cra_exit()
/linux-4.4.14/drivers/crypto/ux500/hash/
Dhash_core.c1495 static int hash_cra_init(struct crypto_tfm *tfm) in hash_cra_init()
/linux-4.4.14/drivers/crypto/ux500/cryp/
Dcryp_core.c1093 static int cryp_cra_init(struct crypto_tfm *tfm) in cryp_cra_init()