/crypto/ |
D | api.c | 56 static struct crypto_alg *__crypto_alg_lookup(const char *name, u32 type, in __crypto_alg_lookup() argument 76 exact = !strcmp(q->cra_driver_name, name); in __crypto_alg_lookup() 77 fuzzy = !strcmp(q->cra_name, name); in __crypto_alg_lookup() 106 struct crypto_larval *crypto_larval_alloc(const char *name, u32 type, u32 mask) in crypto_larval_alloc() argument 119 strlcpy(larval->alg.cra_name, name, CRYPTO_MAX_ALG_NAME); in crypto_larval_alloc() 126 static struct crypto_alg *crypto_larval_add(const char *name, u32 type, in crypto_larval_add() argument 132 larval = crypto_larval_alloc(name, type, mask); in crypto_larval_add() 139 alg = __crypto_alg_lookup(name, type, mask); in crypto_larval_add() 232 static struct crypto_alg *crypto_alg_lookup(const char *name, u32 type, in crypto_alg_lookup() argument 242 alg = __crypto_alg_lookup(name, type | test, mask | test); in crypto_alg_lookup() [all …]
|
D | fips140_gen_hmac.c | 45 static int get_section_idx(const char *name) in get_section_idx() argument 50 if (!strcmp(shstrtab + shdr[i].sh_name, name)) in get_section_idx() 75 static int update_rela_ref(const char *name) in update_rela_ref() argument 89 sprintf(str, "fips140_rela_%s", name); in update_rela_ref() 93 str, name); in update_rela_ref() 97 sprintf(str, "__sec_rela_%s", name); in update_rela_ref() 100 sprintf(str, ".init.rela.%s", name); in update_rela_ref() 105 name); in update_rela_ref()
|
D | algboss.c | 77 const char *name = larval->alg.cra_name; in cryptomgr_schedule_probe() local 89 for (p = name; isalnum(*p) || *p == '-' || *p == '_'; p++) in cryptomgr_schedule_probe() 92 len = p - name; in cryptomgr_schedule_probe() 96 memcpy(param->template, name, len); in cryptomgr_schedule_probe() 100 name = ++p; in cryptomgr_schedule_probe() 120 len = p - name; in cryptomgr_schedule_probe() 126 memcpy(param->attrs[i].data.name, name, len); in cryptomgr_schedule_probe()
|
D | ecrdsa_defs.h | 49 .name = "cp256a", 82 .name = "cp256b", 119 .name = "cp256c", 168 .name = "tc512a", 213 .name = "tc512b",
|
D | ecc_curve_defs.h | 19 .name = "nist_192", 45 .name = "nist_256", 77 .name = "nist_384", 97 .name = "curve25519",
|
D | xts.c | 31 char name[CRYPTO_MAX_ALG_NAME]; member 309 tweak = crypto_alloc_cipher(ictx->name, 0, 0); in xts_init_tfm() 366 if (snprintf(ctx->name, CRYPTO_MAX_ALG_NAME, "ecb(%s)", in xts_create() 372 ctx->name, 0, mask); in xts_create() 401 len = strscpy(ctx->name, cipher_name + 4, sizeof(ctx->name)); in xts_create() 405 if (ctx->name[len - 1] != ')') in xts_create() 408 ctx->name[len - 1] = 0; in xts_create() 411 "xts(%s)", ctx->name) >= CRYPTO_MAX_ALG_NAME) { in xts_create() 447 .name = "xts",
|
D | internal.h | 91 struct crypto_alg *crypto_alg_mod_lookup(const char *name, u32 type, u32 mask); 93 struct crypto_larval *crypto_larval_alloc(const char *name, u32 type, u32 mask); 96 void crypto_alg_tested(const char *name, int err); 131 int crypto_type_has_alg(const char *name, const struct crypto_type *frontend,
|
D | algapi.c | 357 void crypto_alg_tested(const char *name, int err) in crypto_alg_tested() argument 372 if (!strcmp(q->cra_driver_name, name)) in crypto_alg_tested() 376 pr_err("alg: Unexpected test result for %s: %d\n", name, err); in crypto_alg_tested() 600 static struct crypto_template *__crypto_lookup_template(const char *name) in __crypto_lookup_template() argument 606 if (strcmp(q->name, name)) in __crypto_lookup_template() 619 struct crypto_template *crypto_lookup_template(const char *name) in crypto_lookup_template() argument 621 return try_then_request_module(__crypto_lookup_template(name), in crypto_lookup_template() 622 "crypto-%s", name); in crypto_lookup_template() 696 const char *name, u32 type, u32 mask) in crypto_grab_spawn() argument 705 if (IS_ERR(name)) in crypto_grab_spawn() [all …]
|
D | pcrypt.c | 311 static int pcrypt_sysfs_add(struct padata_instance *pinst, const char *name) in pcrypt_sysfs_add() argument 316 ret = kobject_add(&pinst->kobj, NULL, "%s", name); in pcrypt_sysfs_add() 323 static int pcrypt_init_padata(struct padata_instance **pinst, const char *name) in pcrypt_init_padata() argument 327 *pinst = padata_alloc(name); in pcrypt_init_padata() 331 ret = pcrypt_sysfs_add(*pinst, name); in pcrypt_init_padata() 339 .name = "pcrypt",
|
D | testmgr.c | 287 const char *name; member 313 .name = "in-place", 317 .name = "out-of-place", 320 .name = "unaligned buffer, offset=1", 325 .name = "buffer aligned only to alignmask", 338 .name = "two even aligned splits", 344 .name = "uneven misaligned splits, may sleep", 354 .name = "misaligned splits crossing pages, inplace", 370 .name = "init+update+final aligned buffer", 374 .name = "init+finup aligned buffer", [all …]
|
D | xor.c | 115 pr_info(" %-16s: %5d MB/sec\n", tmpl->name, speed); in do_xor_speed() 129 fastest->name); in calibrate_xor_blocks() 156 fastest->name, fastest->speed); in calibrate_xor_blocks()
|
D | fips140-module.c | 83 const char *name; member 124 if (!strcmp(alg->cra_name, fips140_algs_to_replace[i].name)) in fips140_should_unregister_alg() 153 bool fips140_is_approved_service(const char *name) in fips140_is_approved_service() argument 158 if (!strcmp(name, fips140_algs_to_replace[i].name)) in fips140_is_approved_service()
|
D | rsa-pkcs1pad.c | 65 const char *name; member 81 static const struct rsa_asn1_template *rsa_lookup_asn1(const char *name) in rsa_lookup_asn1() argument 85 for (p = rsa_asn1_templates; p->name; p++) in rsa_lookup_asn1() 86 if (strcmp(name, p->name) == 0) in rsa_lookup_asn1() 688 .name = "pkcs1pad",
|
D | algif_rng.c | 202 static void *rng_bind(const char *name, u32 type, u32 mask) in rng_bind() argument 211 rng = crypto_alloc_rng(name, type, mask); in rng_bind() 326 .name = "rng",
|
D | akcipher.c | 95 const char *name, u32 type, u32 mask) in crypto_grab_akcipher() argument 98 return crypto_grab_spawn(&spawn->base, inst, name, type, mask); in crypto_grab_akcipher()
|
D | geniv.c | 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()
|
D | blake2b_generic.c | 136 #define BLAKE2B_ALG(name, driver_name, digest_size) \ argument 138 .base.cra_name = name, \
|
D | crypto_user_base.c | 338 const char *name; in crypto_add_alg() local 362 name = p->cru_driver_name; in crypto_add_alg() 364 name = p->cru_name; in crypto_add_alg() 366 alg = crypto_alg_mod_lookup(name, p->cru_type, p->cru_mask); in crypto_add_alg()
|
D | fips140-module.h | 44 bool fips140_is_approved_service(const char *name);
|
D | af_alg.c | 31 .name = "ALG", 40 static const struct af_alg_type *alg_get_type(const char *name) in alg_get_type() argument 47 if (strcmp(node->type->name, name)) in alg_get_type() 66 if (!strcmp(node->type->name, type->name)) in af_alg_register_type() 96 if (strcmp(node->type->name, type->name)) in af_alg_unregister_type()
|
D | algif_skcipher.c | 293 static void *skcipher_bind(const char *name, u32 type, u32 mask) in skcipher_bind() argument 295 return crypto_alloc_skcipher(name, type, mask); in skcipher_bind() 371 .name = "skcipher",
|
D | crypto_engine.c | 509 snprintf(engine->name, sizeof(engine->name), in crypto_engine_alloc_init_and_set() 515 engine->kworker = kthread_create_worker(0, "%s", engine->name); in crypto_engine_alloc_init_and_set()
|
/crypto/asymmetric_keys/ |
D | asymmetric_type.c | 385 pr_debug("Trying parser '%s'\n", parser->name); in asymmetric_key_preparse() 580 .name = "asymmetric", 607 if (strcmp(cursor->name, parser->name) == 0) { in register_asymmetric_key_parser() 609 parser->name); in register_asymmetric_key_parser() 617 pr_notice("Asymmetric key parser '%s' registered\n", parser->name); in register_asymmetric_key_parser() 636 pr_notice("Asymmetric key parser '%s' unregistered\n", parser->name); in unregister_asymmetric_key_parser()
|
D | x509_cert_parser.c | 368 const void *name, *data = (const void *)ctx->data; in x509_fabricate_name() local 389 name = data + ctx->cn_offset; in x509_fabricate_name() 415 name = data + ctx->cn_offset; in x509_fabricate_name() 418 name = data + ctx->o_offset; in x509_fabricate_name() 421 name = data + ctx->email_offset; in x509_fabricate_name() 428 memcpy(buffer, name, namesize); in x509_fabricate_name()
|
D | asym_tpm.c | 598 const char *name; member 614 static const struct asn1_template *lookup_asn1(const char *name) in lookup_asn1() argument 618 for (p = asn1_templates; p->name; p++) in lookup_asn1() 619 if (strcmp(name, p->name) == 0) in lookup_asn1() 945 .name = "asym_tpm",
|