Home
last modified time | relevance | path

Searched refs:shash_tfm (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/drivers/nvme/target/ !
Dauth.c266 struct crypto_shash *shash_tfm; in nvmet_auth_host_hash() local
280 shash_tfm = crypto_alloc_shash(hash_name, 0, 0); in nvmet_auth_host_hash()
281 if (IS_ERR(shash_tfm)) { in nvmet_auth_host_hash()
283 return PTR_ERR(shash_tfm); in nvmet_auth_host_hash()
286 if (shash_len != crypto_shash_digestsize(shash_tfm)) { in nvmet_auth_host_hash()
289 crypto_shash_digestsize(shash_tfm)); in nvmet_auth_host_hash()
300 ret = crypto_shash_setkey(shash_tfm, host_response, in nvmet_auth_host_hash()
324 shash = kzalloc(sizeof(*shash) + crypto_shash_descsize(shash_tfm), in nvmet_auth_host_hash()
330 shash->tfm = shash_tfm; in nvmet_auth_host_hash()
370 crypto_free_shash(shash_tfm); in nvmet_auth_host_hash()
[all …]
/linux-6.1.9/drivers/nvme/host/ !
Dauth.c20 struct crypto_shash *shash_tfm; member
164 if (chap->hash_id == data->hashid && chap->shash_tfm && in nvme_auth_process_dhchap_challenge()
165 !strcmp(crypto_shash_alg_name(chap->shash_tfm), hmac_name) && in nvme_auth_process_dhchap_challenge()
166 crypto_shash_digestsize(chap->shash_tfm) == data->hl) { in nvme_auth_process_dhchap_challenge()
174 if (chap->shash_tfm) { in nvme_auth_process_dhchap_challenge()
175 crypto_free_shash(chap->shash_tfm); in nvme_auth_process_dhchap_challenge()
179 chap->shash_tfm = crypto_alloc_shash(hmac_name, 0, in nvme_auth_process_dhchap_challenge()
181 if (IS_ERR(chap->shash_tfm)) { in nvme_auth_process_dhchap_challenge()
184 chap->qid, hmac_name, PTR_ERR(chap->shash_tfm)); in nvme_auth_process_dhchap_challenge()
185 chap->shash_tfm = NULL; in nvme_auth_process_dhchap_challenge()
[all …]
/linux-6.1.9/drivers/crypto/ccree/ !
Dcc_cipher.c57 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()
478 err = crypto_shash_tfm_digest(ctx_p->shash_tfm, in cc_cipher_setkey()