Searched refs:type (Results 1 - 25 of 28) sorted by relevance

12

/crypto/
H A Daf_alg.c26 const struct af_alg_type *type; member in struct:alg_type_list
44 const struct af_alg_type *type = ERR_PTR(-ENOENT); local
49 if (strcmp(node->type->name, name))
52 if (try_module_get(node->type->owner))
53 type = node->type;
58 return type;
61 int af_alg_register_type(const struct af_alg_type *type) argument
68 if (!strcmp(node->type->name, type
89 af_alg_unregister_type(const struct af_alg_type *type) argument
110 alg_do_release(const struct af_alg_type *type, void *private) argument
132 const struct af_alg_type *type; local
175 const struct af_alg_type *type = ask->type; local
200 const struct af_alg_type *type; local
228 const struct af_alg_type *type; local
[all...]
H A Dapi.c57 static struct crypto_alg *__crypto_alg_lookup(const char *name, u32 type, argument
69 if ((q->cra_flags ^ type) & mask)
107 struct crypto_larval *crypto_larval_alloc(const char *name, u32 type, u32 mask) argument
116 larval->alg.cra_flags = CRYPTO_ALG_LARVAL | type;
127 static struct crypto_alg *crypto_larval_add(const char *name, u32 type, argument
133 larval = crypto_larval_alloc(name, type, mask);
140 alg = __crypto_alg_lookup(name, type, mask);
190 struct crypto_alg *crypto_alg_lookup(const char *name, u32 type, u32 mask) argument
195 alg = __crypto_alg_lookup(name, type, mask);
202 struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u3 argument
244 crypto_alg_mod_lookup(const char *name, u32 type, u32 mask) argument
272 crypto_init_ops(struct crypto_tfm *tfm, u32 type, u32 mask) argument
296 const struct crypto_type *type = tfm->__crt_alg->cra_type; local
318 crypto_ctxsize(struct crypto_alg *alg, u32 type, u32 mask) argument
351 __crypto_alloc_tfm(struct crypto_alg *alg, u32 type, u32 mask) argument
409 crypto_alloc_base(const char *alg_name, u32 type, u32 mask) argument
484 crypto_find_alg(const char *alg_name, const struct crypto_type *frontend, u32 type, u32 mask) argument
525 crypto_alloc_tfm(const char *alg_name, const struct crypto_type *frontend, u32 type, u32 mask) argument
585 crypto_has_alg(const char *name, u32 type, u32 mask) argument
[all...]
H A Dalgboss.c34 } type; member in struct:cryptomgr_param
59 u32 type; member in struct:crypto_test_param
181 param->type.attr.rta_len = sizeof(param->type);
182 param->type.attr.rta_type = CRYPTOA_TYPE;
183 param->type.data.type = larval->alg.cra_flags & ~CRYPTO_ALG_TESTED;
184 param->type.data.mask = larval->mask & ~CRYPTO_ALG_TESTED;
185 param->tb[0] = &param->type.attr;
214 u32 type local
237 u32 type; local
[all...]
H A Dpcompress.c36 static int crypto_pcomp_init(struct crypto_tfm *tfm, u32 type, u32 mask) argument
56 strncpy(rpcomp.type, "pcomp", sizeof(rpcomp.type));
76 seq_printf(m, "type : pcomp\n");
89 .type = CRYPTO_ALG_TYPE_PCOMPRESS,
93 struct crypto_pcomp *crypto_alloc_pcomp(const char *alg_name, u32 type, argument
96 return crypto_alloc_tfm(alg_name, &crypto_pcomp_type, type, mask);
119 MODULE_DESCRIPTION("Partial (de)compression type");
H A Dcrypto_user.c80 strncpy(rcipher.type, "cipher", sizeof(rcipher.type));
99 strncpy(rcomp.type, "compression", sizeof(rcomp.type));
128 strncpy(rl.type, "larval", sizeof(rl.type));
319 static struct crypto_alg *crypto_user_skcipher_alg(const char *name, u32 type, argument
325 type = crypto_skcipher_type(type);
329 alg = crypto_lookup_skcipher(name, type, mas
345 crypto_user_aead_alg(const char *name, u32 type, u32 mask) argument
460 int type, err; local
[all...]
H A Daead.c82 static unsigned int crypto_aead_ctxsize(struct crypto_alg *alg, u32 type, argument
93 static int crypto_init_aead_ops(struct crypto_tfm *tfm, u32 type, u32 mask) argument
120 strncpy(raead.type, "aead", sizeof(raead.type));
148 seq_printf(m, "type : aead\n");
177 static int crypto_init_nivaead_ops(struct crypto_tfm *tfm, u32 type, u32 mask) argument
205 strncpy(raead.type, "nivaead", sizeof(raead.type));
234 seq_printf(m, "type : nivaead\n");
254 const char *name, u32 type, u3
253 crypto_grab_nivaead(struct crypto_aead_spawn *spawn, const char *name, u32 type, u32 mask) argument
272 aead_geniv_alloc(struct crypto_template *tmpl, struct rtattr **tb, u32 type, u32 mask) argument
396 crypto_nivaead_default(struct crypto_alg *alg, u32 type, u32 mask) argument
470 crypto_lookup_aead(const char *name, u32 type, u32 mask) argument
504 crypto_grab_aead(struct crypto_aead_spawn *spawn, const char *name, u32 type, u32 mask) argument
525 crypto_alloc_aead(const char *alg_name, u32 type, u32 mask) argument
[all...]
H A Dinternal.h74 struct crypto_alg *crypto_alg_lookup(const char *name, u32 type, u32 mask);
75 struct crypto_alg *crypto_alg_mod_lookup(const char *name, u32 type, u32 mask);
83 struct crypto_larval *crypto_larval_alloc(const char *name, u32 type, u32 mask);
85 struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask);
92 struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type,
98 u32 type, u32 mask);
100 const struct crypto_type *frontend, u32 type, u32 mask);
H A Drng.c52 static int crypto_init_rng_ops(struct crypto_tfm *tfm, u32 type, u32 mask) argument
68 strncpy(rrng.type, "rng", sizeof(rrng.type));
91 seq_printf(m, "type : rng\n");
95 static unsigned int crypto_rng_ctxsize(struct crypto_alg *alg, u32 type, argument
H A D842.c47 enum nx842_crypto_type type; member in struct:nx842_crypto_header
97 hdr->type = NX842_CRYPTO_TYPE_842;
114 hdr->type = NX842_CRYPTO_TYPE_LZO;
137 if (likely(hdr->type == NX842_CRYPTO_TYPE_842)) {
143 } else if (hdr->type == NX842_CRYPTO_TYPE_LZO) {
H A Dablkcipher.c348 static unsigned int crypto_ablkcipher_ctxsize(struct crypto_alg *alg, u32 type, argument
364 static int crypto_init_ablkcipher_ops(struct crypto_tfm *tfm, u32 type, argument
391 strncpy(rblkcipher.type, "ablkcipher", sizeof(rblkcipher.type));
421 seq_printf(m, "type : ablkcipher\n");
446 static int crypto_init_givcipher_ops(struct crypto_tfm *tfm, u32 type, argument
472 strncpy(rblkcipher.type, "givcipher", sizeof(rblkcipher.type));
502 seq_printf(m, "type : givcipher\n");
534 static int crypto_givcipher_default(struct crypto_alg *alg, u32 type, u3 argument
616 crypto_lookup_skcipher(const char *name, u32 type, u32 mask) argument
656 crypto_grab_skcipher(struct crypto_skcipher_spawn *spawn, const char *name, u32 type, u32 mask) argument
675 crypto_alloc_ablkcipher(const char *alg_name, u32 type, u32 mask) argument
[all...]
H A Dblkcipher.c445 static unsigned int crypto_blkcipher_ctxsize(struct crypto_alg *alg, u32 type, argument
497 static int crypto_init_blkcipher_ops(struct crypto_tfm *tfm, u32 type, u32 mask) argument
515 strncpy(rblkcipher.type, "blkcipher", sizeof(rblkcipher.type));
543 seq_printf(m, "type : blkcipher\n");
563 const char *name, u32 type, u32 mask)
568 type = crypto_skcipher_type(type);
571 alg = crypto_alg_mod_lookup(name, type, mask);
581 struct rtattr **tb, u32 type,
562 crypto_grab_nivcipher(struct crypto_skcipher_spawn *spawn, const char *name, u32 type, u32 mask) argument
580 skcipher_geniv_alloc(struct crypto_template *tmpl, struct rtattr **tb, u32 type, u32 mask) argument
[all...]
H A Dahash.c407 strncpy(rhash.type, "ahash", sizeof(rhash.type));
431 seq_printf(m, "type : ahash\n");
448 .type = CRYPTO_ALG_TYPE_AHASH,
453 struct crypto_ahash *crypto_alloc_ahash(const char *alg_name, u32 type, argument
456 return crypto_alloc_tfm(alg_name, &crypto_ahash_type, type, mask);
523 struct hash_alg_common *ahash_attr_alg(struct rtattr *rta, u32 type, u32 mask) argument
527 alg = crypto_attr_alg2(rta, &crypto_ahash_type, type, mask);
533 MODULE_DESCRIPTION("Asynchronous cryptographic hash type");
H A Dtestmgr.c36 int alg_test(const char *driver, const char *alg, u32 type, u32 mask) argument
114 u32 type, u32 mask);
1408 u32 type, u32 mask)
1413 tfm = crypto_alloc_aead(driver, type, mask);
1437 const char *driver, u32 type, u32 mask)
1442 tfm = crypto_alloc_cipher(driver, type, mask);
1466 const char *driver, u32 type, u32 mask)
1471 tfm = crypto_alloc_ablkcipher(driver, type, mask);
1495 u32 type, u32 mask)
1500 tfm = crypto_alloc_comp(driver, type, mas
1407 alg_test_aead(const struct alg_test_desc *desc, const char *driver, u32 type, u32 mask) argument
1436 alg_test_cipher(const struct alg_test_desc *desc, const char *driver, u32 type, u32 mask) argument
1465 alg_test_skcipher(const struct alg_test_desc *desc, const char *driver, u32 type, u32 mask) argument
1494 alg_test_comp(const struct alg_test_desc *desc, const char *driver, u32 type, u32 mask) argument
1516 alg_test_pcomp(const struct alg_test_desc *desc, const char *driver, u32 type, u32 mask) argument
1538 alg_test_hash(const struct alg_test_desc *desc, const char *driver, u32 type, u32 mask) argument
1561 alg_test_crc32c(const struct alg_test_desc *desc, const char *driver, u32 type, u32 mask) argument
1610 alg_test_cprng(const struct alg_test_desc *desc, const char *driver, u32 type, u32 mask) argument
1630 alg_test_null(const struct alg_test_desc *desc, const char *driver, u32 type, u32 mask) argument
3096 alg_test(const char *driver, const char *alg, u32 type, u32 mask) argument
[all...]
H A Dalgapi.c594 if ((alg->cra_flags ^ frontend->type) & frontend->maskset)
637 struct crypto_tfm *crypto_spawn_tfm(struct crypto_spawn *spawn, u32 type, argument
648 if (unlikely((alg->cra_flags ^ type) & mask))
651 tfm = __crypto_alloc_tfm(alg, type, mask);
714 int crypto_check_attr_type(struct rtattr **tb, u32 type) argument
722 if ((algt->type ^ type) & algt->mask)
749 u32 type, u32 mask)
757 return crypto_find_alg(name, frontend, type, mask);
747 crypto_attr_alg2(struct rtattr *rta, const struct crypto_type *frontend, u32 type, u32 mask) argument
H A Dcryptd.c778 switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) {
819 u32 type, u32 mask)
827 type &= ~(CRYPTO_ALG_TYPE_MASK | CRYPTO_ALG_GENIV);
828 type |= CRYPTO_ALG_TYPE_BLKCIPHER;
831 tfm = crypto_alloc_base(cryptd_alg_name, type, mask);
857 u32 type, u32 mask)
865 tfm = crypto_alloc_ahash(cryptd_alg_name, type, mask);
899 u32 type, u32 mask)
907 tfm = crypto_alloc_aead(cryptd_alg_name, type, mask);
818 cryptd_alloc_ablkcipher(const char *alg_name, u32 type, u32 mask) argument
856 cryptd_alloc_ahash(const char *alg_name, u32 type, u32 mask) argument
898 cryptd_alloc_aead(const char *alg_name, u32 type, u32 mask) argument
H A Dshash.c493 static int crypto_init_shash_ops(struct crypto_tfm *tfm, u32 type, u32 mask) argument
503 static unsigned int crypto_shash_ctxsize(struct crypto_alg *alg, u32 type, argument
533 strncpy(rhash.type, "shash", sizeof(rhash.type));
559 seq_printf(m, "type : shash\n");
575 .type = CRYPTO_ALG_TYPE_SHASH,
579 struct crypto_shash *crypto_alloc_shash(const char *alg_name, u32 type, argument
582 return crypto_alloc_tfm(alg_name, &crypto_shash_type, type, mask);
698 struct shash_alg *shash_attr_alg(struct rtattr *rta, u32 type, u32 mask) argument
702 alg = crypto_attr_alg2(rta, &crypto_shash_type, type, mas
[all...]
H A Dpcrypt.c43 * using cpumask_var_t directly because the actual type of
348 u32 type, u32 mask)
353 alg = crypto_get_attr_alg(tb, type, (mask & CRYPTO_ALG_TYPE_MASK));
392 switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) {
394 return pcrypt_alloc_aead(tb, algt->type, algt->mask);
347 pcrypt_alloc_aead(struct rtattr **tb, u32 type, u32 mask) argument
H A Dalgif_hash.c240 static void *hash_bind(const char *name, u32 type, u32 mask) argument
242 return crypto_alloc_ahash(name, type, mask);
H A Dctr.c349 if ((algt->type ^ CRYPTO_ALG_TYPE_BLKCIPHER) & algt->mask)
364 crypto_requires_sync(algt->type,
H A Dccm.c490 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask)
516 crypto_requires_sync(algt->type,
759 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask)
773 crypto_requires_sync(algt->type, algt->mask));
H A Dgcm.c714 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask)
737 crypto_requires_sync(algt->type,
977 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask)
991 crypto_requires_sync(algt->type, algt->mask));
1293 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask)
1308 crypto_requires_sync(algt->type, algt->mask));
H A Dalgif_skcipher.c545 static void *skcipher_bind(const char *name, u32 type, u32 mask) argument
547 return crypto_alloc_ablkcipher(name, type, mask);
H A Dchainiv.c312 if (!crypto_requires_sync(algt->type, algt->mask)) {
H A Dseqiv.c315 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & CRYPTO_ALG_TYPE_MASK)
/crypto/asymmetric_keys/
H A Dsignature.c35 if (key->type != &key_type_asymmetric)

Completed in 146 milliseconds

12