Lines Matching refs:alg
2260 } alg; member
2267 .alg.aead = {
2289 .alg.aead = {
2310 .alg.aead = {
2335 .alg.aead = {
2359 .alg.aead = {
2381 .alg.aead = {
2402 .alg.aead = {
2427 .alg.aead = {
2451 .alg.aead = {
2473 .alg.aead = {
2494 .alg.aead = {
2519 .alg.aead = {
2543 .alg.aead = {
2564 .alg.aead = {
2588 .alg.aead = {
2609 .alg.aead = {
2633 .alg.aead = {
2655 .alg.aead = {
2676 .alg.aead = {
2700 .alg.aead = {
2724 .alg.skcipher = {
2738 .alg.skcipher = {
2754 .alg.skcipher = {
2770 .alg.skcipher = {
2786 .alg.skcipher = {
2800 .alg.skcipher = {
2816 .alg.skcipher = {
2831 .alg.skcipher = {
2849 .alg.hash = {
2865 .alg.hash = {
2881 .alg.hash = {
2897 .alg.hash = {
2913 .alg.hash = {
2929 .alg.hash = {
2945 .alg.hash = {
2961 .alg.hash = {
2977 .alg.hash = {
2993 .alg.hash = {
3009 .alg.hash = {
3025 .alg.hash = {
3072 struct aead_alg *alg = crypto_aead_alg(tfm); in talitos_cra_init_aead() local
3076 talitos_alg = container_of(alg, struct talitos_crypto_alg, in talitos_cra_init_aead()
3077 algt.alg.aead); in talitos_cra_init_aead()
3084 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in talitos_cra_init_skcipher() local
3088 talitos_alg = container_of(alg, struct talitos_crypto_alg, in talitos_cra_init_skcipher()
3089 algt.alg.skcipher); in talitos_cra_init_skcipher()
3096 struct crypto_alg *alg = tfm->__crt_alg; in talitos_cra_init_ahash() local
3100 talitos_alg = container_of(__crypto_ahash_alg(alg), in talitos_cra_init_ahash()
3102 algt.alg.hash); in talitos_cra_init_ahash()
3150 crypto_unregister_skcipher(&t_alg->algt.alg.skcipher); in talitos_remove()
3153 crypto_unregister_aead(&t_alg->algt.alg.aead); in talitos_remove()
3156 crypto_unregister_ahash(&t_alg->algt.alg.hash); in talitos_remove()
3182 struct crypto_alg *alg; in talitos_alg_alloc() local
3193 alg = &t_alg->algt.alg.skcipher.base; in talitos_alg_alloc()
3194 alg->cra_exit = talitos_cra_exit; 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()
3200 if (!strcmp(alg->cra_name, "ctr(aes)") && !has_ftr_sec1(priv) && in talitos_alg_alloc()
3208 alg = &t_alg->algt.alg.aead.base; in talitos_alg_alloc()
3209 alg->cra_exit = talitos_cra_exit; 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()
3216 !strncmp(alg->cra_name, "authenc(hmac(sha224)", 20)) { in talitos_alg_alloc()
3222 alg = &t_alg->algt.alg.hash.halg.base; in talitos_alg_alloc()
3223 alg->cra_init = talitos_cra_init_ahash; in talitos_alg_alloc()
3224 alg->cra_exit = talitos_cra_exit; 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()
3230 if (!strncmp(alg->cra_name, "hmac", 4)) 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()
3236 !strncmp(alg->cra_name, "hmac", 4)) { in talitos_alg_alloc()
3241 (!strcmp(alg->cra_name, "sha224") || in talitos_alg_alloc()
3242 !strcmp(alg->cra_name, "hmac(sha224)"))) { in talitos_alg_alloc()
3243 t_alg->algt.alg.hash.init = ahash_init_sha224_swinit; in talitos_alg_alloc()
3244 t_alg->algt.alg.hash.digest = in talitos_alg_alloc()
3258 alg->cra_module = THIS_MODULE; in talitos_alg_alloc()
3260 alg->cra_priority = t_alg->algt.priority; in talitos_alg_alloc()
3262 alg->cra_priority = TALITOS_CRA_PRIORITY; in talitos_alg_alloc()
3264 alg->cra_alignmask = 3; in talitos_alg_alloc()
3266 alg->cra_alignmask = 0; in talitos_alg_alloc()
3267 alg->cra_ctxsize = sizeof(struct talitos_ctx); in talitos_alg_alloc()
3268 alg->cra_flags |= CRYPTO_ALG_KERN_DRIVER_ONLY; in talitos_alg_alloc()
3493 struct crypto_alg *alg = NULL; in talitos_probe() local
3506 &t_alg->algt.alg.skcipher); in talitos_probe()
3507 alg = &t_alg->algt.alg.skcipher.base; in talitos_probe()
3512 &t_alg->algt.alg.aead); in talitos_probe()
3513 alg = &t_alg->algt.alg.aead.base; in talitos_probe()
3518 &t_alg->algt.alg.hash); in talitos_probe()
3519 alg = &t_alg->algt.alg.hash.halg.base; in talitos_probe()
3524 alg->cra_driver_name); in talitos_probe()