Searched refs:ccp_alg (Results 1 - 4 of 4) sorted by relevance

/linux-4.4.14/drivers/crypto/ccp/
H A Dccp-crypto-sha.c382 struct ccp_crypto_ahash_alg *ccp_alg; ccp_register_hmac_alg() local
388 ccp_alg = kzalloc(sizeof(*ccp_alg), GFP_KERNEL); ccp_register_hmac_alg()
389 if (!ccp_alg) ccp_register_hmac_alg()
393 *ccp_alg = *base_alg; ccp_register_hmac_alg()
394 INIT_LIST_HEAD(&ccp_alg->entry); ccp_register_hmac_alg()
396 strncpy(ccp_alg->child_alg, def->name, CRYPTO_MAX_ALG_NAME); ccp_register_hmac_alg()
398 alg = &ccp_alg->alg; ccp_register_hmac_alg()
414 kfree(ccp_alg); ccp_register_hmac_alg()
418 list_add(&ccp_alg->entry, head); ccp_register_hmac_alg()
426 struct ccp_crypto_ahash_alg *ccp_alg; ccp_register_sha_alg() local
432 ccp_alg = kzalloc(sizeof(*ccp_alg), GFP_KERNEL); ccp_register_sha_alg()
433 if (!ccp_alg) ccp_register_sha_alg()
436 INIT_LIST_HEAD(&ccp_alg->entry); ccp_register_sha_alg()
438 ccp_alg->type = def->type; ccp_register_sha_alg()
440 alg = &ccp_alg->alg; ccp_register_sha_alg()
472 kfree(ccp_alg); ccp_register_sha_alg()
476 list_add(&ccp_alg->entry, head); ccp_register_sha_alg()
478 ret = ccp_register_hmac_alg(head, def, ccp_alg); ccp_register_sha_alg()
H A Dccp-crypto-aes.c323 struct ccp_crypto_ablkcipher_alg *ccp_alg; ccp_register_aes_alg() local
327 ccp_alg = kzalloc(sizeof(*ccp_alg), GFP_KERNEL); ccp_register_aes_alg()
328 if (!ccp_alg) ccp_register_aes_alg()
331 INIT_LIST_HEAD(&ccp_alg->entry); ccp_register_aes_alg()
333 ccp_alg->mode = def->mode; ccp_register_aes_alg()
336 alg = &ccp_alg->alg; ccp_register_aes_alg()
348 kfree(ccp_alg); ccp_register_aes_alg()
352 list_add(&ccp_alg->entry, head); ccp_register_aes_alg()
H A Dccp-crypto-aes-xts.c228 struct ccp_crypto_ablkcipher_alg *ccp_alg; ccp_register_aes_xts_alg() local
232 ccp_alg = kzalloc(sizeof(*ccp_alg), GFP_KERNEL); ccp_register_aes_xts_alg()
233 if (!ccp_alg) ccp_register_aes_xts_alg()
236 INIT_LIST_HEAD(&ccp_alg->entry); ccp_register_aes_xts_alg()
238 alg = &ccp_alg->alg; ccp_register_aes_xts_alg()
264 kfree(ccp_alg); ccp_register_aes_xts_alg()
268 list_add(&ccp_alg->entry, head); ccp_register_aes_xts_alg()
H A Dccp-crypto-aes-cmac.c372 struct ccp_crypto_ahash_alg *ccp_alg; ccp_register_aes_cmac_algs() local
378 ccp_alg = kzalloc(sizeof(*ccp_alg), GFP_KERNEL); ccp_register_aes_cmac_algs()
379 if (!ccp_alg) ccp_register_aes_cmac_algs()
382 INIT_LIST_HEAD(&ccp_alg->entry); ccp_register_aes_cmac_algs()
383 ccp_alg->mode = CCP_AES_MODE_CMAC; ccp_register_aes_cmac_algs()
385 alg = &ccp_alg->alg; ccp_register_aes_cmac_algs()
417 kfree(ccp_alg); ccp_register_aes_cmac_algs()
421 list_add(&ccp_alg->entry, head); ccp_register_aes_cmac_algs()

Completed in 116 milliseconds