Searched refs:shash_tfm (Results 1 – 5 of 5) sorted by relevance
/linux-6.12.1/drivers/nvme/target/ |
D | auth.c | 277 struct crypto_shash *shash_tfm; in nvmet_auth_host_hash() local 292 shash_tfm = crypto_alloc_shash(hash_name, 0, 0); in nvmet_auth_host_hash() 293 if (IS_ERR(shash_tfm)) { in nvmet_auth_host_hash() 295 return PTR_ERR(shash_tfm); in nvmet_auth_host_hash() 298 if (shash_len != crypto_shash_digestsize(shash_tfm)) { in nvmet_auth_host_hash() 301 crypto_shash_digestsize(shash_tfm)); in nvmet_auth_host_hash() 313 ret = crypto_shash_setkey(shash_tfm, transformed_key->key, in nvmet_auth_host_hash() 337 shash = kzalloc(sizeof(*shash) + crypto_shash_descsize(shash_tfm), in nvmet_auth_host_hash() 343 shash->tfm = shash_tfm; in nvmet_auth_host_hash() 384 crypto_free_shash(shash_tfm); in nvmet_auth_host_hash() [all …]
|
/linux-6.12.1/drivers/nvme/host/ |
D | auth.c | 24 struct crypto_shash *shash_tfm; member 175 if (chap->hash_id == data->hashid && chap->shash_tfm && in nvme_auth_process_dhchap_challenge() 176 !strcmp(crypto_shash_alg_name(chap->shash_tfm), hmac_name) && in nvme_auth_process_dhchap_challenge() 177 crypto_shash_digestsize(chap->shash_tfm) == data->hl) { in nvme_auth_process_dhchap_challenge() 185 if (chap->shash_tfm) { in nvme_auth_process_dhchap_challenge() 186 crypto_free_shash(chap->shash_tfm); in nvme_auth_process_dhchap_challenge() 190 chap->shash_tfm = crypto_alloc_shash(hmac_name, 0, in nvme_auth_process_dhchap_challenge() 192 if (IS_ERR(chap->shash_tfm)) { in nvme_auth_process_dhchap_challenge() 195 chap->qid, hmac_name, PTR_ERR(chap->shash_tfm)); in nvme_auth_process_dhchap_challenge() 196 chap->shash_tfm = NULL; in nvme_auth_process_dhchap_challenge() [all …]
|
/linux-6.12.1/drivers/md/ |
D | dm-verity-target.c | 194 if (static_branch_unlikely(&ahash_enabled) && !v->shash_tfm) { in verity_hash() 204 desc->tfm = v->shash_tfm; in verity_hash() 1049 crypto_free_shash(v->shash_tfm); in verity_dtr() 1312 v->shash_tfm = shash; in verity_setup_hash_alg() 1349 if (v->shash_tfm) { in verity_setup_salt_and_hashstate() 1350 SHASH_DESC_ON_STACK(desc, v->shash_tfm); in verity_setup_salt_and_hashstate() 1358 crypto_shash_statesize(v->shash_tfm), GFP_KERNEL); in verity_setup_salt_and_hashstate() 1363 desc->tfm = v->shash_tfm; in verity_setup_salt_and_hashstate() 1735 if (static_branch_unlikely(&ahash_enabled) && !v->shash_tfm) in verity_preresume() 1738 root_digest.alg = crypto_shash_alg_name(v->shash_tfm); in verity_preresume()
|
D | dm-verity.h | 43 struct crypto_shash *shash_tfm; /* either this or ahash_tfm is set */ member
|
/linux-6.12.1/drivers/crypto/ccree/ |
D | cc_cipher.c | 57 struct crypto_shash *shash_tfm; member 175 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()
|