/crypto/ |
D | api.c | 55 static struct crypto_alg *__crypto_alg_lookup(const char *name, u32 type, in __crypto_alg_lookup() argument 75 exact = !strcmp(q->cra_driver_name, name); in __crypto_alg_lookup() 76 fuzzy = !strcmp(q->cra_name, name); in __crypto_alg_lookup() 105 struct crypto_larval *crypto_larval_alloc(const char *name, u32 type, u32 mask) in crypto_larval_alloc() argument 118 strlcpy(larval->alg.cra_name, name, CRYPTO_MAX_ALG_NAME); in crypto_larval_alloc() 125 static struct crypto_alg *crypto_larval_add(const char *name, u32 type, in crypto_larval_add() argument 131 larval = crypto_larval_alloc(name, type, mask); in crypto_larval_add() 138 alg = __crypto_alg_lookup(name, type, mask); in crypto_larval_add() 191 static struct crypto_alg *crypto_alg_lookup(const char *name, u32 type, in crypto_alg_lookup() argument 201 alg = __crypto_alg_lookup(name, type | test, mask | test); in crypto_alg_lookup() [all …]
|
D | algboss.c | 94 const char *name = larval->alg.cra_name; in cryptomgr_schedule_probe() local 106 for (p = name; isalnum(*p) || *p == '-' || *p == '_'; p++) in cryptomgr_schedule_probe() 109 len = p - name; in cryptomgr_schedule_probe() 113 memcpy(param->template, name, len); in cryptomgr_schedule_probe() 119 name = ++p; in cryptomgr_schedule_probe() 140 len = p - name; in cryptomgr_schedule_probe() 148 memcpy(param->attrs[i].alg.data.name, name, len); in cryptomgr_schedule_probe() 154 simple_strtol(name, NULL, 0); in cryptomgr_schedule_probe()
|
D | ecrdsa_defs.h | 49 .name = "cp256a", 82 .name = "cp256b", 119 .name = "cp256c", 168 .name = "tc512a", 213 .name = "tc512b",
|
D | pcrypt.c | 221 const char *name; in pcrypt_create_aead() local 228 name = crypto_attr_alg_name(tb[1]); in pcrypt_create_aead() 229 if (IS_ERR(name)) in pcrypt_create_aead() 230 return PTR_ERR(name); in pcrypt_create_aead() 239 err = crypto_grab_aead(&ctx->spawn, name, 0, 0); in pcrypt_create_aead() 295 static int pcrypt_sysfs_add(struct padata_instance *pinst, const char *name) in pcrypt_sysfs_add() argument 300 ret = kobject_add(&pinst->kobj, NULL, "%s", name); in pcrypt_sysfs_add() 307 static int pcrypt_init_padata(struct padata_instance **pinst, const char *name) in pcrypt_init_padata() argument 311 *pinst = padata_alloc_possible(name); in pcrypt_init_padata() 315 ret = pcrypt_sysfs_add(*pinst, name); in pcrypt_init_padata() [all …]
|
D | algapi.c | 254 void crypto_alg_tested(const char *name, int err) in crypto_alg_tested() argument 268 if (!strcmp(q->cra_driver_name, name)) in crypto_alg_tested() 272 pr_err("alg: Unexpected test result for %s: %d\n", name, err); in crypto_alg_tested() 534 static struct crypto_template *__crypto_lookup_template(const char *name) in __crypto_lookup_template() argument 540 if (strcmp(q->name, name)) in __crypto_lookup_template() 553 struct crypto_template *crypto_lookup_template(const char *name) in crypto_lookup_template() argument 555 return try_then_request_module(__crypto_lookup_template(name), in crypto_lookup_template() 556 "crypto-%s", name); in crypto_lookup_template() 654 int crypto_grab_spawn(struct crypto_spawn *spawn, const char *name, in crypto_grab_spawn() argument 660 alg = crypto_find_alg(name, spawn->frontend, type, mask); in crypto_grab_spawn() [all …]
|
D | xts.c | 30 char name[CRYPTO_MAX_ALG_NAME]; member 309 tweak = crypto_alloc_cipher(ictx->name, 0, 0); in init_tfm() 373 if (snprintf(ctx->name, CRYPTO_MAX_ALG_NAME, "ecb(%s)", in create() 377 err = crypto_grab_skcipher(&ctx->spawn, ctx->name, 0, mask); in create() 406 len = strlcpy(ctx->name, cipher_name + 4, sizeof(ctx->name)); in create() 407 if (len < 2 || len >= sizeof(ctx->name)) in create() 410 if (ctx->name[len - 1] != ')') in create() 413 ctx->name[len - 1] = 0; in create() 416 "xts(%s)", ctx->name) >= CRYPTO_MAX_ALG_NAME) { in create() 459 .name = "xts",
|
D | internal.h | 59 struct crypto_alg *crypto_alg_mod_lookup(const char *name, u32 type, u32 mask); 64 struct crypto_larval *crypto_larval_alloc(const char *name, u32 type, u32 mask); 66 void crypto_alg_tested(const char *name, int err); 86 int crypto_type_has_alg(const char *name, const struct crypto_type *frontend,
|
D | aead.c | 234 const char *name; in aead_geniv_alloc() local 250 name = crypto_attr_alg_name(tb[1]); in aead_geniv_alloc() 251 if (IS_ERR(name)) in aead_geniv_alloc() 252 return ERR_CAST(name); in aead_geniv_alloc() 264 err = crypto_grab_aead(spawn, name, type, mask); in aead_geniv_alloc() 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() 371 int crypto_grab_aead(struct crypto_aead_spawn *spawn, const char *name, in crypto_grab_aead() argument 375 return crypto_grab_spawn(&spawn->base, name, type, mask); in crypto_grab_aead()
|
D | testmgr.c | 266 const char *name; member 290 .name = "in-place", 294 .name = "out-of-place", 297 .name = "unaligned buffer, offset=1", 301 .name = "buffer aligned only to alignmask", 312 .name = "two even aligned splits", 318 .name = "uneven misaligned splits, may sleep", 327 .name = "misaligned splits crossing pages, inplace", 343 .name = "init+update+final aligned buffer", 347 .name = "init+finup aligned buffer", [all …]
|
D | algif_rng.c | 116 static void *rng_bind(const char *name, u32 type, u32 mask) in rng_bind() argument 118 return crypto_alloc_rng(name, type, mask); in rng_bind() 175 .name = "rng",
|
D | xor.c | 98 printk(KERN_INFO " %-10s: %5d.%03d MB/sec\n", tmpl->name, in do_xor_speed() 113 fastest->name); in calibrate_xor_blocks() 139 fastest->name, fastest->speed / 1000, fastest->speed % 1000); in calibrate_xor_blocks()
|
D | ecc_curve_defs.h | 19 .name = "nist_192", 45 .name = "nist_256",
|
D | cryptd.c | 403 const char *name; in cryptd_create_skcipher() local 413 name = crypto_attr_alg_name(tb[1]); in cryptd_create_skcipher() 414 if (IS_ERR(name)) in cryptd_create_skcipher() 415 return PTR_ERR(name); in cryptd_create_skcipher() 425 err = crypto_grab_skcipher(&ctx->spawn, name, type, mask); in cryptd_create_skcipher() 859 const char *name; in cryptd_create_aead() local 866 name = crypto_attr_alg_name(tb[1]); in cryptd_create_aead() 867 if (IS_ERR(name)) in cryptd_create_aead() 868 return PTR_ERR(name); in cryptd_create_aead() 878 err = crypto_grab_aead(&ctx->aead_spawn, name, type, mask); in cryptd_create_aead() [all …]
|
D | akcipher.c | 93 int crypto_grab_akcipher(struct crypto_akcipher_spawn *spawn, const char *name, in crypto_grab_akcipher() argument 97 return crypto_grab_spawn(&spawn->base, name, type, mask); in crypto_grab_akcipher()
|
D | rsa-pkcs1pad.c | 64 const char *name; member 80 static const struct rsa_asn1_template *rsa_lookup_asn1(const char *name) in rsa_lookup_asn1() argument 84 for (p = rsa_asn1_templates; p->name; p++) in rsa_lookup_asn1() 85 if (strcmp(name, p->name) == 0) in rsa_lookup_asn1() 705 .name = "pkcs1pad",
|
D | crypto_engine.c | 445 snprintf(engine->name, sizeof(engine->name), in crypto_engine_alloc_init() 451 engine->kworker = kthread_create_worker(0, "%s", engine->name); in crypto_engine_alloc_init()
|
D | crypto_user_base.c | 337 const char *name; in crypto_add_alg() local 361 name = p->cru_driver_name; in crypto_add_alg() 363 name = p->cru_name; in crypto_add_alg() 365 alg = crypto_alg_mod_lookup(name, p->cru_type, p->cru_mask); in crypto_add_alg()
|
D | af_alg.c | 30 .name = "ALG", 39 static const struct af_alg_type *alg_get_type(const char *name) in alg_get_type() argument 46 if (strcmp(node->type->name, name)) in alg_get_type() 65 if (!strcmp(node->type->name, type->name)) in af_alg_register_type() 95 if (strcmp(node->type->name, type->name)) in af_alg_unregister_type()
|
D | algif_skcipher.c | 304 static void *skcipher_bind(const char *name, u32 type, u32 mask) in skcipher_bind() argument 306 return crypto_alloc_skcipher(name, type, mask); in skcipher_bind() 387 .name = "skcipher",
|
D | chacha20poly1305.c | 563 const char *name, unsigned int ivsize) in chachapoly_create() argument 635 "%s(%s,%s)", name, chacha->base.cra_name, in chachapoly_create() 639 "%s(%s,%s)", name, chacha->base.cra_driver_name, in chachapoly_create() 693 .name = "rfc7539", 697 .name = "rfc7539esp",
|
D | algif_hash.c | 401 static void *hash_bind(const char *name, u32 type, u32 mask) in hash_bind() argument 403 return crypto_alloc_ahash(name, type, mask); in hash_bind() 471 .name = "hash",
|
/crypto/asymmetric_keys/ |
D | asymmetric_type.c | 383 pr_debug("Trying parser '%s'\n", parser->name); in asymmetric_key_preparse() 578 .name = "asymmetric", 605 if (strcmp(cursor->name, parser->name) == 0) { in register_asymmetric_key_parser() 607 parser->name); in register_asymmetric_key_parser() 615 pr_notice("Asymmetric key parser '%s' registered\n", parser->name); in register_asymmetric_key_parser() 634 pr_notice("Asymmetric key parser '%s' unregistered\n", parser->name); in unregister_asymmetric_key_parser()
|
D | x509_cert_parser.c | 332 const void *name, *data = (const void *)ctx->data; in x509_fabricate_name() local 353 name = data + ctx->cn_offset; in x509_fabricate_name() 379 name = data + ctx->cn_offset; in x509_fabricate_name() 382 name = data + ctx->o_offset; in x509_fabricate_name() 385 name = data + ctx->email_offset; in x509_fabricate_name() 392 memcpy(buffer, name, namesize); in x509_fabricate_name()
|
D | asym_tpm.c | 614 const char *name; member 630 static const struct asn1_template *lookup_asn1(const char *name) in lookup_asn1() argument 634 for (p = asn1_templates; p->name; p++) in lookup_asn1() 635 if (strcmp(name, p->name) == 0) in lookup_asn1() 962 .name = "asym_tpm",
|
D | pkcs7_key_type.c | 71 .name = "pkcs7_test",
|