/crypto/ |
D | algboss.c | 60 struct crypto_template *tmpl; in cryptomgr_probe() local 64 tmpl = crypto_lookup_template(param->template); in cryptomgr_probe() 65 if (!tmpl) in cryptomgr_probe() 69 if (tmpl->create) { in cryptomgr_probe() 70 err = tmpl->create(tmpl, param->tb); in cryptomgr_probe() 74 inst = tmpl->alloc(param->tb); in cryptomgr_probe() 77 else if ((err = crypto_register_instance(tmpl, inst))) in cryptomgr_probe() 78 tmpl->free(inst); in cryptomgr_probe() 81 crypto_tmpl_put(tmpl); in cryptomgr_probe()
|
D | xor.c | 60 do_xor_speed(struct xor_block_template *tmpl, void *b1, void *b2) in do_xor_speed() argument 66 tmpl->next = template_list; in do_xor_speed() 67 template_list = tmpl; in do_xor_speed() 84 tmpl->do_2(BENCH_SIZE, b1, b2); in do_xor_speed() 96 tmpl->speed = speed; in do_xor_speed() 98 printk(KERN_INFO " %-10s: %5d.%03d MB/sec\n", tmpl->name, in do_xor_speed()
|
D | algapi.c | 69 inst->tmpl->free(inst); in crypto_free_instance() 79 struct crypto_template *tmpl = inst->tmpl; in crypto_destroy_instance() local 82 crypto_tmpl_put(tmpl); in crypto_destroy_instance() 110 struct crypto_template *tmpl = inst->tmpl; in crypto_remove_instance() local 119 if (!tmpl || !crypto_tmpl_get(tmpl)) in crypto_remove_instance() 456 int crypto_register_template(struct crypto_template *tmpl) in crypto_register_template() argument 463 crypto_check_module_sig(tmpl->module); in crypto_register_template() 466 if (q == tmpl) in crypto_register_template() 470 list_add(&tmpl->list, &crypto_template_list); in crypto_register_template() 496 void crypto_unregister_template(struct crypto_template *tmpl) in crypto_unregister_template() argument [all …]
|
D | internal.h | 101 static inline int crypto_tmpl_get(struct crypto_template *tmpl) in crypto_tmpl_get() argument 103 return try_module_get(tmpl->module); in crypto_tmpl_get() 106 static inline void crypto_tmpl_put(struct crypto_template *tmpl) in crypto_tmpl_put() argument 108 module_put(tmpl->module); in crypto_tmpl_put()
|
D | seqiv.c | 138 static int seqiv_aead_create(struct crypto_template *tmpl, struct rtattr **tb) in seqiv_aead_create() argument 143 inst = aead_geniv_alloc(tmpl, tb, 0, 0); in seqiv_aead_create() 161 err = aead_register_instance(tmpl, inst); in seqiv_aead_create() 173 static int seqiv_create(struct crypto_template *tmpl, struct rtattr **tb) in seqiv_create() argument 184 return seqiv_aead_create(tmpl, tb); in seqiv_create()
|
D | cbc.c | 51 static int crypto_cbc_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_cbc_create() argument 57 inst = skcipher_alloc_instance_simple(tmpl, tb, &alg); in crypto_cbc_create() 68 err = skcipher_register_instance(tmpl, inst); in crypto_cbc_create()
|
D | ecb.c | 61 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, &alg); in crypto_ecb_create() 76 err = skcipher_register_instance(tmpl, inst); in crypto_ecb_create()
|
D | ofb.c | 52 static int crypto_ofb_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_ofb_create() argument 58 inst = skcipher_alloc_instance_simple(tmpl, tb, &alg); in crypto_ofb_create() 74 err = skcipher_register_instance(tmpl, inst); in crypto_ofb_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, 0, 0); in echainiv_aead_create() 138 err = aead_register_instance(tmpl, inst); in echainiv_aead_create()
|
D | keywrap.c | 263 static int crypto_kw_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_kw_create() argument 269 inst = skcipher_alloc_instance_simple(tmpl, tb, &alg); in crypto_kw_create() 285 err = skcipher_register_instance(tmpl, inst); in crypto_kw_create()
|
D | aead.c | 194 inst->tmpl->free(inst); in crypto_aead_free_instance() 231 struct aead_instance *aead_geniv_alloc(struct crypto_template *tmpl, in aead_geniv_alloc() argument 279 "%s(%s)", tmpl->name, alg->base.cra_name) >= in aead_geniv_alloc() 283 "%s(%s)", tmpl->name, alg->base.cra_driver_name) >= in aead_geniv_alloc() 451 int aead_register_instance(struct crypto_template *tmpl, in aead_register_instance() argument 460 return crypto_register_instance(tmpl, aead_crypto_instance(inst)); in aead_register_instance()
|
D | ctr.c | 126 static int crypto_ctr_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_ctr_create() argument 132 inst = skcipher_alloc_instance_simple(tmpl, tb, &alg); in crypto_ctr_create() 157 err = skcipher_register_instance(tmpl, inst); in crypto_ctr_create() 262 static int crypto_rfc3686_create(struct crypto_template *tmpl, in crypto_rfc3686_create() argument 344 err = skcipher_register_instance(tmpl, inst); in crypto_rfc3686_create()
|
D | pcbc.c | 153 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, &alg); in crypto_pcbc_create() 166 err = skcipher_register_instance(tmpl, inst); in crypto_pcbc_create()
|
D | ccm.c | 454 static int crypto_ccm_create_common(struct crypto_template *tmpl, in crypto_ccm_create_common() argument 547 err = aead_register_instance(tmpl, inst); in crypto_ccm_create_common() 564 static int crypto_ccm_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_ccm_create() argument 582 return crypto_ccm_create_common(tmpl, tb, ctr_name, mac_name); in crypto_ccm_create() 585 static int crypto_ccm_base_create(struct crypto_template *tmpl, in crypto_ccm_base_create() argument 599 return crypto_ccm_create_common(tmpl, tb, ctr_name, mac_name); in crypto_ccm_base_create() 744 static int crypto_rfc4309_create(struct crypto_template *tmpl, in crypto_rfc4309_create() argument 818 err = aead_register_instance(tmpl, inst); in crypto_rfc4309_create() 917 static int cbcmac_create(struct crypto_template *tmpl, struct rtattr **tb) in cbcmac_create() argument 960 err = shash_register_instance(tmpl, inst); in cbcmac_create()
|
D | pcrypt.c | 214 static int pcrypt_create_aead(struct crypto_template *tmpl, struct rtattr **tb, in pcrypt_create_aead() argument 265 err = aead_register_instance(tmpl, inst); in pcrypt_create_aead() 279 static int pcrypt_create(struct crypto_template *tmpl, struct rtattr **tb) in pcrypt_create() argument 289 return pcrypt_create_aead(tmpl, tb, algt->type, algt->mask); in pcrypt_create()
|
D | cfb.c | 200 static int crypto_cfb_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_cfb_create() argument 206 inst = skcipher_alloc_instance_simple(tmpl, tb, &alg); in crypto_cfb_create() 222 err = skcipher_register_instance(tmpl, inst); in crypto_cfb_create()
|
D | cryptd.c | 396 static int cryptd_create_skcipher(struct crypto_template *tmpl, in cryptd_create_skcipher() argument 453 err = skcipher_register_instance(tmpl, inst); in cryptd_create_skcipher() 669 static int cryptd_create_hash(struct crypto_template *tmpl, struct rtattr **tb, in cryptd_create_hash() argument 722 err = ahash_register_instance(tmpl, inst); in cryptd_create_hash() 852 static int cryptd_create_aead(struct crypto_template *tmpl, in cryptd_create_aead() argument 901 err = aead_register_instance(tmpl, inst); in cryptd_create_aead() 913 static int cryptd_create(struct crypto_template *tmpl, struct rtattr **tb) in cryptd_create() argument 923 return cryptd_create_skcipher(tmpl, tb, &queue); in cryptd_create() 925 return cryptd_create_hash(tmpl, tb, &queue); in cryptd_create() 927 return cryptd_create_aead(tmpl, tb, &queue); in cryptd_create()
|
D | akcipher.c | 146 int akcipher_register_instance(struct crypto_template *tmpl, in akcipher_register_instance() argument 150 return crypto_register_instance(tmpl, akcipher_crypto_instance(inst)); in akcipher_register_instance()
|
D | chacha20poly1305.c | 562 static int chachapoly_create(struct crypto_template *tmpl, struct rtattr **tb, in chachapoly_create() argument 664 err = aead_register_instance(tmpl, inst); in chachapoly_create() 681 static int rfc7539_create(struct crypto_template *tmpl, struct rtattr **tb) in rfc7539_create() argument 683 return chachapoly_create(tmpl, tb, "rfc7539", 12); in rfc7539_create() 686 static int rfc7539esp_create(struct crypto_template *tmpl, struct rtattr **tb) in rfc7539esp_create() argument 688 return chachapoly_create(tmpl, tb, "rfc7539esp", 8); in rfc7539esp_create()
|
D | gcm.c | 582 static int crypto_gcm_create_common(struct crypto_template *tmpl, in crypto_gcm_create_common() argument 675 err = aead_register_instance(tmpl, inst); in crypto_gcm_create_common() 692 static int crypto_gcm_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_gcm_create() argument 705 return crypto_gcm_create_common(tmpl, tb, ctr_name, "ghash"); in crypto_gcm_create() 708 static int crypto_gcm_base_create(struct crypto_template *tmpl, in crypto_gcm_base_create() argument 722 return crypto_gcm_create_common(tmpl, tb, ctr_name, ghash_name); in crypto_gcm_base_create() 866 static int crypto_rfc4106_create(struct crypto_template *tmpl, in crypto_rfc4106_create() argument 940 err = aead_register_instance(tmpl, inst); in crypto_rfc4106_create() 1102 static int crypto_rfc4543_create(struct crypto_template *tmpl, in crypto_rfc4543_create() argument 1178 err = aead_register_instance(tmpl, inst); in crypto_rfc4543_create()
|
D | hmac.c | 170 static int hmac_create(struct crypto_template *tmpl, struct rtattr **tb) in hmac_create() argument 231 err = shash_register_instance(tmpl, inst); in hmac_create()
|
D | xcbc.c | 188 static int xcbc_create(struct crypto_template *tmpl, struct rtattr **tb) in xcbc_create() argument 245 err = shash_register_instance(tmpl, inst); in xcbc_create()
|
D | cmac.c | 222 static int cmac_create(struct crypto_template *tmpl, struct rtattr **tb) in cmac_create() argument 283 err = shash_register_instance(tmpl, inst); in cmac_create()
|
D | lrw.c | 298 static int create(struct crypto_template *tmpl, struct rtattr **tb) in create() argument 406 err = skcipher_register_instance(tmpl, inst); in create()
|
D | essiv.c | 456 static int essiv_create(struct crypto_template *tmpl, struct rtattr **tb) in essiv_create() argument 604 err = skcipher_register_instance(tmpl, skcipher_inst); in essiv_create() 619 err = aead_register_instance(tmpl, aead_inst); in essiv_create()
|