/crypto/ |
D | digest.c | 29 struct crypto_tfm *tfm = crypto_hash_tfm(desc->tfm); in init() local 38 struct crypto_tfm *tfm = crypto_hash_tfm(desc->tfm); in update2() local 97 struct crypto_tfm *tfm = crypto_hash_tfm(desc->tfm); in final() local 115 static int nosetkey(struct crypto_hash *tfm, const u8 *key, unsigned int keylen) in nosetkey() 123 struct crypto_tfm *tfm = crypto_hash_tfm(hash); in setkey() local 140 int crypto_init_digest_ops(struct crypto_tfm *tfm) in crypto_init_digest_ops() 158 void crypto_exit_digest_ops(struct crypto_tfm *tfm) in crypto_exit_digest_ops() 172 struct crypto_tfm *tfm = crypto_ahash_tfm(tfm_async); in digest_async_setkey() local 181 struct crypto_tfm *tfm = req->base.tfm; in digest_async_init() local 190 struct crypto_tfm *tfm = req->base.tfm; in digest_async_update() local [all …]
|
D | hash.c | 30 struct crypto_tfm *tfm = crypto_hash_tfm(crt); in hash_setkey_unaligned() local 53 struct crypto_tfm *tfm = crypto_hash_tfm(crt); in hash_setkey() local 66 struct crypto_tfm *tfm = crypto_ahash_tfm(tfm_async); in hash_async_setkey() local 75 struct crypto_tfm *tfm = req->base.tfm; in hash_async_init() local 87 struct crypto_tfm *tfm = req->base.tfm; in hash_async_update() local 99 struct crypto_tfm *tfm = req->base.tfm; in hash_async_final() local 111 struct crypto_tfm *tfm = req->base.tfm; in hash_async_digest() local 121 static int crypto_init_hash_ops_async(struct crypto_tfm *tfm) in crypto_init_hash_ops_async() 136 static int crypto_init_hash_ops_sync(struct crypto_tfm *tfm) in crypto_init_hash_ops_sync() 151 static int crypto_init_hash_ops(struct crypto_tfm *tfm, u32 type, u32 mask) in crypto_init_hash_ops()
|
D | cipher.c | 23 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()
|
D | compress.c | 20 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()
|
D | shash.c | 23 static inline struct crypto_shash *__crypto_shash_cast(struct crypto_tfm *tfm) in __crypto_shash_cast() 30 static int shash_setkey_unaligned(struct crypto_shash *tfm, const u8 *key, in shash_setkey_unaligned() 52 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 94 struct crypto_shash *tfm = desc->tfm; in crypto_shash_update() local 107 struct crypto_shash *tfm = desc->tfm; in shash_final_unaligned() local 122 struct crypto_shash *tfm = desc->tfm; in crypto_shash_final() local 143 struct crypto_shash *tfm = desc->tfm; in crypto_shash_finup() local 166 struct crypto_shash *tfm = desc->tfm; in crypto_shash_digest() local 180 struct crypto_shash *tfm = desc->tfm; in crypto_shash_import() local [all …]
|
D | blkcipher.c | 71 static inline unsigned int blkcipher_done_slow(struct crypto_blkcipher *tfm, in blkcipher_done_slow() 106 struct crypto_blkcipher *tfm = desc->tfm; in blkcipher_walk_done() local 227 struct crypto_blkcipher *tfm = desc->tfm; in blkcipher_walk_next() local 279 struct crypto_blkcipher *tfm, in blkcipher_copy_iv() 324 struct crypto_blkcipher *tfm = desc->tfm; in blkcipher_walk_first() local 359 static int setkey_unaligned(struct crypto_tfm *tfm, const u8 *key, in setkey_unaligned() 381 static int setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) in setkey() 397 static int async_setkey(struct crypto_ablkcipher *tfm, const u8 *key, in async_setkey() 405 struct crypto_tfm *tfm = req->base.tfm; in async_encrypt() local 419 struct crypto_tfm *tfm = req->base.tfm; in async_decrypt() local [all …]
|
D | pcbc.c | 47 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()
|
D | cbc.c | 44 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()
|
D | lzo.c | 29 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()
|
D | ctr.c | 50 struct crypto_cipher *tfm) in crypto_ctr_crypt_final() 69 struct crypto_cipher *tfm) in crypto_ctr_crypt_segment() 95 struct crypto_cipher *tfm) in crypto_ctr_crypt_inplace() 126 struct crypto_blkcipher *tfm = desc->tfm; in crypto_ctr_crypt() local 152 static int crypto_ctr_init_tfm(struct crypto_tfm *tfm) in crypto_ctr_init_tfm() 168 static void crypto_ctr_exit_tfm(struct crypto_tfm *tfm) in crypto_ctr_exit_tfm() 274 struct crypto_blkcipher *tfm = desc->tfm; in crypto_rfc3686_crypt() local 300 static int crypto_rfc3686_init_tfm(struct crypto_tfm *tfm) in crypto_rfc3686_init_tfm() 316 static void crypto_rfc3686_exit_tfm(struct crypto_tfm *tfm) in crypto_rfc3686_exit_tfm()
|
D | tea.c | 47 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()
|
D | ecb.c | 43 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()
|
D | ahash.c | 131 static int ahash_setkey_unaligned(struct crypto_ahash *tfm, const u8 *key, in ahash_setkey_unaligned() 153 static int ahash_setkey(struct crypto_ahash *tfm, const u8 *key, in ahash_setkey() 165 static int ahash_nosetkey(struct crypto_ahash *tfm, const u8 *key, in ahash_nosetkey() 173 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in crypto_ahash_import() local 191 static int crypto_init_ahash_ops(struct crypto_tfm *tfm, u32 type, u32 mask) in crypto_init_ahash_ops()
|
D | aead.c | 26 static int setkey_unaligned(struct crypto_aead *tfm, const u8 *key, in setkey_unaligned() 48 static int setkey(struct crypto_aead *tfm, const u8 *key, unsigned int keylen) in setkey() 59 int crypto_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in crypto_aead_setauthsize() 90 static int crypto_init_aead_ops(struct crypto_tfm *tfm, u32 type, u32 mask) in crypto_init_aead_ops() 145 static int crypto_init_nivaead_ops(struct crypto_tfm *tfm, u32 type, u32 mask) in crypto_init_nivaead_ops() 314 int aead_geniv_init(struct crypto_tfm *tfm) in aead_geniv_init() 330 void aead_geniv_exit(struct crypto_tfm *tfm) in aead_geniv_exit() 451 struct crypto_tfm *tfm; in crypto_alloc_aead() local
|
D | deflate.c | 105 static int deflate_init(struct crypto_tfm *tfm) in deflate_init() 120 static void deflate_exit(struct crypto_tfm *tfm) in deflate_exit() 128 static int deflate_compress(struct crypto_tfm *tfm, const u8 *src, in deflate_compress() 157 static int deflate_decompress(struct crypto_tfm *tfm, const u8 *src, in deflate_decompress()
|
D | api.c | 280 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() 378 struct crypto_tfm *tfm = NULL; in __crypto_alloc_tfm() local 435 struct crypto_tfm *tfm; in crypto_alloc_base() local 471 struct crypto_tfm *tfm = NULL; in crypto_create_tfm() local 533 struct crypto_tfm *tfm; in crypto_alloc_tfm() local 580 void crypto_destroy_tfm(void *mem, struct crypto_tfm *tfm) in crypto_destroy_tfm()
|
D | crypto_null.c | 32 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()
|
D | krng.c | 19 static int krng_get_random(struct crypto_rng *tfm, u8 *rdata, unsigned int dlen) in krng_get_random() 25 static int krng_reset(struct crypto_rng *tfm, u8 *seed, unsigned int slen) in krng_reset()
|
D | testmgr.c | 116 static int test_hash(struct crypto_ahash *tfm, struct hash_testvec *template, in test_hash() 263 static int test_aead(struct crypto_aead *tfm, int enc, in test_aead() 544 static int test_cipher(struct crypto_cipher *tfm, int enc, in test_cipher() 609 static int test_skcipher(struct crypto_ablkcipher *tfm, int enc, in test_skcipher() 823 static int test_comp(struct crypto_comp *tfm, struct comp_testvec *ctemplate, in test_comp() 904 struct crypto_aead *tfm; in alg_test_aead() local 933 struct crypto_cipher *tfm; in alg_test_cipher() local 962 struct crypto_ablkcipher *tfm; in alg_test_skcipher() local 991 struct crypto_comp *tfm; in alg_test_comp() local 1013 struct crypto_ahash *tfm; in alg_test_hash() local [all …]
|
D | ansi_cprng.c | 54 struct crypto_cipher *tfm; member 335 static int cprng_init(struct crypto_tfm *tfm) in cprng_init() 344 static void cprng_exit(struct crypto_tfm *tfm) in cprng_exit() 349 static int cprng_get_random(struct crypto_rng *tfm, u8 *rdata, in cprng_get_random() 363 static int cprng_reset(struct crypto_rng *tfm, u8 *seed, unsigned int slen) in cprng_reset()
|
D | ablkcipher.c | 28 static int setkey_unaligned(struct crypto_ablkcipher *tfm, const u8 *key, in setkey_unaligned() 50 static int setkey(struct crypto_ablkcipher *tfm, const u8 *key, in setkey() 83 static int crypto_init_ablkcipher_ops(struct crypto_tfm *tfm, u32 type, in crypto_init_ablkcipher_ops() 135 static int crypto_init_givcipher_ops(struct crypto_tfm *tfm, u32 type, in crypto_init_givcipher_ops() 310 struct crypto_tfm *tfm; in crypto_alloc_ablkcipher() local
|
D | khazad.c | 756 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()
|
D | des_generic.c | 781 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() 862 static int des3_ede_setkey(struct crypto_tfm *tfm, const u8 *key, in des3_ede_setkey() 885 static void des3_ede_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in des3_ede_encrypt() 916 static void des3_ede_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in des3_ede_decrypt()
|
D | chainiv.c | 106 static int chainiv_init_common(struct crypto_tfm *tfm) in chainiv_init_common() 113 static int chainiv_init(struct crypto_tfm *tfm) in chainiv_init() 263 static int async_chainiv_init(struct crypto_tfm *tfm) in async_chainiv_init() 275 static void async_chainiv_exit(struct crypto_tfm *tfm) in async_chainiv_exit()
|
D | rng.c | 29 static int rngapi_reset(struct crypto_rng *tfm, u8 *seed, unsigned int slen) in rngapi_reset() 49 static int crypto_init_rng_ops(struct crypto_tfm *tfm, u32 type, u32 mask) in crypto_init_rng_ops()
|