Searched refs:shash_tfm (Results 1 – 5 of 5) sorted by relevance
292 struct crypto_shash *shash_tfm; in nvmet_auth_host_hash() local308 if (IS_ERR(shash_tfm)) { in nvmet_auth_host_hash()310 return PTR_ERR(shash_tfm); in nvmet_auth_host_hash()316 crypto_shash_digestsize(shash_tfm)); in nvmet_auth_host_hash()358 shash->tfm = shash_tfm; in nvmet_auth_host_hash()399 crypto_free_shash(shash_tfm); in nvmet_auth_host_hash()406 struct crypto_shash *shash_tfm; in nvmet_auth_ctrl_hash() local422 if (IS_ERR(shash_tfm)) { in nvmet_auth_ctrl_hash()424 return PTR_ERR(shash_tfm); in nvmet_auth_ctrl_hash()468 shash->tfm = shash_tfm; in nvmet_auth_ctrl_hash()[all …]
25 struct crypto_shash *shash_tfm; member192 if (chap->shash_tfm) { in nvme_auth_process_dhchap_challenge()193 crypto_free_shash(chap->shash_tfm); in nvme_auth_process_dhchap_challenge()199 if (IS_ERR(chap->shash_tfm)) { in nvme_auth_process_dhchap_challenge()203 chap->shash_tfm = NULL; in nvme_auth_process_dhchap_challenge()212 crypto_free_shash(chap->shash_tfm); in nvme_auth_process_dhchap_challenge()213 chap->shash_tfm = NULL; in nvme_auth_process_dhchap_challenge()475 shash->tfm = chap->shash_tfm; in nvme_auth_dhchap_setup_host_response()560 shash->tfm = chap->shash_tfm; in nvme_auth_dhchap_setup_ctrl_response()685 if (chap->shash_tfm) in nvme_auth_free_dhchap()[all …]
204 if (static_branch_unlikely(&ahash_enabled) && !v->shash_tfm) { in verity_hash()214 desc->tfm = v->shash_tfm; in verity_hash()1096 crypto_free_shash(v->shash_tfm); in verity_dtr()1359 v->shash_tfm = shash; in verity_setup_hash_alg()1396 if (v->shash_tfm) { in verity_setup_salt_and_hashstate()1397 SHASH_DESC_ON_STACK(desc, v->shash_tfm); in verity_setup_salt_and_hashstate()1405 crypto_shash_statesize(v->shash_tfm), GFP_KERNEL); in verity_setup_salt_and_hashstate()1410 desc->tfm = v->shash_tfm; in verity_setup_salt_and_hashstate()1782 if (static_branch_unlikely(&ahash_enabled) && !v->shash_tfm) in verity_preresume()1785 root_digest.alg = crypto_shash_alg_name(v->shash_tfm); in verity_preresume()
43 struct crypto_shash *shash_tfm; /* either this or ahash_tfm is set */ member
57 struct crypto_shash *shash_tfm; member175 ctx_p->shash_tfm = crypto_alloc_shash("sha256", 0, 0); in cc_cipher_init()176 if (IS_ERR(ctx_p->shash_tfm)) { in cc_cipher_init()178 return PTR_ERR(ctx_p->shash_tfm); in cc_cipher_init()227 crypto_free_shash(ctx_p->shash_tfm); in cc_cipher_init()247 crypto_free_shash(ctx_p->shash_tfm); in cc_cipher_exit()248 ctx_p->shash_tfm = NULL; in cc_cipher_exit()472 err = crypto_shash_tfm_digest(ctx_p->shash_tfm, in cc_cipher_setkey()