Home
last modified time | relevance | path

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

/linux/drivers/nvme/target/
H A Dauth.c282 struct nvme_dhchap_key *transformed_key; in nvmet_auth_host_hash() local
306 transformed_key = nvme_auth_transform_key(ctrl->host_key, in nvmet_auth_host_hash()
308 if (IS_ERR(transformed_key)) { in nvmet_auth_host_hash()
309 ret = PTR_ERR(transformed_key); in nvmet_auth_host_hash()
313 ret = crypto_shash_setkey(shash_tfm, transformed_key->key, in nvmet_auth_host_hash()
314 transformed_key->len); in nvmet_auth_host_hash()
382 nvme_auth_free_key(transformed_key); in nvmet_auth_host_hash()
396 struct nvme_dhchap_key *transformed_key; in nvmet_auth_ctrl_hash() local
420 transformed_key = nvme_auth_transform_key(ctrl->ctrl_key, in nvmet_auth_ctrl_hash()
422 if (IS_ERR(transformed_key)) { in nvmet_auth_ctrl_hash()
[all …]
/linux/drivers/nvme/common/
H A Dauth.c243 struct nvme_dhchap_key *transformed_key; in nvme_auth_transform_key() local
252 transformed_key = kmemdup(key, key_len, GFP_KERNEL); in nvme_auth_transform_key()
253 if (!transformed_key) in nvme_auth_transform_key()
255 return transformed_key; in nvme_auth_transform_key()
276 transformed_key = nvme_auth_alloc_key(key_len, key->hash); in nvme_auth_transform_key()
277 if (!transformed_key) { in nvme_auth_transform_key()
295 ret = crypto_shash_final(shash, transformed_key->key); in nvme_auth_transform_key()
302 return transformed_key; in nvme_auth_transform_key()
305 nvme_auth_free_key(transformed_key); in nvme_auth_transform_key()
/linux/drivers/nvme/host/
H A Dauth.c26 struct nvme_dhchap_key *transformed_key; member
428 if (!chap->transformed_key) { in nvme_auth_dhchap_setup_host_response()
429 chap->transformed_key = nvme_auth_transform_key(ctrl->host_key, in nvme_auth_dhchap_setup_host_response()
431 if (IS_ERR(chap->transformed_key)) { in nvme_auth_dhchap_setup_host_response()
432 ret = PTR_ERR(chap->transformed_key); in nvme_auth_dhchap_setup_host_response()
433 chap->transformed_key = NULL; in nvme_auth_dhchap_setup_host_response()
442 chap->transformed_key->key, chap->transformed_key->len); in nvme_auth_dhchap_setup_host_response()
508 struct nvme_dhchap_key *transformed_key; in nvme_auth_dhchap_setup_ctrl_response() local
512 transformed_key = nvme_auth_transform_key(ctrl->ctrl_key, in nvme_auth_dhchap_setup_ctrl_response()
514 if (IS_ERR(transformed_key)) { in nvme_auth_dhchap_setup_ctrl_response()
[all …]