Home
last modified time | relevance | path

Searched refs:tmpl (Results 1 – 25 of 39) sorted by relevance

12

/crypto/
Dxor.c58 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()
Dfips140-alg-registration.c276 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()
Dalgboss.c53 struct crypto_template *tmpl; in cryptomgr_probe() local
56 tmpl = crypto_lookup_template(param->template); in cryptomgr_probe()
57 if (!tmpl) in cryptomgr_probe()
61 err = tmpl->create(tmpl, param->tb); in cryptomgr_probe()
64 crypto_tmpl_put(tmpl); in cryptomgr_probe()
Dalgapi.c74 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()
522 int crypto_register_template(struct crypto_template *tmpl) in crypto_register_template() argument
529 crypto_check_module_sig(tmpl->module); in crypto_register_template()
532 if (q == tmpl) in crypto_register_template()
536 list_add(&tmpl->list, &crypto_template_list); in crypto_register_template()
562 void crypto_unregister_template(struct crypto_template *tmpl) in crypto_unregister_template() argument
571 BUG_ON(list_empty(&tmpl->list)); in crypto_unregister_template()
[all …]
Dinternal.h146 static inline int crypto_tmpl_get(struct crypto_template *tmpl) in crypto_tmpl_get() argument
148 return try_module_get(tmpl->module); in crypto_tmpl_get()
151 static inline void crypto_tmpl_put(struct crypto_template *tmpl) in crypto_tmpl_put() argument
153 module_put(tmpl->module); in crypto_tmpl_put()
Decb.c62 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()
Dofb.c53 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()
Dgeniv.c41 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()
Dctr.c127 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()
Dechainiv.c112 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()
Dkeywrap.c264 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()
Dccm.c446 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 …]
Dseqiv.c136 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()
Dxctr.c131 static int crypto_xctr_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_xctr_create() argument
137 inst = skcipher_alloc_instance_simple(tmpl, tb); in crypto_xctr_create()
160 err = skcipher_register_instance(tmpl, inst); in crypto_xctr_create()
Dpcbc.c154 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()
Dhctr2.c405 static int hctr2_create_common(struct crypto_template *tmpl, in hctr2_create_common() argument
510 err = skcipher_register_instance(tmpl, inst); in hctr2_create_common()
518 static int hctr2_create_base(struct crypto_template *tmpl, struct rtattr **tb) in hctr2_create_base() argument
531 return hctr2_create_common(tmpl, tb, xctr_name, polyval_name); in hctr2_create_base()
534 static int hctr2_create(struct crypto_template *tmpl, struct rtattr **tb) in hctr2_create() argument
547 return hctr2_create_common(tmpl, tb, xctr_name, "polyval"); in hctr2_create()
Dcbc.c174 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()
Dpcrypt.c236 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()
Dcfb.c201 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()
Dcryptd.c369 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()
Dhmac.c165 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()
Dakcipher.c155 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()
Dgcm.c576 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()
Dxcbc.c189 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()
Dcmac.c223 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()

12