Lines Matching refs:alg
1914 } alg; member
1921 .alg.crypto = {
1940 .alg.crypto = {
1960 .alg.crypto = {
1979 .alg.crypto = {
1999 .alg.crypto = {
2018 .alg.crypto = {
2038 .alg.crypto = {
2057 .alg.crypto = {
2077 .alg.crypto = {
2096 .alg.crypto = {
2116 .alg.crypto = {
2135 .alg.crypto = {
2156 .alg.crypto = {
2173 .alg.crypto = {
2192 .alg.hash = {
2207 .alg.hash = {
2222 .alg.hash = {
2237 .alg.hash = {
2252 .alg.hash = {
2267 .alg.hash = {
2282 .alg.hash = {
2297 .alg.hash = {
2312 .alg.hash = {
2327 .alg.hash = {
2342 .alg.hash = {
2357 .alg.hash = {
2381 struct crypto_alg *alg = tfm->__crt_alg; in talitos_cra_init() local
2386 if ((alg->cra_flags & CRYPTO_ALG_TYPE_MASK) == CRYPTO_ALG_TYPE_AHASH) in talitos_cra_init()
2387 talitos_alg = container_of(__crypto_ahash_alg(alg), in talitos_cra_init()
2389 algt.alg.hash); in talitos_cra_init()
2391 talitos_alg = container_of(alg, struct talitos_crypto_alg, in talitos_cra_init()
2392 algt.alg.crypto); in talitos_cra_init()
2467 crypto_unregister_alg(&t_alg->algt.alg.crypto); in talitos_remove()
2470 crypto_unregister_ahash(&t_alg->algt.alg.hash); in talitos_remove()
2508 struct crypto_alg *alg; in talitos_alg_alloc() local
2518 alg = &t_alg->algt.alg.crypto; in talitos_alg_alloc()
2519 alg->cra_init = talitos_cra_init; in talitos_alg_alloc()
2520 alg->cra_type = &crypto_ablkcipher_type; in talitos_alg_alloc()
2521 alg->cra_ablkcipher.setkey = ablkcipher_setkey; in talitos_alg_alloc()
2522 alg->cra_ablkcipher.encrypt = ablkcipher_encrypt; in talitos_alg_alloc()
2523 alg->cra_ablkcipher.decrypt = ablkcipher_decrypt; in talitos_alg_alloc()
2524 alg->cra_ablkcipher.geniv = "eseqiv"; in talitos_alg_alloc()
2527 alg = &t_alg->algt.alg.crypto; in talitos_alg_alloc()
2528 alg->cra_init = talitos_cra_init_aead; in talitos_alg_alloc()
2529 alg->cra_type = &crypto_aead_type; in talitos_alg_alloc()
2530 alg->cra_aead.setkey = aead_setkey; in talitos_alg_alloc()
2531 alg->cra_aead.setauthsize = aead_setauthsize; in talitos_alg_alloc()
2532 alg->cra_aead.encrypt = aead_encrypt; in talitos_alg_alloc()
2533 alg->cra_aead.decrypt = aead_decrypt; in talitos_alg_alloc()
2534 alg->cra_aead.givencrypt = aead_givencrypt; in talitos_alg_alloc()
2535 alg->cra_aead.geniv = "<built-in>"; in talitos_alg_alloc()
2538 alg = &t_alg->algt.alg.hash.halg.base; in talitos_alg_alloc()
2539 alg->cra_init = talitos_cra_init_ahash; in talitos_alg_alloc()
2540 alg->cra_type = &crypto_ahash_type; in talitos_alg_alloc()
2541 t_alg->algt.alg.hash.init = ahash_init; in talitos_alg_alloc()
2542 t_alg->algt.alg.hash.update = ahash_update; in talitos_alg_alloc()
2543 t_alg->algt.alg.hash.final = ahash_final; in talitos_alg_alloc()
2544 t_alg->algt.alg.hash.finup = ahash_finup; in talitos_alg_alloc()
2545 t_alg->algt.alg.hash.digest = ahash_digest; in talitos_alg_alloc()
2546 t_alg->algt.alg.hash.setkey = ahash_setkey; in talitos_alg_alloc()
2549 !strncmp(alg->cra_name, "hmac", 4)) { in talitos_alg_alloc()
2554 (!strcmp(alg->cra_name, "sha224") || in talitos_alg_alloc()
2555 !strcmp(alg->cra_name, "hmac(sha224)"))) { in talitos_alg_alloc()
2556 t_alg->algt.alg.hash.init = ahash_init_sha224_swinit; in talitos_alg_alloc()
2569 alg->cra_module = THIS_MODULE; in talitos_alg_alloc()
2570 alg->cra_priority = TALITOS_CRA_PRIORITY; in talitos_alg_alloc()
2571 alg->cra_alignmask = 0; in talitos_alg_alloc()
2572 alg->cra_ctxsize = sizeof(struct talitos_ctx); in talitos_alg_alloc()
2573 alg->cra_flags |= CRYPTO_ALG_KERN_DRIVER_ONLY; in talitos_alg_alloc()
2768 &t_alg->algt.alg.crypto); in talitos_probe()
2769 name = t_alg->algt.alg.crypto.cra_driver_name; in talitos_probe()
2773 &t_alg->algt.alg.hash); in talitos_probe()
2775 t_alg->algt.alg.hash.halg.base.cra_driver_name; in talitos_probe()