Lines Matching refs:algt

3043 	struct talitos_alg_template algt;  member
3060 ctx->desc_hdr_template = talitos_alg->algt.desc_hdr_template; in talitos_init_common()
3075 algt.alg.aead); in talitos_cra_init_aead()
3087 algt.alg.skcipher); in talitos_cra_init_skcipher()
3100 algt.alg.hash); in talitos_cra_init_ahash()
3146 switch (t_alg->algt.type) { in talitos_remove()
3148 crypto_unregister_skcipher(&t_alg->algt.alg.skcipher); in talitos_remove()
3151 crypto_unregister_aead(&t_alg->algt.alg.aead); in talitos_remove()
3154 crypto_unregister_ahash(&t_alg->algt.alg.hash); in talitos_remove()
3189 t_alg->algt = *template; in talitos_alg_alloc()
3191 switch (t_alg->algt.type) { in talitos_alg_alloc()
3193 alg = &t_alg->algt.alg.skcipher.base; in talitos_alg_alloc()
3195 t_alg->algt.alg.skcipher.init = talitos_cra_init_skcipher; in talitos_alg_alloc()
3196 t_alg->algt.alg.skcipher.setkey = in talitos_alg_alloc()
3197 t_alg->algt.alg.skcipher.setkey ?: skcipher_setkey; in talitos_alg_alloc()
3198 t_alg->algt.alg.skcipher.encrypt = skcipher_encrypt; in talitos_alg_alloc()
3199 t_alg->algt.alg.skcipher.decrypt = skcipher_decrypt; in talitos_alg_alloc()
3201 DESC_TYPE(t_alg->algt.desc_hdr_template) != in talitos_alg_alloc()
3208 alg = &t_alg->algt.alg.aead.base; in talitos_alg_alloc()
3210 t_alg->algt.alg.aead.init = talitos_cra_init_aead; in talitos_alg_alloc()
3211 t_alg->algt.alg.aead.setkey = t_alg->algt.alg.aead.setkey ?: in talitos_alg_alloc()
3213 t_alg->algt.alg.aead.encrypt = aead_encrypt; in talitos_alg_alloc()
3214 t_alg->algt.alg.aead.decrypt = aead_decrypt; in talitos_alg_alloc()
3222 alg = &t_alg->algt.alg.hash.halg.base; in talitos_alg_alloc()
3225 t_alg->algt.alg.hash.init = ahash_init; in talitos_alg_alloc()
3226 t_alg->algt.alg.hash.update = ahash_update; in talitos_alg_alloc()
3227 t_alg->algt.alg.hash.final = ahash_final; in talitos_alg_alloc()
3228 t_alg->algt.alg.hash.finup = ahash_finup; in talitos_alg_alloc()
3229 t_alg->algt.alg.hash.digest = ahash_digest; in talitos_alg_alloc()
3231 t_alg->algt.alg.hash.setkey = ahash_setkey; in talitos_alg_alloc()
3232 t_alg->algt.alg.hash.import = ahash_import; in talitos_alg_alloc()
3233 t_alg->algt.alg.hash.export = ahash_export; in talitos_alg_alloc()
3243 t_alg->algt.alg.hash.init = ahash_init_sha224_swinit; in talitos_alg_alloc()
3244 t_alg->algt.desc_hdr_template = in talitos_alg_alloc()
3251 dev_err(dev, "unknown algorithm type %d\n", t_alg->algt.type); in talitos_alg_alloc()
3257 if (t_alg->algt.priority) in talitos_alg_alloc()
3258 alg->cra_priority = t_alg->algt.priority; in talitos_alg_alloc()
3501 switch (t_alg->algt.type) { in talitos_probe()
3504 &t_alg->algt.alg.skcipher); in talitos_probe()
3505 alg = &t_alg->algt.alg.skcipher.base; in talitos_probe()
3510 &t_alg->algt.alg.aead); in talitos_probe()
3511 alg = &t_alg->algt.alg.aead.base; in talitos_probe()
3516 &t_alg->algt.alg.hash); in talitos_probe()
3517 alg = &t_alg->algt.alg.hash.halg.base; in talitos_probe()