Home
last modified time | relevance | path

Searched refs:name (Results 1 – 25 of 64) sorted by relevance

123

/crypto/
Dapi.c55 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()
193 static struct crypto_alg *crypto_alg_lookup(const char *name, u32 type, in crypto_alg_lookup() argument
203 alg = __crypto_alg_lookup(name, type | test, mask | test); in crypto_alg_lookup()
[all …]
Dfips140_gen_hmac.c45 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()
Dalgboss.c84 const char *name = larval->alg.cra_name; in cryptomgr_schedule_probe() local
96 for (p = name; isalnum(*p) || *p == '-' || *p == '_'; p++) in cryptomgr_schedule_probe()
99 len = p - name; in cryptomgr_schedule_probe()
103 memcpy(param->template, name, len); in cryptomgr_schedule_probe()
109 name = ++p; in cryptomgr_schedule_probe()
130 len = p - name; in cryptomgr_schedule_probe()
138 memcpy(param->attrs[i].alg.data.name, name, len); in cryptomgr_schedule_probe()
144 simple_strtol(name, NULL, 0); in cryptomgr_schedule_probe()
Decrdsa_defs.h49 .name = "cp256a",
82 .name = "cp256b",
119 .name = "cp256c",
168 .name = "tc512a",
213 .name = "tc512b",
Dxts.c31 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",
Dinternal.h57 struct crypto_alg *crypto_alg_mod_lookup(const char *name, u32 type, u32 mask);
59 struct crypto_larval *crypto_larval_alloc(const char *name, u32 type, u32 mask);
61 void crypto_alg_tested(const char *name, int err);
96 int crypto_type_has_alg(const char *name, const struct crypto_type *frontend,
Dalgapi.c284 void crypto_alg_tested(const char *name, int err) in crypto_alg_tested() argument
299 if (!strcmp(q->cra_driver_name, name)) in crypto_alg_tested()
303 pr_err("alg: Unexpected test result for %s: %d\n", name, err); in crypto_alg_tested()
577 static struct crypto_template *__crypto_lookup_template(const char *name) in __crypto_lookup_template() argument
583 if (strcmp(q->name, name)) in __crypto_lookup_template()
596 struct crypto_template *crypto_lookup_template(const char *name) in crypto_lookup_template() argument
598 return try_then_request_module(__crypto_lookup_template(name), in crypto_lookup_template()
599 "crypto-%s", name); in crypto_lookup_template()
673 const char *name, u32 type, u32 mask) in crypto_grab_spawn() argument
682 if (IS_ERR(name)) in crypto_grab_spawn()
[all …]
Dpcrypt.c311 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",
Dtestmgr.c287 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 …]
Decc_curve_defs.h19 .name = "nist_192",
45 .name = "nist_256",
Dxor.c115 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()
Dfips140-module.c83 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()
Dblake2s_generic.c26 #define BLAKE2S_ALG(name, driver_name, digest_size) \ argument
28 .base.cra_name = name, \
Drsa-pkcs1pad.c65 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()
685 .name = "pkcs1pad",
Dalgif_rng.c202 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",
Dakcipher.c95 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()
Dgeniv.c78 "%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()
Dblake2b_generic.c136 #define BLAKE2B_ALG(name, driver_name, digest_size) \ argument
138 .base.cra_name = name, \
Dcrypto_user_base.c338 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()
Daf_alg.c31 .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()
Dfips140-module.h44 bool fips140_is_approved_service(const char *name);
Dcrypto_engine.c508 snprintf(engine->name, sizeof(engine->name), in crypto_engine_alloc_init_and_set()
514 engine->kworker = kthread_create_worker(0, "%s", engine->name); in crypto_engine_alloc_init_and_set()
/crypto/asymmetric_keys/
Dasymmetric_type.c383 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()
Dx509_cert_parser.c342 const void *name, *data = (const void *)ctx->data; in x509_fabricate_name() local
363 name = data + ctx->cn_offset; in x509_fabricate_name()
389 name = data + ctx->cn_offset; in x509_fabricate_name()
392 name = data + ctx->o_offset; in x509_fabricate_name()
395 name = data + ctx->email_offset; in x509_fabricate_name()
402 memcpy(buffer, name, namesize); in x509_fabricate_name()
Dasym_tpm.c598 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",

123