Searched refs:t_alg (Results 1 – 8 of 8) sorted by relevance
/linux/drivers/crypto/ |
H A D | talitos.c | 3144 struct talitos_crypto_alg *t_alg, *n; in talitos_remove() local 3147 list_for_each_entry_safe(t_alg, n, &priv->alg_list, entry) { in talitos_remove() 3148 switch (t_alg->algt.type) { in talitos_remove() 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() 3159 list_del(&t_alg->entry); in talitos_remove() 3181 struct talitos_crypto_alg *t_alg; in talitos_alg_alloc() local 3184 t_alg = devm_kzalloc(dev, sizeof(struct talitos_crypto_alg), in talitos_alg_alloc() 3186 if (!t_alg) in talitos_alg_alloc() [all …]
|
/linux/drivers/crypto/ccree/ |
H A D | cc_cipher.c | 1378 struct cc_crypto_alg *t_alg; in cc_create_alg() local 1381 t_alg = devm_kzalloc(dev, sizeof(*t_alg), GFP_KERNEL); in cc_create_alg() 1382 if (!t_alg) in cc_create_alg() 1385 alg = &t_alg->skcipher_alg; in cc_create_alg() 1406 t_alg->cipher_mode = tmpl->cipher_mode; in cc_create_alg() 1407 t_alg->flow_mode = tmpl->flow_mode; in cc_create_alg() 1409 return t_alg; in cc_create_alg() 1414 struct cc_crypto_alg *t_alg, *n; in cc_cipher_free() local 1417 list_for_each_entry_safe(t_alg, n, &drvdata->alg_list, entry) { in cc_cipher_free() 1418 crypto_unregister_skcipher(&t_alg->skcipher_alg); in cc_cipher_free() [all …]
|
H A D | cc_aead.c | 2563 struct cc_crypto_alg *t_alg; in cc_create_aead_alg() local 2566 t_alg = devm_kzalloc(dev, sizeof(*t_alg), GFP_KERNEL); in cc_create_aead_alg() 2567 if (!t_alg) in cc_create_aead_alg() 2588 t_alg->aead_alg = *alg; in cc_create_aead_alg() 2590 t_alg->cipher_mode = tmpl->cipher_mode; in cc_create_aead_alg() 2591 t_alg->flow_mode = tmpl->flow_mode; in cc_create_aead_alg() 2592 t_alg->auth_mode = tmpl->auth_mode; in cc_create_aead_alg() 2594 return t_alg; in cc_create_aead_alg() 2599 struct cc_crypto_alg *t_alg, *n; in cc_aead_free() local 2603 list_for_each_entry_safe(t_alg, n, &aead_handle->aead_list, entry) { in cc_aead_free() [all …]
|
H A D | cc_hash.c | 1999 struct cc_hash_alg *t_alg; in cc_hash_alloc() local 2009 t_alg = cc_alloc_hash_alg(&driver_hash[alg], dev, true); in cc_hash_alloc() 2010 if (IS_ERR(t_alg)) { in cc_hash_alloc() 2011 rc = PTR_ERR(t_alg); in cc_hash_alloc() 2016 t_alg->drvdata = drvdata; in cc_hash_alloc() 2018 rc = crypto_register_ahash(&t_alg->ahash_alg); in cc_hash_alloc() 2025 list_add_tail(&t_alg->entry, &hash_handle->hash_list); in cc_hash_alloc() 2032 t_alg = cc_alloc_hash_alg(&driver_hash[alg], dev, false); in cc_hash_alloc() 2033 if (IS_ERR(t_alg)) { in cc_hash_alloc() 2034 rc = PTR_ERR(t_alg); in cc_hash_alloc() [all …]
|
/linux/drivers/crypto/caam/ |
H A D | caamhash.c | 1887 struct caam_hash_alg *t_alg, *n; in caam_algapi_hash_exit() local 1892 list_for_each_entry_safe(t_alg, n, &hash_list, entry) { in caam_algapi_hash_exit() 1893 crypto_engine_unregister_ahash(&t_alg->ahash_alg); in caam_algapi_hash_exit() 1894 list_del(&t_alg->entry); in caam_algapi_hash_exit() 1895 kfree(t_alg); in caam_algapi_hash_exit() 1903 struct caam_hash_alg *t_alg; in caam_hash_alloc() local 1907 t_alg = kzalloc(sizeof(*t_alg), GFP_KERNEL); in caam_hash_alloc() 1908 if (!t_alg) in caam_hash_alloc() 1911 t_alg->ahash_alg.base = template->template_ahash; in caam_hash_alloc() 1912 halg = &t_alg->ahash_alg.base; in caam_hash_alloc() [all …]
|
H A D | caamalg_qi.c | 2578 struct caam_aead_alg *t_alg = driver_aeads + i; in caam_qi_algapi_exit() local 2580 if (t_alg->registered) in caam_qi_algapi_exit() 2581 crypto_unregister_aead(&t_alg->aead); in caam_qi_algapi_exit() 2585 struct caam_skcipher_alg *t_alg = driver_algs + i; in caam_qi_algapi_exit() local 2587 if (t_alg->registered) in caam_qi_algapi_exit() 2588 crypto_unregister_skcipher(&t_alg->skcipher); in caam_qi_algapi_exit() 2592 static void caam_skcipher_alg_init(struct caam_skcipher_alg *t_alg) in caam_skcipher_alg_init() argument 2594 struct skcipher_alg *alg = &t_alg->skcipher; in caam_skcipher_alg_init() 2606 static void caam_aead_alg_init(struct caam_aead_alg *t_alg) in caam_aead_alg_init() argument 2608 struct aead_alg *alg = &t_alg->aead; in caam_aead_alg_init() [all …]
|
H A D | caamalg_qi2.c | 3010 static void caam_skcipher_alg_init(struct caam_skcipher_alg *t_alg) in caam_skcipher_alg_init() argument 3012 struct skcipher_alg *alg = &t_alg->skcipher; in caam_skcipher_alg_init() 3024 static void caam_aead_alg_init(struct caam_aead_alg *t_alg) in caam_aead_alg_init() argument 3026 struct aead_alg *alg = &t_alg->aead; in caam_aead_alg_init() 4633 struct caam_hash_alg *t_alg; in caam_hash_alloc() local 4637 t_alg = kzalloc(sizeof(*t_alg), GFP_KERNEL); in caam_hash_alloc() 4638 if (!t_alg) in caam_hash_alloc() 4641 t_alg->ahash_alg = template->template_ahash; in caam_hash_alloc() 4642 halg = &t_alg->ahash_alg; in caam_hash_alloc() 4650 t_alg->is_hmac = true; in caam_hash_alloc() [all …]
|
H A D | caamalg.c | 3695 struct caam_aead_alg *t_alg = driver_aeads + i; in caam_algapi_exit() local 3697 if (t_alg->registered) in caam_algapi_exit() 3698 crypto_engine_unregister_aead(&t_alg->aead); in caam_algapi_exit() 3702 struct caam_skcipher_alg *t_alg = driver_algs + i; in caam_algapi_exit() local 3704 if (t_alg->registered) in caam_algapi_exit() 3705 crypto_engine_unregister_skcipher(&t_alg->skcipher); in caam_algapi_exit() 3709 static void caam_skcipher_alg_init(struct caam_skcipher_alg *t_alg) in caam_skcipher_alg_init() argument 3711 struct skcipher_alg *alg = &t_alg->skcipher.base; in caam_skcipher_alg_init() 3723 static void caam_aead_alg_init(struct caam_aead_alg *t_alg) in caam_aead_alg_init() argument 3725 struct aead_alg *alg = &t_alg->aead.base; in caam_aead_alg_init() [all …]
|