Home
last modified time | relevance | path

Searched refs:algt (Results 1 – 14 of 14) sorted by relevance

/linux-4.1.27/crypto/
Dccm.c480 struct crypto_attr_type *algt; in crypto_ccm_alloc_common() local
487 algt = crypto_get_attr_type(tb); in crypto_ccm_alloc_common()
488 if (IS_ERR(algt)) in crypto_ccm_alloc_common()
489 return ERR_CAST(algt); in crypto_ccm_alloc_common()
491 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in crypto_ccm_alloc_common()
517 crypto_requires_sync(algt->type, in crypto_ccm_alloc_common()
518 algt->mask)); in crypto_ccm_alloc_common()
749 struct crypto_attr_type *algt; in crypto_rfc4309_alloc() local
756 algt = crypto_get_attr_type(tb); in crypto_rfc4309_alloc()
757 if (IS_ERR(algt)) in crypto_rfc4309_alloc()
[all …]
Dgcm.c702 struct crypto_attr_type *algt; in crypto_gcm_alloc_common() local
710 algt = crypto_get_attr_type(tb); in crypto_gcm_alloc_common()
711 if (IS_ERR(algt)) in crypto_gcm_alloc_common()
712 return ERR_CAST(algt); in crypto_gcm_alloc_common()
714 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in crypto_gcm_alloc_common()
737 crypto_requires_sync(algt->type, in crypto_gcm_alloc_common()
738 algt->mask)); in crypto_gcm_alloc_common()
966 struct crypto_attr_type *algt; in crypto_rfc4106_alloc() local
973 algt = crypto_get_attr_type(tb); in crypto_rfc4106_alloc()
974 if (IS_ERR(algt)) in crypto_rfc4106_alloc()
[all …]
Dchainiv.c289 struct crypto_attr_type *algt; in chainiv_alloc() local
293 algt = crypto_get_attr_type(tb); in chainiv_alloc()
294 if (IS_ERR(algt)) in chainiv_alloc()
295 return ERR_CAST(algt); in chainiv_alloc()
312 if (!crypto_requires_sync(algt->type, algt->mask)) { in chainiv_alloc()
Dmcryptd.c264 struct crypto_attr_type *algt; in mcryptd_check_internal() local
266 algt = crypto_get_attr_type(tb); in mcryptd_check_internal()
267 if (IS_ERR(algt)) in mcryptd_check_internal()
269 if ((algt->type & CRYPTO_ALG_INTERNAL)) in mcryptd_check_internal()
271 if ((algt->mask & CRYPTO_ALG_INTERNAL)) in mcryptd_check_internal()
559 struct crypto_attr_type *algt; in mcryptd_create() local
561 algt = crypto_get_attr_type(tb); in mcryptd_create()
562 if (IS_ERR(algt)) in mcryptd_create()
563 return PTR_ERR(algt); in mcryptd_create()
565 switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) { in mcryptd_create()
Dctr.c338 struct crypto_attr_type *algt; in crypto_rfc3686_alloc() local
345 algt = crypto_get_attr_type(tb); in crypto_rfc3686_alloc()
346 if (IS_ERR(algt)) in crypto_rfc3686_alloc()
347 return ERR_CAST(algt); in crypto_rfc3686_alloc()
349 if ((algt->type ^ CRYPTO_ALG_TYPE_BLKCIPHER) & algt->mask) in crypto_rfc3686_alloc()
364 crypto_requires_sync(algt->type, in crypto_rfc3686_alloc()
365 algt->mask)); in crypto_rfc3686_alloc()
Daead.c278 struct crypto_attr_type *algt; in aead_geniv_alloc() local
283 algt = crypto_get_attr_type(tb); in aead_geniv_alloc()
284 if (IS_ERR(algt)) in aead_geniv_alloc()
285 return ERR_CAST(algt); in aead_geniv_alloc()
287 if ((algt->type ^ (CRYPTO_ALG_TYPE_AEAD | CRYPTO_ALG_GENIV)) & in aead_geniv_alloc()
288 algt->mask) in aead_geniv_alloc()
302 mask |= crypto_requires_sync(algt->type, algt->mask); in aead_geniv_alloc()
320 if (algt->mask & CRYPTO_ALG_GENIV) { in aead_geniv_alloc()
Dpcrypt.c386 struct crypto_attr_type *algt; in pcrypt_alloc() local
388 algt = crypto_get_attr_type(tb); in pcrypt_alloc()
389 if (IS_ERR(algt)) in pcrypt_alloc()
390 return ERR_CAST(algt); in pcrypt_alloc()
392 switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) { in pcrypt_alloc()
394 return pcrypt_alloc_aead(tb, algt->type, algt->mask); in pcrypt_alloc()
Dseqiv.c315 struct crypto_attr_type *algt; in seqiv_alloc() local
319 algt = crypto_get_attr_type(tb); in seqiv_alloc()
320 if (IS_ERR(algt)) in seqiv_alloc()
321 return ERR_CAST(algt); in seqiv_alloc()
327 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & CRYPTO_ALG_TYPE_MASK) in seqiv_alloc()
Dalgapi.c711 struct crypto_attr_type *algt; in crypto_get_attr_type() local
715 if (RTA_PAYLOAD(rta) < sizeof(*algt)) in crypto_get_attr_type()
720 algt = RTA_DATA(rta); in crypto_get_attr_type()
722 return algt; in crypto_get_attr_type()
728 struct crypto_attr_type *algt; in crypto_check_attr_type() local
730 algt = crypto_get_attr_type(tb); in crypto_check_attr_type()
731 if (IS_ERR(algt)) in crypto_check_attr_type()
732 return PTR_ERR(algt); in crypto_check_attr_type()
734 if ((algt->type ^ type) & algt->mask) in crypto_check_attr_type()
Dblkcipher.c598 struct crypto_attr_type *algt; in skcipher_geniv_alloc() local
603 algt = crypto_get_attr_type(tb); in skcipher_geniv_alloc()
604 if (IS_ERR(algt)) in skcipher_geniv_alloc()
605 return ERR_CAST(algt); in skcipher_geniv_alloc()
607 if ((algt->type ^ (CRYPTO_ALG_TYPE_GIVCIPHER | CRYPTO_ALG_GENIV)) & in skcipher_geniv_alloc()
608 algt->mask) in skcipher_geniv_alloc()
622 mask |= crypto_requires_sync(algt->type, algt->mask); in skcipher_geniv_alloc()
663 if (algt->mask & CRYPTO_ALG_GENIV) { in skcipher_geniv_alloc()
Dcryptd.c174 struct crypto_attr_type *algt; in cryptd_check_internal() local
176 algt = crypto_get_attr_type(tb); in cryptd_check_internal()
177 if (IS_ERR(algt)) in cryptd_check_internal()
179 if ((algt->type & CRYPTO_ALG_INTERNAL)) in cryptd_check_internal()
181 if ((algt->mask & CRYPTO_ALG_INTERNAL)) in cryptd_check_internal()
805 struct crypto_attr_type *algt; in cryptd_create() local
807 algt = crypto_get_attr_type(tb); in cryptd_create()
808 if (IS_ERR(algt)) in cryptd_create()
809 return PTR_ERR(algt); in cryptd_create()
811 switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) { in cryptd_create()
Dauthenc.c598 struct crypto_attr_type *algt; in crypto_authenc_alloc() local
607 algt = crypto_get_attr_type(tb); in crypto_authenc_alloc()
608 if (IS_ERR(algt)) in crypto_authenc_alloc()
609 return ERR_CAST(algt); in crypto_authenc_alloc()
611 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in crypto_authenc_alloc()
639 crypto_requires_sync(algt->type, in crypto_authenc_alloc()
640 algt->mask)); in crypto_authenc_alloc()
Dauthencesn.c690 struct crypto_attr_type *algt; in crypto_authenc_esn_alloc() local
699 algt = crypto_get_attr_type(tb); in crypto_authenc_esn_alloc()
700 if (IS_ERR(algt)) in crypto_authenc_esn_alloc()
701 return ERR_CAST(algt); in crypto_authenc_esn_alloc()
703 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in crypto_authenc_esn_alloc()
731 crypto_requires_sync(algt->type, in crypto_authenc_esn_alloc()
732 algt->mask)); in crypto_authenc_esn_alloc()
/linux-4.1.27/drivers/crypto/
Dtalitos.c2376 struct talitos_alg_template algt; member
2389 algt.alg.hash); in talitos_cra_init()
2392 algt.alg.crypto); in talitos_cra_init()
2403 ctx->desc_hdr_template = talitos_alg->algt.desc_hdr_template; in talitos_cra_init()
2464 switch (t_alg->algt.type) { in talitos_remove()
2467 crypto_unregister_alg(&t_alg->algt.alg.crypto); in talitos_remove()
2470 crypto_unregister_ahash(&t_alg->algt.alg.hash); in talitos_remove()
2514 t_alg->algt = *template; in talitos_alg_alloc()
2516 switch (t_alg->algt.type) { in talitos_alg_alloc()
2518 alg = &t_alg->algt.alg.crypto; in talitos_alg_alloc()
[all …]