Searched refs:shash_tfm (Results 1 – 5 of 5) sorted by relevance
| /linux/drivers/nvme/target/ |
| H A D | auth.c | 295 struct crypto_shash *shash_tfm; in nvmet_auth_host_hash() local 296 SHASH_DESC_ON_STACK(shash, shash_tfm); in nvmet_auth_host_hash() 310 shash_tfm = crypto_alloc_shash(hash_name, 0, 0); in nvmet_auth_host_hash() 311 if (IS_ERR(shash_tfm)) { in nvmet_auth_host_hash() 313 return PTR_ERR(shash_tfm); in nvmet_auth_host_hash() 316 if (shash_len != crypto_shash_digestsize(shash_tfm)) { in nvmet_auth_host_hash() 319 crypto_shash_digestsize(shash_tfm)); in nvmet_auth_host_hash() 331 ret = crypto_shash_setkey(shash_tfm, transformed_key->key, in nvmet_auth_host_hash() 355 shash->tfm = shash_tfm; in nvmet_auth_host_hash() 395 crypto_free_shash(shash_tfm); in nvmet_auth_host_hash() [all …]
|
| /linux/drivers/nvme/host/ |
| H A D | auth.c | 25 struct crypto_shash *shash_tfm; member 186 if (chap->hash_id == data->hashid && chap->shash_tfm && in nvme_auth_process_dhchap_challenge() 187 !strcmp(crypto_shash_alg_name(chap->shash_tfm), hmac_name) && in nvme_auth_process_dhchap_challenge() 188 crypto_shash_digestsize(chap->shash_tfm) == data->hl) { in nvme_auth_process_dhchap_challenge() 196 if (chap->shash_tfm) { in nvme_auth_process_dhchap_challenge() 197 crypto_free_shash(chap->shash_tfm); in nvme_auth_process_dhchap_challenge() 201 chap->shash_tfm = crypto_alloc_shash(hmac_name, 0, in nvme_auth_process_dhchap_challenge() 203 if (IS_ERR(chap->shash_tfm)) { in nvme_auth_process_dhchap_challenge() 206 chap->qid, hmac_name, PTR_ERR(chap->shash_tfm)); in nvme_auth_process_dhchap_challenge() 207 chap->shash_tfm = NULL; in nvme_auth_process_dhchap_challenge() [all …]
|
| /linux/drivers/crypto/ccree/ |
| H A 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()
|
| /linux/drivers/md/ |
| H A D | dm-verity-target.c | 138 desc->tfm = v->shash_tfm; in verity_hash() 1087 crypto_free_shash(v->shash_tfm); in verity_dtr() 1327 v->shash_tfm = shash; in verity_setup_hash_alg() 1381 SHASH_DESC_ON_STACK(desc, v->shash_tfm); in verity_setup_salt_and_hashstate() 1389 crypto_shash_statesize(v->shash_tfm), GFP_KERNEL); in verity_setup_salt_and_hashstate() 1394 desc->tfm = v->shash_tfm; in verity_setup_salt_and_hashstate() 1766 root_digest.alg = crypto_shash_alg_name(v->shash_tfm); in verity_preresume()
|
| H A D | dm-verity.h | 43 struct crypto_shash *shash_tfm; member
|