Lines Matching refs:hmac_id
111 const char *nvme_auth_hmac_name(u8 hmac_id) in nvme_auth_hmac_name() argument
113 if (hmac_id >= ARRAY_SIZE(hash_map)) in nvme_auth_hmac_name()
115 return hash_map[hmac_id].hmac; in nvme_auth_hmac_name()
119 const char *nvme_auth_digest_name(u8 hmac_id) in nvme_auth_digest_name() argument
121 if (hmac_id >= ARRAY_SIZE(hash_map)) in nvme_auth_digest_name()
123 return hash_map[hmac_id].digest; in nvme_auth_digest_name()
145 size_t nvme_auth_hmac_hash_len(u8 hmac_id) in nvme_auth_hmac_hash_len() argument
147 if (hmac_id >= ARRAY_SIZE(hash_map)) in nvme_auth_hmac_hash_len()
149 return hash_map[hmac_id].len; in nvme_auth_hmac_hash_len()
305 static int nvme_auth_hash_skey(int hmac_id, u8 *skey, size_t skey_len, u8 *hkey) in nvme_auth_hash_skey() argument
311 digest_name = nvme_auth_digest_name(hmac_id); in nvme_auth_hash_skey()
314 hmac_id); in nvme_auth_hash_skey()
330 int nvme_auth_augmented_challenge(u8 hmac_id, u8 *skey, size_t skey_len, in nvme_auth_augmented_challenge() argument
343 ret = nvme_auth_hash_skey(hmac_id, skey, in nvme_auth_augmented_challenge()
348 hmac_name = nvme_auth_hmac_name(hmac_id); in nvme_auth_augmented_challenge()
351 __func__, hmac_id); in nvme_auth_augmented_challenge()