Lines Matching refs:ccp_alg
414 struct ccp_crypto_ahash_alg *ccp_alg; in ccp_register_hmac_alg() local
420 ccp_alg = kzalloc(sizeof(*ccp_alg), GFP_KERNEL); in ccp_register_hmac_alg()
421 if (!ccp_alg) in ccp_register_hmac_alg()
425 *ccp_alg = *base_alg; in ccp_register_hmac_alg()
426 INIT_LIST_HEAD(&ccp_alg->entry); in ccp_register_hmac_alg()
428 strscpy(ccp_alg->child_alg, def->name, CRYPTO_MAX_ALG_NAME); in ccp_register_hmac_alg()
430 alg = &ccp_alg->alg; in ccp_register_hmac_alg()
446 kfree(ccp_alg); in ccp_register_hmac_alg()
450 list_add(&ccp_alg->entry, head); in ccp_register_hmac_alg()
458 struct ccp_crypto_ahash_alg *ccp_alg; in ccp_register_sha_alg() local
464 ccp_alg = kzalloc(sizeof(*ccp_alg), GFP_KERNEL); in ccp_register_sha_alg()
465 if (!ccp_alg) in ccp_register_sha_alg()
468 INIT_LIST_HEAD(&ccp_alg->entry); in ccp_register_sha_alg()
470 ccp_alg->type = def->type; in ccp_register_sha_alg()
472 alg = &ccp_alg->alg; in ccp_register_sha_alg()
504 kfree(ccp_alg); in ccp_register_sha_alg()
508 list_add(&ccp_alg->entry, head); in ccp_register_sha_alg()
510 ret = ccp_register_hmac_alg(head, def, ccp_alg); in ccp_register_sha_alg()