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

/linux-4.1.27/crypto/
H A Dccm.c480 struct crypto_attr_type *algt; crypto_ccm_alloc_common() local
487 algt = crypto_get_attr_type(tb); crypto_ccm_alloc_common()
488 if (IS_ERR(algt)) crypto_ccm_alloc_common()
489 return ERR_CAST(algt); crypto_ccm_alloc_common()
491 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) crypto_ccm_alloc_common()
517 crypto_requires_sync(algt->type, crypto_ccm_alloc_common()
518 algt->mask)); crypto_ccm_alloc_common()
749 struct crypto_attr_type *algt; crypto_rfc4309_alloc() local
756 algt = crypto_get_attr_type(tb); crypto_rfc4309_alloc()
757 if (IS_ERR(algt)) crypto_rfc4309_alloc()
758 return ERR_CAST(algt); crypto_rfc4309_alloc()
760 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) crypto_rfc4309_alloc()
774 crypto_requires_sync(algt->type, algt->mask)); crypto_rfc4309_alloc()
H A Dmcryptd.c264 struct crypto_attr_type *algt; mcryptd_check_internal() local
266 algt = crypto_get_attr_type(tb); mcryptd_check_internal()
267 if (IS_ERR(algt)) mcryptd_check_internal()
269 if ((algt->type & CRYPTO_ALG_INTERNAL)) mcryptd_check_internal()
271 if ((algt->mask & CRYPTO_ALG_INTERNAL)) mcryptd_check_internal()
559 struct crypto_attr_type *algt; mcryptd_create() local
561 algt = crypto_get_attr_type(tb); mcryptd_create()
562 if (IS_ERR(algt)) mcryptd_create()
563 return PTR_ERR(algt); mcryptd_create()
565 switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) { mcryptd_create()
H A Dctr.c338 struct crypto_attr_type *algt; crypto_rfc3686_alloc() local
345 algt = crypto_get_attr_type(tb); crypto_rfc3686_alloc()
346 if (IS_ERR(algt)) crypto_rfc3686_alloc()
347 return ERR_CAST(algt); crypto_rfc3686_alloc()
349 if ((algt->type ^ CRYPTO_ALG_TYPE_BLKCIPHER) & algt->mask) crypto_rfc3686_alloc()
364 crypto_requires_sync(algt->type, crypto_rfc3686_alloc()
365 algt->mask)); crypto_rfc3686_alloc()
H A Dchainiv.c289 struct crypto_attr_type *algt; chainiv_alloc() local
293 algt = crypto_get_attr_type(tb); chainiv_alloc()
294 if (IS_ERR(algt)) chainiv_alloc()
295 return ERR_CAST(algt); chainiv_alloc()
312 if (!crypto_requires_sync(algt->type, algt->mask)) { chainiv_alloc()
H A Dgcm.c702 struct crypto_attr_type *algt; crypto_gcm_alloc_common() local
710 algt = crypto_get_attr_type(tb); crypto_gcm_alloc_common()
711 if (IS_ERR(algt)) crypto_gcm_alloc_common()
712 return ERR_CAST(algt); crypto_gcm_alloc_common()
714 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) crypto_gcm_alloc_common()
737 crypto_requires_sync(algt->type, crypto_gcm_alloc_common()
738 algt->mask)); crypto_gcm_alloc_common()
966 struct crypto_attr_type *algt; crypto_rfc4106_alloc() local
973 algt = crypto_get_attr_type(tb); crypto_rfc4106_alloc()
974 if (IS_ERR(algt)) crypto_rfc4106_alloc()
975 return ERR_CAST(algt); crypto_rfc4106_alloc()
977 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) crypto_rfc4106_alloc()
991 crypto_requires_sync(algt->type, algt->mask)); crypto_rfc4106_alloc()
1281 struct crypto_attr_type *algt; crypto_rfc4543_alloc() local
1289 algt = crypto_get_attr_type(tb); crypto_rfc4543_alloc()
1290 if (IS_ERR(algt)) crypto_rfc4543_alloc()
1291 return ERR_CAST(algt); crypto_rfc4543_alloc()
1293 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) crypto_rfc4543_alloc()
1308 crypto_requires_sync(algt->type, algt->mask)); crypto_rfc4543_alloc()
H A Daead.c278 struct crypto_attr_type *algt; aead_geniv_alloc() local
283 algt = crypto_get_attr_type(tb); aead_geniv_alloc()
284 if (IS_ERR(algt)) aead_geniv_alloc()
285 return ERR_CAST(algt); aead_geniv_alloc()
287 if ((algt->type ^ (CRYPTO_ALG_TYPE_AEAD | CRYPTO_ALG_GENIV)) & aead_geniv_alloc()
288 algt->mask) aead_geniv_alloc()
302 mask |= crypto_requires_sync(algt->type, algt->mask); aead_geniv_alloc()
320 if (algt->mask & CRYPTO_ALG_GENIV) { aead_geniv_alloc()
H A Dseqiv.c315 struct crypto_attr_type *algt; seqiv_alloc() local
319 algt = crypto_get_attr_type(tb); seqiv_alloc()
320 if (IS_ERR(algt)) seqiv_alloc()
321 return ERR_CAST(algt); seqiv_alloc()
327 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & CRYPTO_ALG_TYPE_MASK) seqiv_alloc()
H A Dpcrypt.c386 struct crypto_attr_type *algt; pcrypt_alloc() local
388 algt = crypto_get_attr_type(tb); pcrypt_alloc()
389 if (IS_ERR(algt)) pcrypt_alloc()
390 return ERR_CAST(algt); pcrypt_alloc()
392 switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) { pcrypt_alloc()
394 return pcrypt_alloc_aead(tb, algt->type, algt->mask); pcrypt_alloc()
H A Dcryptd.c174 struct crypto_attr_type *algt; cryptd_check_internal() local
176 algt = crypto_get_attr_type(tb); cryptd_check_internal()
177 if (IS_ERR(algt)) cryptd_check_internal()
179 if ((algt->type & CRYPTO_ALG_INTERNAL)) cryptd_check_internal()
181 if ((algt->mask & CRYPTO_ALG_INTERNAL)) cryptd_check_internal()
805 struct crypto_attr_type *algt; cryptd_create() local
807 algt = crypto_get_attr_type(tb); cryptd_create()
808 if (IS_ERR(algt)) cryptd_create()
809 return PTR_ERR(algt); cryptd_create()
811 switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) { cryptd_create()
H A Dalgapi.c711 struct crypto_attr_type *algt; crypto_get_attr_type() local
715 if (RTA_PAYLOAD(rta) < sizeof(*algt)) crypto_get_attr_type()
720 algt = RTA_DATA(rta); crypto_get_attr_type()
722 return algt; crypto_get_attr_type()
728 struct crypto_attr_type *algt; crypto_check_attr_type() local
730 algt = crypto_get_attr_type(tb); crypto_check_attr_type()
731 if (IS_ERR(algt)) crypto_check_attr_type()
732 return PTR_ERR(algt); crypto_check_attr_type()
734 if ((algt->type ^ type) & algt->mask) crypto_check_attr_type()
H A Dblkcipher.c598 struct crypto_attr_type *algt; skcipher_geniv_alloc() local
603 algt = crypto_get_attr_type(tb); skcipher_geniv_alloc()
604 if (IS_ERR(algt)) skcipher_geniv_alloc()
605 return ERR_CAST(algt); skcipher_geniv_alloc()
607 if ((algt->type ^ (CRYPTO_ALG_TYPE_GIVCIPHER | CRYPTO_ALG_GENIV)) & skcipher_geniv_alloc()
608 algt->mask) skcipher_geniv_alloc()
622 mask |= crypto_requires_sync(algt->type, algt->mask); skcipher_geniv_alloc()
663 if (algt->mask & CRYPTO_ALG_GENIV) { skcipher_geniv_alloc()
H A Dauthenc.c598 struct crypto_attr_type *algt; crypto_authenc_alloc() local
607 algt = crypto_get_attr_type(tb); crypto_authenc_alloc()
608 if (IS_ERR(algt)) crypto_authenc_alloc()
609 return ERR_CAST(algt); crypto_authenc_alloc()
611 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) crypto_authenc_alloc()
639 crypto_requires_sync(algt->type, crypto_authenc_alloc()
640 algt->mask)); crypto_authenc_alloc()
H A Dauthencesn.c690 struct crypto_attr_type *algt; crypto_authenc_esn_alloc() local
699 algt = crypto_get_attr_type(tb); crypto_authenc_esn_alloc()
700 if (IS_ERR(algt)) crypto_authenc_esn_alloc()
701 return ERR_CAST(algt); crypto_authenc_esn_alloc()
703 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) crypto_authenc_esn_alloc()
731 crypto_requires_sync(algt->type, crypto_authenc_esn_alloc()
732 algt->mask)); crypto_authenc_esn_alloc()
/linux-4.1.27/drivers/crypto/
H A Dtalitos.c2376 struct talitos_alg_template algt; member in struct:talitos_crypto_alg
2389 algt.alg.hash); talitos_cra_init()
2392 algt.alg.crypto); talitos_cra_init()
2403 ctx->desc_hdr_template = talitos_alg->algt.desc_hdr_template; talitos_cra_init()
2464 switch (t_alg->algt.type) { talitos_remove()
2467 crypto_unregister_alg(&t_alg->algt.alg.crypto); talitos_remove()
2470 crypto_unregister_ahash(&t_alg->algt.alg.hash); talitos_remove()
2514 t_alg->algt = *template; talitos_alg_alloc()
2516 switch (t_alg->algt.type) { talitos_alg_alloc()
2518 alg = &t_alg->algt.alg.crypto; talitos_alg_alloc()
2527 alg = &t_alg->algt.alg.crypto; talitos_alg_alloc()
2538 alg = &t_alg->algt.alg.hash.halg.base; talitos_alg_alloc()
2541 t_alg->algt.alg.hash.init = ahash_init; talitos_alg_alloc()
2542 t_alg->algt.alg.hash.update = ahash_update; talitos_alg_alloc()
2543 t_alg->algt.alg.hash.final = ahash_final; talitos_alg_alloc()
2544 t_alg->algt.alg.hash.finup = ahash_finup; talitos_alg_alloc()
2545 t_alg->algt.alg.hash.digest = ahash_digest; talitos_alg_alloc()
2546 t_alg->algt.alg.hash.setkey = ahash_setkey; talitos_alg_alloc()
2556 t_alg->algt.alg.hash.init = ahash_init_sha224_swinit; talitos_alg_alloc()
2557 t_alg->algt.desc_hdr_template = talitos_alg_alloc()
2564 dev_err(dev, "unknown algorithm type %d\n", t_alg->algt.type); talitos_alg_alloc()
2764 switch (t_alg->algt.type) { talitos_probe()
2768 &t_alg->algt.alg.crypto); talitos_probe()
2769 name = t_alg->algt.alg.crypto.cra_driver_name; talitos_probe()
2773 &t_alg->algt.alg.hash); talitos_probe()
2775 t_alg->algt.alg.hash.halg.base.cra_driver_name; talitos_probe()

Completed in 149 milliseconds