Lines Matching refs:alg
1971 } alg; member
1978 .alg.crypto = {
1997 .alg.crypto = {
2017 .alg.crypto = {
2036 .alg.crypto = {
2056 .alg.crypto = {
2075 .alg.crypto = {
2095 .alg.crypto = {
2114 .alg.crypto = {
2134 .alg.crypto = {
2153 .alg.crypto = {
2173 .alg.crypto = {
2192 .alg.crypto = {
2213 .alg.crypto = {
2230 .alg.crypto = {
2249 .alg.hash = {
2264 .alg.hash = {
2279 .alg.hash = {
2294 .alg.hash = {
2309 .alg.hash = {
2324 .alg.hash = {
2339 .alg.hash = {
2354 .alg.hash = {
2369 .alg.hash = {
2384 .alg.hash = {
2399 .alg.hash = {
2414 .alg.hash = {
2438 struct crypto_alg *alg = tfm->__crt_alg; in talitos_cra_init() local
2443 if ((alg->cra_flags & CRYPTO_ALG_TYPE_MASK) == CRYPTO_ALG_TYPE_AHASH) in talitos_cra_init()
2444 talitos_alg = container_of(__crypto_ahash_alg(alg), in talitos_cra_init()
2446 algt.alg.hash); in talitos_cra_init()
2448 talitos_alg = container_of(alg, struct talitos_crypto_alg, in talitos_cra_init()
2449 algt.alg.crypto); in talitos_cra_init()
2524 crypto_unregister_alg(&t_alg->algt.alg.crypto); in talitos_remove()
2527 crypto_unregister_ahash(&t_alg->algt.alg.hash); in talitos_remove()
2567 struct crypto_alg *alg; in talitos_alg_alloc() local
2577 alg = &t_alg->algt.alg.crypto; in talitos_alg_alloc()
2578 alg->cra_init = talitos_cra_init; in talitos_alg_alloc()
2579 alg->cra_type = &crypto_ablkcipher_type; in talitos_alg_alloc()
2580 alg->cra_ablkcipher.setkey = ablkcipher_setkey; in talitos_alg_alloc()
2581 alg->cra_ablkcipher.encrypt = ablkcipher_encrypt; in talitos_alg_alloc()
2582 alg->cra_ablkcipher.decrypt = ablkcipher_decrypt; in talitos_alg_alloc()
2583 alg->cra_ablkcipher.geniv = "eseqiv"; in talitos_alg_alloc()
2586 alg = &t_alg->algt.alg.crypto; in talitos_alg_alloc()
2587 alg->cra_init = talitos_cra_init_aead; in talitos_alg_alloc()
2588 alg->cra_type = &crypto_aead_type; in talitos_alg_alloc()
2589 alg->cra_aead.setkey = aead_setkey; in talitos_alg_alloc()
2590 alg->cra_aead.setauthsize = aead_setauthsize; in talitos_alg_alloc()
2591 alg->cra_aead.encrypt = aead_encrypt; in talitos_alg_alloc()
2592 alg->cra_aead.decrypt = aead_decrypt; in talitos_alg_alloc()
2593 alg->cra_aead.givencrypt = aead_givencrypt; in talitos_alg_alloc()
2594 alg->cra_aead.geniv = "<built-in>"; in talitos_alg_alloc()
2597 alg = &t_alg->algt.alg.hash.halg.base; in talitos_alg_alloc()
2598 alg->cra_init = talitos_cra_init_ahash; in talitos_alg_alloc()
2599 alg->cra_type = &crypto_ahash_type; in talitos_alg_alloc()
2600 t_alg->algt.alg.hash.init = ahash_init; in talitos_alg_alloc()
2601 t_alg->algt.alg.hash.update = ahash_update; in talitos_alg_alloc()
2602 t_alg->algt.alg.hash.final = ahash_final; in talitos_alg_alloc()
2603 t_alg->algt.alg.hash.finup = ahash_finup; in talitos_alg_alloc()
2604 t_alg->algt.alg.hash.digest = ahash_digest; in talitos_alg_alloc()
2605 t_alg->algt.alg.hash.setkey = ahash_setkey; in talitos_alg_alloc()
2608 !strncmp(alg->cra_name, "hmac", 4)) { in talitos_alg_alloc()
2613 (!strcmp(alg->cra_name, "sha224") || in talitos_alg_alloc()
2614 !strcmp(alg->cra_name, "hmac(sha224)"))) { in talitos_alg_alloc()
2615 t_alg->algt.alg.hash.init = ahash_init_sha224_swinit; in talitos_alg_alloc()
2627 alg->cra_module = THIS_MODULE; in talitos_alg_alloc()
2628 alg->cra_priority = TALITOS_CRA_PRIORITY; in talitos_alg_alloc()
2629 alg->cra_alignmask = 0; in talitos_alg_alloc()
2630 alg->cra_ctxsize = sizeof(struct talitos_ctx); in talitos_alg_alloc()
2631 alg->cra_flags |= CRYPTO_ALG_KERN_DRIVER_ONLY; in talitos_alg_alloc()
2831 &t_alg->algt.alg.crypto); in talitos_probe()
2832 name = t_alg->algt.alg.crypto.cra_driver_name; in talitos_probe()
2836 &t_alg->algt.alg.hash); in talitos_probe()
2838 t_alg->algt.alg.hash.halg.base.cra_driver_name; in talitos_probe()