/crypto/ |
H A D | xor.c | 64 do_xor_speed(struct xor_block_template *tmpl, void *b1, void *b2) argument 70 tmpl->next = template_list; 71 template_list = tmpl; 88 tmpl->do_2(BENCH_SIZE, b1, b2); 100 tmpl->speed = speed; 102 printk(KERN_INFO " %-10s: %5d.%03d MB/sec\n", tmpl->name,
|
H A D | algboss.c | 65 struct crypto_template *tmpl; local 69 tmpl = crypto_lookup_template(param->template); 70 if (!tmpl) 74 if (tmpl->create) { 75 err = tmpl->create(tmpl, param->tb); 79 inst = tmpl->alloc(param->tb); 82 else if ((err = crypto_register_instance(tmpl, inst))) 83 tmpl->free(inst); 86 crypto_tmpl_put(tmpl); [all...] |
H A D | algapi.c | 61 struct crypto_template *tmpl = inst->tmpl; local 63 tmpl->free(inst); 64 crypto_tmpl_put(tmpl); 94 struct crypto_template *tmpl = inst->tmpl; local 103 if (!tmpl || !crypto_tmpl_get(tmpl)) 426 int crypto_register_template(struct crypto_template *tmpl) argument 434 if (q == tmpl) 447 crypto_unregister_template(struct crypto_template *tmpl) argument 479 struct crypto_template *q, *tmpl = NULL; local 502 crypto_register_instance(struct crypto_template *tmpl, struct crypto_instance *inst) argument 543 struct crypto_template *tmpl = inst->tmpl; local [all...] |
H A D | internal.h | 118 static inline int crypto_tmpl_get(struct crypto_template *tmpl) argument 120 return try_module_get(tmpl->module); 123 static inline void crypto_tmpl_put(struct crypto_template *tmpl) argument 125 module_put(tmpl->module);
|
H A D | aead.c | 272 struct crypto_instance *aead_geniv_alloc(struct crypto_template *tmpl, argument 321 if (strcmp(tmpl->name, alg->cra_aead.geniv)) 330 "%s(%s)", tmpl->name, alg->cra_name) >= 334 "%s(%s)", tmpl->name, alg->cra_driver_name) >= 407 struct crypto_template *tmpl; local 441 tmpl = crypto_lookup_template(geniv); 443 if (!tmpl) 446 inst = tmpl->alloc(tb); 451 if ((err = crypto_register_instance(tmpl, inst))) { 452 tmpl [all...] |
H A D | cryptd.c | 317 static int cryptd_create_blkcipher(struct crypto_template *tmpl, argument 362 err = crypto_register_instance(tmpl, inst); 573 static int cryptd_create_hash(struct crypto_template *tmpl, struct rtattr **tb, argument 618 err = ahash_register_instance(tmpl, inst); 715 static int cryptd_create_aead(struct crypto_template *tmpl, argument 757 err = crypto_register_instance(tmpl, inst); 770 static int cryptd_create(struct crypto_template *tmpl, struct rtattr **tb) argument 780 return cryptd_create_blkcipher(tmpl, tb, &queue); 782 return cryptd_create_hash(tmpl, tb, &queue); 784 return cryptd_create_aead(tmpl, t [all...] |
H A D | xcbc.c | 199 static int xcbc_create(struct crypto_template *tmpl, struct rtattr **tb) argument 256 err = shash_register_instance(tmpl, inst);
|
H A D | ablkcipher.c | 545 struct crypto_template *tmpl; local 587 tmpl = crypto_lookup_template(geniv); 589 if (!tmpl) 592 inst = tmpl->alloc(tb); 597 if ((err = crypto_register_instance(tmpl, inst))) { 598 tmpl->free(inst); 606 crypto_tmpl_put(tmpl);
|
H A D | cmac.c | 225 static int cmac_create(struct crypto_template *tmpl, struct rtattr **tb) argument 283 err = shash_register_instance(tmpl, inst);
|
H A D | hmac.c | 184 static int hmac_create(struct crypto_template *tmpl, struct rtattr **tb) argument 241 err = shash_register_instance(tmpl, inst);
|
H A D | blkcipher.c | 580 struct crypto_instance *skcipher_geniv_alloc(struct crypto_template *tmpl, argument 667 if (strcmp(tmpl->name, balg.geniv)) 676 "%s(%s)", tmpl->name, alg->cra_name) >= 680 "%s(%s)", tmpl->name, alg->cra_driver_name) >=
|
H A D | ahash.c | 494 int ahash_register_instance(struct crypto_template *tmpl, argument 503 return crypto_register_instance(tmpl, ahash_crypto_instance(inst));
|
H A D | shash.c | 669 int shash_register_instance(struct crypto_template *tmpl, argument 678 return crypto_register_instance(tmpl, shash_crypto_instance(inst));
|
H A D | vmac.c | 643 static int vmac_create(struct crypto_template *tmpl, struct rtattr **tb) argument 683 err = shash_register_instance(tmpl, inst);
|