Home
last modified time | relevance | path

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

123

/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()
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()
Dinternal.h77 int crypto_init_cipher_ops(struct crypto_tfm *tfm);
78 int crypto_init_compress_ops(struct crypto_tfm *tfm);
80 void crypto_exit_cipher_ops(struct crypto_tfm *tfm);
81 void crypto_exit_compress_ops(struct crypto_tfm *tfm);
92 struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type,
Dlzo.c29 static int lzo_init(struct crypto_tfm *tfm) in lzo_init()
40 static void lzo_exit(struct crypto_tfm *tfm) in lzo_exit()
47 static int lzo_compress(struct crypto_tfm *tfm, const u8 *src, in lzo_compress()
63 static int lzo_decompress(struct crypto_tfm *tfm, const u8 *src, in lzo_decompress()
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.c272 static int crypto_init_ops(struct crypto_tfm *tfm, u32 type, u32 mask) in crypto_init_ops()
294 static void crypto_exit_ops(struct crypto_tfm *tfm) in crypto_exit_ops()
351 struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type, in __crypto_alloc_tfm()
354 struct crypto_tfm *tfm = NULL; in __crypto_alloc_tfm()
409 struct crypto_tfm *crypto_alloc_base(const char *alg_name, u32 type, u32 mask) in crypto_alloc_base()
411 struct crypto_tfm *tfm; in crypto_alloc_base()
447 struct crypto_tfm *tfm = NULL; in crypto_create_tfm()
459 tfm = (struct crypto_tfm *)(mem + tfmsize); in crypto_create_tfm()
568 void crypto_destroy_tfm(void *mem, struct crypto_tfm *tfm) in crypto_destroy_tfm()
D842.c50 static int nx842_init(struct crypto_tfm *tfm) in nx842_init()
63 static void nx842_exit(struct crypto_tfm *tfm) in nx842_exit()
77 static int nx842_crypto_compress(struct crypto_tfm *tfm, const u8 *src, in nx842_crypto_compress()
119 static int nx842_crypto_decompress(struct crypto_tfm *tfm, const u8 *src, in nx842_crypto_decompress()
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()
139 int ablk_init(struct crypto_tfm *tfm) in ablk_init()
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()
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()
Dpcompress.c36 static int crypto_pcomp_init(struct crypto_tfm *tfm, u32 type, u32 mask) in crypto_pcomp_init()
46 static int crypto_pcomp_init_tfm(struct crypto_tfm *tfm) in crypto_pcomp_init_tfm()
Dblkcipher.c374 static int setkey_unaligned(struct crypto_tfm *tfm, const u8 *key, in setkey_unaligned()
396 static int setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) in setkey()
420 struct crypto_tfm *tfm = req->base.tfm; in async_encrypt()
434 struct crypto_tfm *tfm = req->base.tfm; in async_decrypt()
460 static int crypto_init_blkcipher_ops_async(struct crypto_tfm *tfm) in crypto_init_blkcipher_ops_async()
478 static int crypto_init_blkcipher_ops_sync(struct crypto_tfm *tfm) in crypto_init_blkcipher_ops_sync()
497 static int crypto_init_blkcipher_ops(struct crypto_tfm *tfm, u32 type, u32 mask) in crypto_init_blkcipher_ops()
720 int skcipher_geniv_init(struct crypto_tfm *tfm) in skcipher_geniv_init()
736 void skcipher_geniv_exit(struct crypto_tfm *tfm) in skcipher_geniv_exit()
Dchainiv.c107 static int chainiv_init_common(struct crypto_tfm *tfm) in chainiv_init_common()
114 static int chainiv_init(struct crypto_tfm *tfm) in chainiv_init()
264 static int async_chainiv_init(struct crypto_tfm *tfm) in async_chainiv_init()
276 static void async_chainiv_exit(struct crypto_tfm *tfm) in async_chainiv_exit()
Dablkcipher.c114 struct crypto_tfm *tfm = req->base.tfm; in ablkcipher_walk_done()
193 struct crypto_tfm *tfm, in ablkcipher_copy_iv()
231 struct crypto_tfm *tfm = req->base.tfm; in ablkcipher_walk_next()
276 struct crypto_tfm *tfm = req->base.tfm; in ablkcipher_walk_first()
364 static int crypto_init_ablkcipher_ops(struct crypto_tfm *tfm, u32 type, in crypto_init_ablkcipher_ops()
446 static int crypto_init_givcipher_ops(struct crypto_tfm *tfm, u32 type, in crypto_init_givcipher_ops()
678 struct crypto_tfm *tfm; in crypto_alloc_ablkcipher()
Dshash.c324 static void crypto_exit_shash_ops_async(struct crypto_tfm *tfm) in crypto_exit_shash_ops_async()
331 int crypto_init_shash_ops_async(struct crypto_tfm *tfm) in crypto_init_shash_ops_async()
444 static void crypto_exit_shash_ops_compat(struct crypto_tfm *tfm) in crypto_exit_shash_ops_compat()
453 static int crypto_init_shash_ops_compat(struct crypto_tfm *tfm) in crypto_init_shash_ops_compat()
493 static int crypto_init_shash_ops(struct crypto_tfm *tfm, u32 type, u32 mask) in crypto_init_shash_ops()
514 static int crypto_shash_init_tfm(struct crypto_tfm *tfm) in crypto_shash_init_tfm()
Danubis.c462 static int anubis_setkey(struct crypto_tfm *tfm, const u8 *in_key, in anubis_setkey()
662 static void anubis_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in anubis_encrypt()
668 static void anubis_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in anubis_decrypt()
Dseed.c331 static int seed_set_key(struct crypto_tfm *tfm, const u8 *in_key, in seed_set_key()
368 static void seed_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in seed_encrypt()
406 static void seed_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in seed_decrypt()
Dcryptd.c164 static inline struct cryptd_queue *cryptd_get_queue(struct crypto_tfm *tfm) in cryptd_get_queue()
259 static int cryptd_blkcipher_init_tfm(struct crypto_tfm *tfm) in cryptd_blkcipher_init_tfm()
277 static void cryptd_blkcipher_exit_tfm(struct crypto_tfm *tfm) in cryptd_blkcipher_exit_tfm()
374 static int cryptd_hash_init_tfm(struct crypto_tfm *tfm) in cryptd_hash_init_tfm()
393 static void cryptd_hash_exit_tfm(struct crypto_tfm *tfm) in cryptd_hash_exit_tfm()
691 static int cryptd_aead_init_tfm(struct crypto_tfm *tfm) in cryptd_aead_init_tfm()
709 static void cryptd_aead_exit_tfm(struct crypto_tfm *tfm) in cryptd_aead_exit_tfm()
822 struct crypto_tfm *tfm; in cryptd_alloc_ablkcipher()

123