Lines Matching refs:mask

83 					u32 mask)  in crypto_aead_ctxsize()  argument
93 static int crypto_init_aead_ops(struct crypto_tfm *tfm, u32 type, u32 mask) in crypto_init_aead_ops() argument
177 static int crypto_init_nivaead_ops(struct crypto_tfm *tfm, u32 type, u32 mask) in crypto_init_nivaead_ops() argument
254 const char *name, u32 type, u32 mask) in crypto_grab_nivaead() argument
261 mask |= CRYPTO_ALG_TYPE_MASK | CRYPTO_ALG_GENIV; in crypto_grab_nivaead()
263 alg = crypto_alg_mod_lookup(name, type, mask); in crypto_grab_nivaead()
267 err = crypto_init_spawn(&spawn->base, alg, spawn->base.inst, mask); in crypto_grab_nivaead()
274 u32 mask) in aead_geniv_alloc() argument
288 algt->mask) in aead_geniv_alloc()
302 mask |= crypto_requires_sync(algt->type, algt->mask); in aead_geniv_alloc()
305 err = crypto_grab_nivaead(spawn, name, type, mask); in aead_geniv_alloc()
320 if (algt->mask & CRYPTO_ALG_GENIV) { in aead_geniv_alloc()
396 static int crypto_nivaead_default(struct crypto_alg *alg, u32 type, u32 mask) in crypto_nivaead_default() argument
428 ptype.data.mask = mask | CRYPTO_ALG_GENIV; in crypto_nivaead_default()
471 struct crypto_alg *crypto_lookup_aead(const char *name, u32 type, u32 mask) in crypto_lookup_aead() argument
475 alg = crypto_alg_mod_lookup(name, type, mask); in crypto_lookup_aead()
487 mask & ~CRYPTO_ALG_TESTED); in crypto_lookup_aead()
492 if ((alg->cra_flags ^ type ^ ~mask) & CRYPTO_ALG_TESTED) { in crypto_lookup_aead()
501 return ERR_PTR(crypto_nivaead_default(alg, type, mask)); in crypto_lookup_aead()
506 u32 type, u32 mask) in crypto_grab_aead() argument
513 mask &= ~(CRYPTO_ALG_TYPE_MASK | CRYPTO_ALG_GENIV); in crypto_grab_aead()
514 mask |= CRYPTO_ALG_TYPE_MASK; in crypto_grab_aead()
516 alg = crypto_lookup_aead(name, type, mask); in crypto_grab_aead()
520 err = crypto_init_spawn(&spawn->base, alg, spawn->base.inst, mask); in crypto_grab_aead()
526 struct crypto_aead *crypto_alloc_aead(const char *alg_name, u32 type, u32 mask) in crypto_alloc_aead() argument
533 mask &= ~(CRYPTO_ALG_TYPE_MASK | CRYPTO_ALG_GENIV); in crypto_alloc_aead()
534 mask |= CRYPTO_ALG_TYPE_MASK; in crypto_alloc_aead()
539 alg = crypto_lookup_aead(alg_name, type, mask); in crypto_alloc_aead()
545 tfm = __crypto_alloc_tfm(alg, type, mask); in crypto_alloc_aead()