Searched refs:ccp_alg (Results 1 – 6 of 6) sorted by relevance
/linux-6.1.9/drivers/crypto/ccp/ |
D | ccp-crypto-sha.c | 415 struct ccp_crypto_ahash_alg *ccp_alg; in ccp_register_hmac_alg() local 421 ccp_alg = kzalloc(sizeof(*ccp_alg), GFP_KERNEL); in ccp_register_hmac_alg() 422 if (!ccp_alg) in ccp_register_hmac_alg() 426 *ccp_alg = *base_alg; in ccp_register_hmac_alg() 427 INIT_LIST_HEAD(&ccp_alg->entry); in ccp_register_hmac_alg() 429 strscpy(ccp_alg->child_alg, def->name, CRYPTO_MAX_ALG_NAME); in ccp_register_hmac_alg() 431 alg = &ccp_alg->alg; in ccp_register_hmac_alg() 447 kfree(ccp_alg); in ccp_register_hmac_alg() 451 list_add(&ccp_alg->entry, head); in ccp_register_hmac_alg() 459 struct ccp_crypto_ahash_alg *ccp_alg; in ccp_register_sha_alg() local [all …]
|
D | ccp-crypto-des3.c | 179 struct ccp_crypto_skcipher_alg *ccp_alg; in ccp_register_des3_alg() local 183 ccp_alg = kzalloc(sizeof(*ccp_alg), GFP_KERNEL); in ccp_register_des3_alg() 184 if (!ccp_alg) in ccp_register_des3_alg() 187 INIT_LIST_HEAD(&ccp_alg->entry); in ccp_register_des3_alg() 189 ccp_alg->mode = def->mode; in ccp_register_des3_alg() 192 alg = &ccp_alg->alg; in ccp_register_des3_alg() 204 kfree(ccp_alg); in ccp_register_des3_alg() 208 list_add(&ccp_alg->entry, head); in ccp_register_des3_alg()
|
D | ccp-crypto-aes-xts.c | 229 struct ccp_crypto_skcipher_alg *ccp_alg; in ccp_register_aes_xts_alg() local 233 ccp_alg = kzalloc(sizeof(*ccp_alg), GFP_KERNEL); in ccp_register_aes_xts_alg() 234 if (!ccp_alg) in ccp_register_aes_xts_alg() 237 INIT_LIST_HEAD(&ccp_alg->entry); in ccp_register_aes_xts_alg() 239 alg = &ccp_alg->alg; in ccp_register_aes_xts_alg() 266 kfree(ccp_alg); in ccp_register_aes_xts_alg() 270 list_add(&ccp_alg->entry, head); in ccp_register_aes_xts_alg()
|
D | ccp-crypto-aes.c | 309 struct ccp_crypto_skcipher_alg *ccp_alg; in ccp_register_aes_alg() local 313 ccp_alg = kzalloc(sizeof(*ccp_alg), GFP_KERNEL); in ccp_register_aes_alg() 314 if (!ccp_alg) in ccp_register_aes_alg() 317 INIT_LIST_HEAD(&ccp_alg->entry); in ccp_register_aes_alg() 319 ccp_alg->mode = def->mode; in ccp_register_aes_alg() 322 alg = &ccp_alg->alg; in ccp_register_aes_alg() 334 kfree(ccp_alg); in ccp_register_aes_alg() 338 list_add(&ccp_alg->entry, head); in ccp_register_aes_alg()
|
D | ccp-crypto-rsa.c | 248 struct ccp_crypto_akcipher_alg *ccp_alg; in ccp_register_rsa_alg() local 252 ccp_alg = kzalloc(sizeof(*ccp_alg), GFP_KERNEL); in ccp_register_rsa_alg() 253 if (!ccp_alg) in ccp_register_rsa_alg() 256 INIT_LIST_HEAD(&ccp_alg->entry); in ccp_register_rsa_alg() 258 alg = &ccp_alg->alg; in ccp_register_rsa_alg() 267 kfree(ccp_alg); in ccp_register_rsa_alg() 271 list_add(&ccp_alg->entry, head); in ccp_register_rsa_alg()
|
D | ccp-crypto-aes-cmac.c | 350 struct ccp_crypto_ahash_alg *ccp_alg; in ccp_register_aes_cmac_algs() local 356 ccp_alg = kzalloc(sizeof(*ccp_alg), GFP_KERNEL); in ccp_register_aes_cmac_algs() 357 if (!ccp_alg) in ccp_register_aes_cmac_algs() 360 INIT_LIST_HEAD(&ccp_alg->entry); in ccp_register_aes_cmac_algs() 361 ccp_alg->mode = CCP_AES_MODE_CMAC; in ccp_register_aes_cmac_algs() 363 alg = &ccp_alg->alg; in ccp_register_aes_cmac_algs() 394 kfree(ccp_alg); in ccp_register_aes_cmac_algs() 398 list_add(&ccp_alg->entry, head); in ccp_register_aes_cmac_algs()
|