Lines Matching refs:alg
2104 } alg; member
2111 .alg.aead = {
2131 .alg.aead = {
2153 .alg.aead = {
2173 .alg.aead = {
2195 .alg.aead = {
2215 .alg.aead = {
2237 .alg.aead = {
2257 .alg.aead = {
2279 .alg.aead = {
2299 .alg.aead = {
2321 .alg.aead = {
2341 .alg.aead = {
2363 .alg.crypto = {
2380 .alg.crypto = {
2399 .alg.hash = {
2415 .alg.hash = {
2431 .alg.hash = {
2447 .alg.hash = {
2463 .alg.hash = {
2479 .alg.hash = {
2495 .alg.hash = {
2511 .alg.hash = {
2527 .alg.hash = {
2543 .alg.hash = {
2559 .alg.hash = {
2575 .alg.hash = {
2622 struct crypto_alg *alg = tfm->__crt_alg; in talitos_cra_init() local
2626 if ((alg->cra_flags & CRYPTO_ALG_TYPE_MASK) == CRYPTO_ALG_TYPE_AHASH) in talitos_cra_init()
2627 talitos_alg = container_of(__crypto_ahash_alg(alg), in talitos_cra_init()
2629 algt.alg.hash); in talitos_cra_init()
2631 talitos_alg = container_of(alg, struct talitos_crypto_alg, in talitos_cra_init()
2632 algt.alg.crypto); in talitos_cra_init()
2639 struct aead_alg *alg = crypto_aead_alg(tfm); in talitos_cra_init_aead() local
2643 talitos_alg = container_of(alg, struct talitos_crypto_alg, in talitos_cra_init_aead()
2644 algt.alg.aead); in talitos_cra_init_aead()
2694 crypto_unregister_aead(&t_alg->algt.alg.aead); in talitos_remove()
2696 crypto_unregister_ahash(&t_alg->algt.alg.hash); in talitos_remove()
2734 struct crypto_alg *alg; in talitos_alg_alloc() local
2744 alg = &t_alg->algt.alg.crypto; in talitos_alg_alloc()
2745 alg->cra_init = talitos_cra_init; in talitos_alg_alloc()
2746 alg->cra_type = &crypto_ablkcipher_type; in talitos_alg_alloc()
2747 alg->cra_ablkcipher.setkey = ablkcipher_setkey; in talitos_alg_alloc()
2748 alg->cra_ablkcipher.encrypt = ablkcipher_encrypt; in talitos_alg_alloc()
2749 alg->cra_ablkcipher.decrypt = ablkcipher_decrypt; in talitos_alg_alloc()
2750 alg->cra_ablkcipher.geniv = "eseqiv"; in talitos_alg_alloc()
2753 alg = &t_alg->algt.alg.aead.base; in talitos_alg_alloc()
2754 t_alg->algt.alg.aead.init = talitos_cra_init_aead; in talitos_alg_alloc()
2755 t_alg->algt.alg.aead.setkey = aead_setkey; in talitos_alg_alloc()
2756 t_alg->algt.alg.aead.encrypt = aead_encrypt; in talitos_alg_alloc()
2757 t_alg->algt.alg.aead.decrypt = aead_decrypt; in talitos_alg_alloc()
2760 alg = &t_alg->algt.alg.hash.halg.base; in talitos_alg_alloc()
2761 alg->cra_init = talitos_cra_init_ahash; in talitos_alg_alloc()
2762 alg->cra_type = &crypto_ahash_type; in talitos_alg_alloc()
2763 t_alg->algt.alg.hash.init = ahash_init; in talitos_alg_alloc()
2764 t_alg->algt.alg.hash.update = ahash_update; in talitos_alg_alloc()
2765 t_alg->algt.alg.hash.final = ahash_final; in talitos_alg_alloc()
2766 t_alg->algt.alg.hash.finup = ahash_finup; in talitos_alg_alloc()
2767 t_alg->algt.alg.hash.digest = ahash_digest; in talitos_alg_alloc()
2768 t_alg->algt.alg.hash.setkey = ahash_setkey; in talitos_alg_alloc()
2769 t_alg->algt.alg.hash.import = ahash_import; in talitos_alg_alloc()
2770 t_alg->algt.alg.hash.export = ahash_export; in talitos_alg_alloc()
2773 !strncmp(alg->cra_name, "hmac", 4)) { in talitos_alg_alloc()
2778 (!strcmp(alg->cra_name, "sha224") || in talitos_alg_alloc()
2779 !strcmp(alg->cra_name, "hmac(sha224)"))) { in talitos_alg_alloc()
2780 t_alg->algt.alg.hash.init = ahash_init_sha224_swinit; in talitos_alg_alloc()
2793 alg->cra_module = THIS_MODULE; in talitos_alg_alloc()
2794 alg->cra_priority = TALITOS_CRA_PRIORITY; in talitos_alg_alloc()
2795 alg->cra_alignmask = 0; in talitos_alg_alloc()
2796 alg->cra_ctxsize = sizeof(struct talitos_ctx); in talitos_alg_alloc()
2797 alg->cra_flags |= CRYPTO_ALG_KERN_DRIVER_ONLY; in talitos_alg_alloc()
3018 struct crypto_alg *alg = NULL; in talitos_probe() local
3031 &t_alg->algt.alg.crypto); in talitos_probe()
3032 alg = &t_alg->algt.alg.crypto; in talitos_probe()
3037 &t_alg->algt.alg.aead); in talitos_probe()
3038 alg = &t_alg->algt.alg.aead.base; in talitos_probe()
3043 &t_alg->algt.alg.hash); in talitos_probe()
3044 alg = &t_alg->algt.alg.hash.halg.base; in talitos_probe()
3049 alg->cra_driver_name); in talitos_probe()