Lines Matching refs:ccp_alg
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
465 ccp_alg = kzalloc(sizeof(*ccp_alg), GFP_KERNEL); in ccp_register_sha_alg()
466 if (!ccp_alg) in ccp_register_sha_alg()
469 INIT_LIST_HEAD(&ccp_alg->entry); in ccp_register_sha_alg()
471 ccp_alg->type = def->type; in ccp_register_sha_alg()
473 alg = &ccp_alg->alg; in ccp_register_sha_alg()
505 kfree(ccp_alg); in ccp_register_sha_alg()
509 list_add(&ccp_alg->entry, head); in ccp_register_sha_alg()
511 ret = ccp_register_hmac_alg(head, def, ccp_alg); in ccp_register_sha_alg()