/crypto/ |
D | xor.c | 58 static void __init do_xor_register(struct xor_block_template *tmpl) in do_xor_register() argument 60 tmpl->next = template_list; in do_xor_register() 61 template_list = tmpl; in do_xor_register() 83 do_xor_speed(struct xor_block_template *tmpl, void *b1, void *b2) in do_xor_speed() argument 89 tmpl->next = template_list; in do_xor_speed() 90 template_list = tmpl; in do_xor_speed() 99 tmpl->do_2(BENCH_SIZE, b1, b2); in do_xor_speed() 113 tmpl->speed = speed; in do_xor_speed() 115 pr_info(" %-16s: %5d MB/sec\n", tmpl->name, speed); in do_xor_speed()
|
D | fips140-alg-registration.c | 276 int fips140_aead_register_instance(struct crypto_template *tmpl, in fips140_aead_register_instance() argument 280 aead_register_instance(tmpl, inst); in fips140_aead_register_instance() 283 int fips140_ahash_register_instance(struct crypto_template *tmpl, in fips140_ahash_register_instance() argument 287 ahash_register_instance(tmpl, inst); in fips140_ahash_register_instance() 290 int fips140_shash_register_instance(struct crypto_template *tmpl, in fips140_shash_register_instance() argument 294 shash_register_instance(tmpl, inst); in fips140_shash_register_instance() 297 int fips140_skcipher_register_instance(struct crypto_template *tmpl, in fips140_skcipher_register_instance() argument 301 skcipher_register_instance(tmpl, inst); in fips140_skcipher_register_instance()
|
D | algapi.c | 74 struct crypto_template *tmpl = inst->tmpl; in crypto_destroy_instance() local 77 crypto_tmpl_put(tmpl); in crypto_destroy_instance() 116 struct crypto_template *tmpl = inst->tmpl; in crypto_remove_instance() local 123 if (!tmpl || !crypto_tmpl_get(tmpl)) in crypto_remove_instance() 499 int crypto_register_template(struct crypto_template *tmpl) in crypto_register_template() argument 506 crypto_check_module_sig(tmpl->module); in crypto_register_template() 509 if (q == tmpl) in crypto_register_template() 513 list_add(&tmpl->list, &crypto_template_list); in crypto_register_template() 539 void crypto_unregister_template(struct crypto_template *tmpl) in crypto_unregister_template() argument 548 BUG_ON(list_empty(&tmpl->list)); in crypto_unregister_template() [all …]
|
D | algboss.c | 60 struct crypto_template *tmpl; in cryptomgr_probe() local 63 tmpl = crypto_lookup_template(param->template); in cryptomgr_probe() 64 if (!tmpl) in cryptomgr_probe() 68 err = tmpl->create(tmpl, param->tb); in cryptomgr_probe() 71 crypto_tmpl_put(tmpl); in cryptomgr_probe()
|
D | internal.h | 111 static inline int crypto_tmpl_get(struct crypto_template *tmpl) in crypto_tmpl_get() argument 113 return try_module_get(tmpl->module); in crypto_tmpl_get() 116 static inline void crypto_tmpl_put(struct crypto_template *tmpl) in crypto_tmpl_put() argument 118 module_put(tmpl->module); in crypto_tmpl_put()
|
D | ecb.c | 62 static int crypto_ecb_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_ecb_create() argument 67 inst = skcipher_alloc_instance_simple(tmpl, tb); in crypto_ecb_create() 76 err = skcipher_register_instance(tmpl, inst); in crypto_ecb_create()
|
D | ofb.c | 53 static int crypto_ofb_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_ofb_create() argument 59 inst = skcipher_alloc_instance_simple(tmpl, tb); in crypto_ofb_create() 77 err = skcipher_register_instance(tmpl, inst); in crypto_ofb_create()
|
D | geniv.c | 41 struct aead_instance *aead_geniv_alloc(struct crypto_template *tmpl, in aead_geniv_alloc() argument 78 "%s(%s)", tmpl->name, alg->base.cra_name) >= in aead_geniv_alloc() 82 "%s(%s)", tmpl->name, alg->base.cra_driver_name) >= in aead_geniv_alloc()
|
D | ctr.c | 127 static int crypto_ctr_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_ctr_create() argument 133 inst = skcipher_alloc_instance_simple(tmpl, tb); in crypto_ctr_create() 160 err = skcipher_register_instance(tmpl, inst); in crypto_ctr_create() 257 static int crypto_rfc3686_create(struct crypto_template *tmpl, in crypto_rfc3686_create() argument 323 err = skcipher_register_instance(tmpl, inst); in crypto_rfc3686_create()
|
D | keywrap.c | 264 static int crypto_kw_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_kw_create() argument 270 inst = skcipher_alloc_instance_simple(tmpl, tb); in crypto_kw_create() 288 err = skcipher_register_instance(tmpl, inst); in crypto_kw_create()
|
D | echainiv.c | 112 static int echainiv_aead_create(struct crypto_template *tmpl, in echainiv_aead_create() argument 118 inst = aead_geniv_alloc(tmpl, tb); in echainiv_aead_create() 136 err = aead_register_instance(tmpl, inst); in echainiv_aead_create()
|
D | ccm.c | 446 static int crypto_ccm_create_common(struct crypto_template *tmpl, in crypto_ccm_create_common() argument 523 err = aead_register_instance(tmpl, inst); in crypto_ccm_create_common() 531 static int crypto_ccm_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_ccm_create() argument 549 return crypto_ccm_create_common(tmpl, tb, ctr_name, mac_name); in crypto_ccm_create() 552 static int crypto_ccm_base_create(struct crypto_template *tmpl, in crypto_ccm_base_create() argument 566 return crypto_ccm_create_common(tmpl, tb, ctr_name, mac_name); in crypto_ccm_base_create() 706 static int crypto_rfc4309_create(struct crypto_template *tmpl, in crypto_rfc4309_create() argument 770 err = aead_register_instance(tmpl, inst); in crypto_rfc4309_create() 863 static int cbcmac_create(struct crypto_template *tmpl, struct rtattr **tb) in cbcmac_create() argument 886 err = crypto_inst_setname(shash_crypto_instance(inst), tmpl->name, alg); in cbcmac_create() [all …]
|
D | seqiv.c | 136 static int seqiv_aead_create(struct crypto_template *tmpl, struct rtattr **tb) in seqiv_aead_create() argument 141 inst = aead_geniv_alloc(tmpl, tb); in seqiv_aead_create() 159 err = aead_register_instance(tmpl, inst); in seqiv_aead_create()
|
D | pcbc.c | 154 static int crypto_pcbc_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_pcbc_create() argument 159 inst = skcipher_alloc_instance_simple(tmpl, tb); in crypto_pcbc_create() 166 err = skcipher_register_instance(tmpl, inst); in crypto_pcbc_create()
|
D | cbc.c | 174 static int crypto_cbc_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_cbc_create() argument 180 inst = skcipher_alloc_instance_simple(tmpl, tb); in crypto_cbc_create() 193 err = skcipher_register_instance(tmpl, inst); in crypto_cbc_create()
|
D | pcrypt.c | 236 static int pcrypt_create_aead(struct crypto_template *tmpl, struct rtattr **tb, in pcrypt_create_aead() argument 287 err = aead_register_instance(tmpl, inst); in pcrypt_create_aead() 295 static int pcrypt_create(struct crypto_template *tmpl, struct rtattr **tb) in pcrypt_create() argument 305 return pcrypt_create_aead(tmpl, tb, algt); in pcrypt_create()
|
D | cfb.c | 201 static int crypto_cfb_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_cfb_create() argument 207 inst = skcipher_alloc_instance_simple(tmpl, tb); in crypto_cfb_create() 225 err = skcipher_register_instance(tmpl, inst); in crypto_cfb_create()
|
D | cryptd.c | 369 static int cryptd_create_skcipher(struct crypto_template *tmpl, in cryptd_create_skcipher() argument 418 err = skcipher_register_instance(tmpl, inst); in cryptd_create_skcipher() 636 static int cryptd_create_hash(struct crypto_template *tmpl, struct rtattr **tb, in cryptd_create_hash() argument 688 err = ahash_register_instance(tmpl, inst); in cryptd_create_hash() 822 static int cryptd_create_aead(struct crypto_template *tmpl, in cryptd_create_aead() argument 869 err = aead_register_instance(tmpl, inst); in cryptd_create_aead() 879 static int cryptd_create(struct crypto_template *tmpl, struct rtattr **tb) in cryptd_create() argument 889 return cryptd_create_skcipher(tmpl, tb, algt, &queue); in cryptd_create() 891 return cryptd_create_hash(tmpl, tb, algt, &queue); in cryptd_create() 893 return cryptd_create_aead(tmpl, tb, algt, &queue); in cryptd_create()
|
D | hmac.c | 165 static int hmac_create(struct crypto_template *tmpl, struct rtattr **tb) in hmac_create() argument 203 err = crypto_inst_setname(shash_crypto_instance(inst), tmpl->name, alg); in hmac_create() 230 err = shash_register_instance(tmpl, inst); in hmac_create()
|
D | akcipher.c | 155 int akcipher_register_instance(struct crypto_template *tmpl, in akcipher_register_instance() argument 161 return crypto_register_instance(tmpl, akcipher_crypto_instance(inst)); in akcipher_register_instance()
|
D | gcm.c | 576 static int crypto_gcm_create_common(struct crypto_template *tmpl, in crypto_gcm_create_common() argument 650 err = aead_register_instance(tmpl, inst); in crypto_gcm_create_common() 658 static int crypto_gcm_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_gcm_create() argument 671 return crypto_gcm_create_common(tmpl, tb, ctr_name, "ghash"); in crypto_gcm_create() 674 static int crypto_gcm_base_create(struct crypto_template *tmpl, in crypto_gcm_base_create() argument 688 return crypto_gcm_create_common(tmpl, tb, ctr_name, ghash_name); in crypto_gcm_base_create() 827 static int crypto_rfc4106_create(struct crypto_template *tmpl, in crypto_rfc4106_create() argument 891 err = aead_register_instance(tmpl, inst); in crypto_rfc4106_create() 1042 static int crypto_rfc4543_create(struct crypto_template *tmpl, in crypto_rfc4543_create() argument 1106 err = aead_register_instance(tmpl, inst); in crypto_rfc4543_create()
|
D | xcbc.c | 189 static int xcbc_create(struct crypto_template *tmpl, struct rtattr **tb) in xcbc_create() argument 217 err = crypto_inst_setname(shash_crypto_instance(inst), tmpl->name, alg); in xcbc_create() 246 err = shash_register_instance(tmpl, inst); in xcbc_create()
|
D | cmac.c | 223 static int cmac_create(struct crypto_template *tmpl, struct rtattr **tb) in cmac_create() argument 256 err = crypto_inst_setname(shash_crypto_instance(inst), tmpl->name, alg); in cmac_create() 287 err = shash_register_instance(tmpl, inst); in cmac_create()
|
D | chacha20poly1305.c | 555 static int chachapoly_create(struct crypto_template *tmpl, struct rtattr **tb, in chachapoly_create() argument 629 err = aead_register_instance(tmpl, inst); in chachapoly_create() 637 static int rfc7539_create(struct crypto_template *tmpl, struct rtattr **tb) in rfc7539_create() argument 639 return chachapoly_create(tmpl, tb, "rfc7539", 12); in rfc7539_create() 642 static int rfc7539esp_create(struct crypto_template *tmpl, struct rtattr **tb) in rfc7539esp_create() argument 644 return chachapoly_create(tmpl, tb, "rfc7539esp", 8); in rfc7539esp_create()
|
D | aead.c | 286 int aead_register_instance(struct crypto_template *tmpl, in aead_register_instance() argument 298 return crypto_register_instance(tmpl, aead_crypto_instance(inst)); in aead_register_instance()
|