Home
last modified time | relevance | path

Searched refs:ccp_alg (Results 1 – 6 of 6) sorted by relevance

/drivers/crypto/ccp/
Dccp-crypto-sha.c415 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 …]
Dccp-crypto-des3.c182 struct ccp_crypto_skcipher_alg *ccp_alg; in ccp_register_des3_alg() local
186 ccp_alg = kzalloc(sizeof(*ccp_alg), GFP_KERNEL); in ccp_register_des3_alg()
187 if (!ccp_alg) in ccp_register_des3_alg()
190 INIT_LIST_HEAD(&ccp_alg->entry); in ccp_register_des3_alg()
192 ccp_alg->mode = def->mode; in ccp_register_des3_alg()
195 alg = &ccp_alg->alg; in ccp_register_des3_alg()
207 kfree(ccp_alg); in ccp_register_des3_alg()
211 list_add(&ccp_alg->entry, head); in ccp_register_des3_alg()
Dccp-crypto-aes-xts.c229 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()
Dccp-crypto-aes.c312 struct ccp_crypto_skcipher_alg *ccp_alg; in ccp_register_aes_alg() local
316 ccp_alg = kzalloc(sizeof(*ccp_alg), GFP_KERNEL); in ccp_register_aes_alg()
317 if (!ccp_alg) in ccp_register_aes_alg()
320 INIT_LIST_HEAD(&ccp_alg->entry); in ccp_register_aes_alg()
322 ccp_alg->mode = def->mode; in ccp_register_aes_alg()
325 alg = &ccp_alg->alg; in ccp_register_aes_alg()
337 kfree(ccp_alg); in ccp_register_aes_alg()
341 list_add(&ccp_alg->entry, head); in ccp_register_aes_alg()
Dccp-crypto-rsa.c248 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()
Dccp-crypto-aes-cmac.c350 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()