Home
last modified time | relevance | path

Searched refs:key_hash (Results 1 – 2 of 2) sorted by relevance

/drivers/nvme/common/
Dauth.c154 u8 key_hash) in nvme_auth_extract_key() argument
190 if (key_hash > 0 && in nvme_auth_extract_key()
191 (key_len - 4) != nvme_auth_hmac_hash_len(key_hash)) { in nvme_auth_extract_key()
193 nvme_auth_hmac_name(key_hash)); in nvme_auth_extract_key()
213 key->hash = key_hash; in nvme_auth_extract_key()
461 u8 key_hash; in nvme_auth_generate_key() local
468 if (sscanf(secret, "DHHC-1:%hhd:%*s:", &key_hash) != 1) in nvme_auth_generate_key()
472 key = nvme_auth_extract_key(secret + 10, key_hash); in nvme_auth_generate_key()
/drivers/nvme/target/
Dauth.c25 unsigned char key_hash; in nvmet_auth_set_key() local
28 if (sscanf(secret, "DHHC-1:%hhd:%*s", &key_hash) != 1) in nvmet_auth_set_key()
30 if (key_hash > 3) { in nvmet_auth_set_key()
32 key_hash); in nvmet_auth_set_key()
35 if (key_hash > 0) { in nvmet_auth_set_key()
37 const char *hmac = nvme_auth_hmac_name(key_hash); in nvmet_auth_set_key()
50 host->dhchap_ctrl_key_hash = key_hash; in nvmet_auth_set_key()
54 host->dhchap_key_hash = key_hash; in nvmet_auth_set_key()