Lines Matching refs:type
82 static unsigned int crypto_aead_ctxsize(struct crypto_alg *alg, u32 type, 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
120 strncpy(raead.type, "aead", sizeof(raead.type)); in crypto_aead_report()
177 static int crypto_init_nivaead_ops(struct crypto_tfm *tfm, u32 type, u32 mask) in crypto_init_nivaead_ops() argument
205 strncpy(raead.type, "nivaead", sizeof(raead.type)); in crypto_nivaead_report()
254 const char *name, u32 type, u32 mask) in crypto_grab_nivaead() argument
259 type &= ~(CRYPTO_ALG_TYPE_MASK | CRYPTO_ALG_GENIV); in crypto_grab_nivaead()
260 type |= CRYPTO_ALG_TYPE_AEAD; in crypto_grab_nivaead()
263 alg = crypto_alg_mod_lookup(name, type, mask); in crypto_grab_nivaead()
273 struct rtattr **tb, u32 type, in aead_geniv_alloc() argument
287 if ((algt->type ^ (CRYPTO_ALG_TYPE_AEAD | CRYPTO_ALG_GENIV)) & 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()
396 static int crypto_nivaead_default(struct crypto_alg *alg, u32 type, u32 mask) in crypto_nivaead_default() argument
426 ptype.data.type = type | 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()
486 alg = crypto_alg_mod_lookup(name, type | 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
511 type &= ~(CRYPTO_ALG_TYPE_MASK | CRYPTO_ALG_GENIV); in crypto_grab_aead()
512 type |= CRYPTO_ALG_TYPE_AEAD; in crypto_grab_aead()
516 alg = crypto_lookup_aead(name, type, 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
531 type &= ~(CRYPTO_ALG_TYPE_MASK | CRYPTO_ALG_GENIV); in crypto_alloc_aead()
532 type |= CRYPTO_ALG_TYPE_AEAD; 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()