Searched refs:mask (Results 1 - 24 of 24) sorted by relevance

/crypto/
H A Dapi.c58 u32 mask)
69 if ((q->cra_flags ^ type) & mask)
74 ((struct crypto_larval *)q)->mask != mask)
107 struct crypto_larval *crypto_larval_alloc(const char *name, u32 type, u32 mask) argument
115 larval->mask = mask;
128 u32 mask)
133 larval = crypto_larval_alloc(name, type, mask);
140 alg = __crypto_alg_lookup(name, type, mask);
57 __crypto_alg_lookup(const char *name, u32 type, u32 mask) argument
127 crypto_larval_add(const char *name, u32 type, u32 mask) argument
190 crypto_alg_lookup(const char *name, u32 type, u32 mask) argument
202 crypto_larval_lookup(const char *name, u32 type, u32 mask) 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
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 Dinternal.h46 u32 mask; member in struct:crypto_larval
74 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);
93 u32 mask);
98 u32 type, u32 mask);
100 const struct crypto_type *frontend, u32 type, u32 mask);
H A Daead.c83 u32 mask)
93 static int crypto_init_aead_ops(struct crypto_tfm *tfm, u32 type, u32 mask) argument
177 static int crypto_init_nivaead_ops(struct crypto_tfm *tfm, u32 type, u32 mask) argument
254 const char *name, u32 type, u32 mask)
261 mask |= CRYPTO_ALG_TYPE_MASK | CRYPTO_ALG_GENIV;
263 alg = crypto_alg_mod_lookup(name, type, mask);
267 err = crypto_init_spawn(&spawn->base, alg, spawn->base.inst, mask);
274 u32 mask)
288 algt->mask)
302 mask |
82 crypto_aead_ctxsize(struct crypto_alg *alg, u32 type, u32 mask) argument
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 Dpcrypt.c53 cpumask_var_t mask; member in struct:padata_pcrypt::pcrypt_cpumask
82 if (cpumask_test_cpu(cpu, cpumask->mask))
85 if (!cpumask_weight(cpumask->mask))
88 cpu_index = cpu % cpumask_weight(cpumask->mask);
90 cpu = cpumask_first(cpumask->mask);
92 cpu = cpumask_next(cpu, cpumask->mask);
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
454 struct pcrypt_cpumask *mask; local
[all...]
H A Dpcompress.c36 static int crypto_pcomp_init(struct crypto_tfm *tfm, u32 type, u32 mask) argument
94 u32 mask)
96 return crypto_alloc_tfm(alg_name, &crypto_pcomp_type, type, mask);
93 crypto_alloc_pcomp(const char *alg_name, u32 type, u32 mask) argument
H A Dablkcipher.c349 u32 mask)
365 u32 mask)
447 u32 mask)
534 static int crypto_givcipher_default(struct crypto_alg *alg, u32 type, u32 mask) argument
554 mask | CRYPTO_ALG_TYPE_MASK);
567 ptype.data.mask = mask | CRYPTO_ALG_GENIV;
616 struct crypto_alg *crypto_lookup_skcipher(const char *name, u32 type, u32 mask) argument
620 alg = crypto_alg_mod_lookup(name, type, mask);
635 mask
348 crypto_ablkcipher_ctxsize(struct crypto_alg *alg, u32 type, u32 mask) argument
364 crypto_init_ablkcipher_ops(struct crypto_tfm *tfm, u32 type, u32 mask) argument
446 crypto_init_givcipher_ops(struct crypto_tfm *tfm, 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 Dcrypto_user.c320 u32 mask)
326 mask = crypto_skcipher_mask(mask);
329 alg = crypto_lookup_skcipher(name, type, mask);
346 u32 mask)
353 mask &= ~(CRYPTO_ALG_TYPE_MASK | CRYPTO_ALG_GENIV);
354 mask |= CRYPTO_ALG_TYPE_MASK;
357 alg = crypto_lookup_aead(name, type, mask);
319 crypto_user_skcipher_alg(const char *name, u32 type, u32 mask) argument
345 crypto_user_aead_alg(const char *name, u32 type, u32 mask) argument
H A Drng.c52 static int crypto_init_rng_ops(struct crypto_tfm *tfm, u32 type, u32 mask) argument
96 u32 mask)
95 crypto_rng_ctxsize(struct crypto_alg *alg, u32 type, u32 mask) argument
H A Dblkcipher.c446 u32 mask)
451 if ((mask & CRYPTO_ALG_TYPE_MASK) == CRYPTO_ALG_TYPE_MASK &&
497 static int crypto_init_blkcipher_ops(struct crypto_tfm *tfm, u32 type, u32 mask) argument
504 if ((mask & CRYPTO_ALG_TYPE_MASK) == CRYPTO_ALG_TYPE_MASK)
563 const char *name, u32 type, u32 mask)
569 mask = crypto_skcipher_mask(mask)| CRYPTO_ALG_GENIV;
571 alg = crypto_alg_mod_lookup(name, type, mask);
575 err = crypto_init_spawn(&spawn->base, alg, spawn->base.inst, mask);
582 u32 mask)
445 crypto_blkcipher_ctxsize(struct crypto_alg *alg, u32 type, u32 mask) argument
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 Dalgboss.c184 param->type.data.mask = larval->mask & ~CRYPTO_ALG_TESTED;
188 param->omask = larval->mask;
H A Dalgapi.c126 if ((spawn->alg->cra_flags ^ new_type) & spawn->mask)
276 if ((q->cra_flags ^ alg->cra_flags) & larval->mask)
569 struct crypto_instance *inst, u32 mask)
574 spawn->mask = mask;
638 u32 mask)
648 if (unlikely((alg->cra_flags ^ type) & mask))
651 tfm = __crypto_alloc_tfm(alg, type, mask);
722 if ((algt->type ^ type) & algt->mask)
749 u32 type, u32 mask)
568 crypto_init_spawn(struct crypto_spawn *spawn, struct crypto_alg *alg, struct crypto_instance *inst, u32 mask) argument
637 crypto_spawn_tfm(struct crypto_spawn *spawn, u32 type, u32 mask) argument
747 crypto_attr_alg2(struct rtattr *rta, const struct crypto_type *frontend, u32 type, u32 mask) argument
[all...]
H A Dalgif_skcipher.c509 unsigned int mask; local
512 mask = 0;
515 mask |= POLLIN | POLLRDNORM;
518 mask |= POLLOUT | POLLWRNORM | POLLWRBAND;
520 return mask;
545 static void *skcipher_bind(const char *name, u32 type, u32 mask) argument
547 return crypto_alloc_ablkcipher(name, type, mask);
H A Dshash.c68 unsigned long mask)
70 return len + (mask & ~(__alignof__(u8 __attribute__ ((aligned))) - 1));
493 static int crypto_init_shash_ops(struct crypto_tfm *tfm, u32 type, u32 mask) argument
495 switch (mask & CRYPTO_ALG_TYPE_MASK) {
504 u32 mask)
506 switch (mask & CRYPTO_ALG_TYPE_MASK) {
580 u32 mask)
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, mask);
67 shash_align_buffer_size(unsigned len, unsigned long mask) argument
503 crypto_shash_ctxsize(struct crypto_alg *alg, u32 type, u32 mask) argument
579 crypto_alloc_shash(const char *alg_name, u32 type, u32 mask) argument
[all...]
H A Dahash.c188 unsigned long mask)
190 return len + (mask & ~(crypto_tfm_ctx_alignment() - 1));
454 u32 mask)
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);
187 ahash_align_buffer_size(unsigned len, unsigned long mask) argument
453 crypto_alloc_ahash(const char *alg_name, u32 type, u32 mask) argument
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, mask);
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 Dcryptd.c778 switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) {
819 u32 type, u32 mask)
829 mask &= ~CRYPTO_ALG_TYPE_MASK;
830 mask |= (CRYPTO_ALG_GENIV | CRYPTO_ALG_TYPE_BLKCIPHER_MASK);
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 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)
365 algt->mask));
H A Dccm.c490 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask)
517 algt->mask));
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)
738 algt->mask));
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 Dchainiv.c312 if (!crypto_requires_sync(algt->type, algt->mask)) {
H A Dtcrypt.c57 static u32 mask; variable
1794 static int do_alg_test(const char *alg, u32 type, u32 mask) argument
1796 return crypto_has_alg(alg, type, mask ?: CRYPTO_ALG_TYPE_MASK) ?
1812 err = do_alg_test(alg, type, mask);
1849 module_param(mask, uint, 0);
H A Dauthenc.c598 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask)
627 algt->mask));
H A Dauthencesn.c721 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask)
750 algt->mask));

Completed in 123 milliseconds