Home
last modified time | relevance | path

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

12

/crypto/
A 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()
101 tmpl->do_2(BENCH_SIZE, b1, b2); in do_xor_speed()
110 tmpl->speed = speed; in do_xor_speed()
112 pr_info(" %-16s: %5d MB/sec\n", tmpl->name, speed); in do_xor_speed()
A Dalgapi.c98 struct crypto_template *tmpl = inst->tmpl; in crypto_destroy_instance() local
101 schedule_work(&tmpl->free_work); in crypto_destroy_instance()
140 struct crypto_template *tmpl = inst->tmpl; in crypto_remove_instance() local
147 if (!tmpl) in crypto_remove_instance()
549 if (q == tmpl) in crypto_register_template()
589 list_del_init(&tmpl->list); in crypto_unregister_template()
591 list = &tmpl->instances; in crypto_unregister_template()
606 flush_work(&tmpl->free_work); in crypto_unregister_template()
630 tmpl = q; in __crypto_lookup_template()
635 return tmpl; in __crypto_lookup_template()
[all …]
A Decb.c98 struct crypto_template *tmpl, struct rtattr **tb) in lskcipher_alloc_instance_simple2() argument
121 err = crypto_inst_setname(lskcipher_crypto_instance(inst), tmpl->name, in lskcipher_alloc_instance_simple2()
149 static int crypto_ecb_create2(struct crypto_template *tmpl, struct rtattr **tb) in crypto_ecb_create2() argument
154 inst = lskcipher_alloc_instance_simple2(tmpl, tb); in crypto_ecb_create2()
164 err = lskcipher_register_instance(tmpl, inst); in crypto_ecb_create2()
171 static int crypto_ecb_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_ecb_create() argument
178 inst = lskcipher_alloc_instance_simple(tmpl, tb); in crypto_ecb_create()
180 err = crypto_ecb_create2(tmpl, tb); in crypto_ecb_create()
199 err = lskcipher_register_instance(tmpl, inst); in crypto_ecb_create()
A Ddh.c552 struct crypto_template *tmpl, struct rtattr **tb, in __dh_safe_prime_create() argument
589 tmpl->name, &dh_alg->base); in __dh_safe_prime_create()
605 err = kpp_register_instance(tmpl, inst); in __dh_safe_prime_create()
833 static int dh_ffdhe2048_create(struct crypto_template *tmpl, in dh_ffdhe2048_create() argument
836 return __dh_safe_prime_create(tmpl, tb, &ffdhe2048_prime); in dh_ffdhe2048_create()
839 static int dh_ffdhe3072_create(struct crypto_template *tmpl, in dh_ffdhe3072_create() argument
842 return __dh_safe_prime_create(tmpl, tb, &ffdhe3072_prime); in dh_ffdhe3072_create()
845 static int dh_ffdhe4096_create(struct crypto_template *tmpl, in dh_ffdhe4096_create() argument
848 return __dh_safe_prime_create(tmpl, tb, &ffdhe4096_prime); in dh_ffdhe4096_create()
851 static int dh_ffdhe6144_create(struct crypto_template *tmpl, in dh_ffdhe6144_create() argument
[all …]
A 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()
A Dinternal.h173 static inline int crypto_tmpl_get(struct crypto_template *tmpl) in crypto_tmpl_get() argument
175 return try_module_get(tmpl->module); in crypto_tmpl_get()
178 static inline void crypto_tmpl_put(struct crypto_template *tmpl) in crypto_tmpl_put() argument
180 module_put(tmpl->module); in crypto_tmpl_put()
A Dhmac.c182 static int __hmac_create_shash(struct crypto_template *tmpl, in __hmac_create_shash() argument
243 err = shash_register_instance(tmpl, inst); in __hmac_create_shash()
448 static int hmac_create_ahash(struct crypto_template *tmpl, struct rtattr **tb, in hmac_create_ahash() argument
480 err = crypto_inst_setname(ahash_crypto_instance(inst), tmpl->name, alg); in hmac_create_ahash()
511 err = ahash_register_instance(tmpl, inst); in hmac_create_ahash()
519 static int hmac_create(struct crypto_template *tmpl, struct rtattr **tb) in hmac_create() argument
532 return hmac_create_ahash(tmpl, tb, mask); in hmac_create()
538 return __hmac_create_shash(tmpl, tb, mask); in hmac_create()
541 static int hmac_create_shash(struct crypto_template *tmpl, struct rtattr **tb) in hmac_create_shash() argument
550 return __hmac_create_shash(tmpl, tb, mask); in hmac_create_shash()
A Dgeniv.c40 struct aead_instance *aead_geniv_alloc(struct crypto_template *tmpl, in aead_geniv_alloc() argument
77 "%s(%s)", tmpl->name, alg->base.cra_name) >= in aead_geniv_alloc()
81 "%s(%s)", tmpl->name, alg->base.cra_driver_name) >= in aead_geniv_alloc()
A Dechainiv.c100 static int echainiv_aead_create(struct crypto_template *tmpl, in echainiv_aead_create() argument
106 inst = aead_geniv_alloc(tmpl, tb); in echainiv_aead_create()
124 err = aead_register_instance(tmpl, inst); in echainiv_aead_create()
A Decdsa-p1363.c99 static int ecdsa_p1363_create(struct crypto_template *tmpl, struct rtattr **tb) in ecdsa_p1363_create() argument
128 err = crypto_inst_setname(sig_crypto_instance(inst), tmpl->name, in ecdsa_p1363_create()
147 err = sig_register_instance(tmpl, inst); in ecdsa_p1363_create()
A 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
321 err = skcipher_register_instance(tmpl, inst); in crypto_rfc3686_create()
A Dccm.c442 static int crypto_ccm_create_common(struct crypto_template *tmpl, in crypto_ccm_create_common() argument
517 err = aead_register_instance(tmpl, inst); in crypto_ccm_create_common()
525 static int crypto_ccm_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_ccm_create() argument
543 return crypto_ccm_create_common(tmpl, tb, ctr_name, mac_name); in crypto_ccm_create()
546 static int crypto_ccm_base_create(struct crypto_template *tmpl, in crypto_ccm_base_create() argument
560 return crypto_ccm_create_common(tmpl, tb, ctr_name, mac_name); in crypto_ccm_base_create()
700 static int crypto_rfc4309_create(struct crypto_template *tmpl, in crypto_rfc4309_create() argument
764 err = aead_register_instance(tmpl, inst); in crypto_rfc4309_create()
847 static int cbcmac_create(struct crypto_template *tmpl, struct rtattr **tb) in cbcmac_create() argument
870 err = crypto_inst_setname(shash_crypto_instance(inst), tmpl->name, alg); in cbcmac_create()
[all …]
A Dcbc.c138 static int crypto_cbc_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_cbc_create() argument
143 inst = lskcipher_alloc_instance_simple(tmpl, tb); in crypto_cbc_create()
157 err = lskcipher_register_instance(tmpl, inst); in crypto_cbc_create()
A Dseqiv.c124 static int seqiv_aead_create(struct crypto_template *tmpl, struct rtattr **tb) in seqiv_aead_create() argument
129 inst = aead_geniv_alloc(tmpl, tb); in seqiv_aead_create()
147 err = aead_register_instance(tmpl, inst); in seqiv_aead_create()
A 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()
A Dchacha20poly1305.c371 static int chachapoly_create(struct crypto_template *tmpl, struct rtattr **tb, in chachapoly_create() argument
437 err = aead_register_instance(tmpl, inst); in chachapoly_create()
445 static int rfc7539_create(struct crypto_template *tmpl, struct rtattr **tb) in rfc7539_create() argument
447 return chachapoly_create(tmpl, tb, "rfc7539", 12); in rfc7539_create()
450 static int rfc7539esp_create(struct crypto_template *tmpl, struct rtattr **tb) in rfc7539esp_create() argument
452 return chachapoly_create(tmpl, tb, "rfc7539esp", 8); in rfc7539esp_create()
A Dlskcipher.c410 int lskcipher_register_instance(struct crypto_template *tmpl, in lskcipher_register_instance() argument
422 return crypto_register_instance(tmpl, lskcipher_crypto_instance(inst)); in lskcipher_register_instance()
484 struct crypto_template *tmpl, struct rtattr **tb) in lskcipher_alloc_instance_simple() argument
512 if (err == -ENOENT && !!memcmp(tmpl->name, "ecb", 4)) { in lskcipher_alloc_instance_simple()
528 err = crypto_inst_setname(lskcipher_crypto_instance(inst), tmpl->name, in lskcipher_alloc_instance_simple()
549 "%s(%s)", tmpl->name, ecb_name) >= in lskcipher_alloc_instance_simple()
556 "%s(%s)", tmpl->name, cipher_name) >= in lskcipher_alloc_instance_simple()
A Decdsa-x962.c176 static int ecdsa_x962_create(struct crypto_template *tmpl, struct rtattr **tb) in ecdsa_x962_create() argument
205 err = crypto_inst_setname(sig_crypto_instance(inst), tmpl->name, in ecdsa_x962_create()
224 err = sig_register_instance(tmpl, inst); in ecdsa_x962_create()
A Dxcbc.c127 static int xcbc_create(struct crypto_template *tmpl, struct rtattr **tb) in xcbc_create() argument
154 err = crypto_inst_setname(shash_crypto_instance(inst), tmpl->name, alg); in xcbc_create()
178 err = shash_register_instance(tmpl, inst); in xcbc_create()
A 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()
A Dhctr2.c404 static int hctr2_create_common(struct crypto_template *tmpl, in hctr2_create_common() argument
508 err = skcipher_register_instance(tmpl, inst); in hctr2_create_common()
516 static int hctr2_create_base(struct crypto_template *tmpl, struct rtattr **tb) in hctr2_create_base() argument
529 return hctr2_create_common(tmpl, tb, xctr_name, polyval_name); in hctr2_create_base()
532 static int hctr2_create(struct crypto_template *tmpl, struct rtattr **tb) in hctr2_create() argument
545 return hctr2_create_common(tmpl, tb, xctr_name, "polyval"); in hctr2_create()
A Dpcrypt.c237 static int pcrypt_create_aead(struct crypto_template *tmpl, struct rtattr **tb, in pcrypt_create_aead() argument
288 err = aead_register_instance(tmpl, inst); in pcrypt_create_aead()
296 static int pcrypt_create(struct crypto_template *tmpl, struct rtattr **tb) in pcrypt_create() argument
306 return pcrypt_create_aead(tmpl, tb, algt); in pcrypt_create()
A Dcmac.c175 static int cmac_create(struct crypto_template *tmpl, struct rtattr **tb) in cmac_create() argument
207 err = crypto_inst_setname(shash_crypto_instance(inst), tmpl->name, alg); in cmac_create()
230 err = shash_register_instance(tmpl, inst); in cmac_create()
A Dkpp.c131 int kpp_register_instance(struct crypto_template *tmpl, in kpp_register_instance() argument
139 return crypto_register_instance(tmpl, kpp_crypto_instance(inst)); in kpp_register_instance()
A Dcryptd.c379 static int cryptd_create_skcipher(struct crypto_template *tmpl, in cryptd_create_skcipher() argument
428 err = skcipher_register_instance(tmpl, inst); in cryptd_create_skcipher()
664 static int cryptd_create_hash(struct crypto_template *tmpl, struct rtattr **tb, in cryptd_create_hash() argument
717 err = ahash_register_instance(tmpl, inst); in cryptd_create_hash()
872 static int cryptd_create_aead(struct crypto_template *tmpl, in cryptd_create_aead() argument
919 err = aead_register_instance(tmpl, inst); in cryptd_create_aead()
929 static int cryptd_create(struct crypto_template *tmpl, struct rtattr **tb) in cryptd_create() argument
939 return cryptd_create_skcipher(tmpl, tb, algt, &queue); in cryptd_create()
941 return cryptd_create_hash(tmpl, tb, algt, &queue); in cryptd_create()
943 return cryptd_create_aead(tmpl, tb, algt, &queue); in cryptd_create()

Completed in 37 milliseconds

12