Home
last modified time | relevance | path

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

/openbmc/linux/drivers/nvme/target/
H A Dauth.c267 struct crypto_shash *shash_tfm; in nvmet_auth_host_hash() local
282 if (IS_ERR(shash_tfm)) { in nvmet_auth_host_hash()
284 return PTR_ERR(shash_tfm); in nvmet_auth_host_hash()
290 crypto_shash_digestsize(shash_tfm)); in nvmet_auth_host_hash()
331 shash->tfm = shash_tfm; in nvmet_auth_host_hash()
372 crypto_free_shash(shash_tfm); in nvmet_auth_host_hash()
379 struct crypto_shash *shash_tfm; in nvmet_auth_ctrl_hash() local
394 if (IS_ERR(shash_tfm)) { in nvmet_auth_ctrl_hash()
396 return PTR_ERR(shash_tfm); in nvmet_auth_ctrl_hash()
440 shash->tfm = shash_tfm; in nvmet_auth_ctrl_hash()
[all …]
/openbmc/linux/drivers/nvme/host/
H A Dauth.c24 struct crypto_shash *shash_tfm; member
185 if (chap->shash_tfm) { in nvme_auth_process_dhchap_challenge()
186 crypto_free_shash(chap->shash_tfm); in nvme_auth_process_dhchap_challenge()
192 if (IS_ERR(chap->shash_tfm)) { in nvme_auth_process_dhchap_challenge()
196 chap->shash_tfm = NULL; in nvme_auth_process_dhchap_challenge()
205 crypto_free_shash(chap->shash_tfm); in nvme_auth_process_dhchap_challenge()
206 chap->shash_tfm = NULL; in nvme_auth_process_dhchap_challenge()
467 shash->tfm = chap->shash_tfm; in nvme_auth_dhchap_setup_host_response()
552 shash->tfm = chap->shash_tfm; in nvme_auth_dhchap_setup_ctrl_response()
676 if (chap->shash_tfm) in nvme_auth_free_dhchap()
[all …]
/openbmc/linux/drivers/crypto/ccree/
H A 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()