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