Home
last modified time | relevance | path

Searched refs:hmac_id (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/nvme/common/
H A Dauth.c114 const char *nvme_auth_hmac_name(u8 hmac_id) in nvme_auth_hmac_name() argument
116 if (hmac_id >= ARRAY_SIZE(hash_map)) in nvme_auth_hmac_name()
118 return hash_map[hmac_id].hmac; in nvme_auth_hmac_name()
122 const char *nvme_auth_digest_name(u8 hmac_id) in nvme_auth_digest_name() argument
124 if (hmac_id >= ARRAY_SIZE(hash_map)) in nvme_auth_digest_name()
126 return hash_map[hmac_id].digest; in nvme_auth_digest_name()
148 size_t nvme_auth_hmac_hash_len(u8 hmac_id) in nvme_auth_hmac_hash_len() argument
150 if (hmac_id >= ARRAY_SIZE(hash_map)) in nvme_auth_hmac_hash_len()
152 return hash_map[hmac_id].len; in nvme_auth_hmac_hash_len()
307 static int nvme_auth_hash_skey(int hmac_id, u8 *skey, size_t skey_len, u8 *hkey) in nvme_auth_hash_skey() argument
[all …]
H A Dkeyring.c143 const char *hostnqn, const char *subnqn, u8 hmac_id, in nvme_tls_psk_refresh() argument
159 hmac_id, hostnqn, subnqn, digest); in nvme_tls_psk_refresh()
/linux/include/linux/
H A Dnvme-auth.h22 const char *nvme_auth_hmac_name(u8 hmac_id);
23 const char *nvme_auth_digest_name(u8 hmac_id);
24 size_t nvme_auth_hmac_hash_len(u8 hmac_id);
35 int nvme_auth_augmented_challenge(u8 hmac_id, u8 *skey, size_t skey_len,
43 int nvme_auth_generate_psk(u8 hmac_id, u8 *skey, size_t skey_len,
46 int nvme_auth_generate_digest(u8 hmac_id, u8 *psk, size_t psk_len,
48 int nvme_auth_derive_tls_psk(int hmac_id, u8 *psk, size_t psk_len,
H A Dnvme-keyring.h14 const char *hostnqn, const char *subnqn, u8 hmac_id,
23 const char *hostnqn, char *subnqn, u8 hmac_id, in nvme_tls_psk_refresh() argument
H A Dsctp.h727 __be16 hmac_id; member
/linux/drivers/nvme/target/
H A Dconfigfs.c2179 u8 hmac_id; in nvmet_host_dhchap_hash_store() local
2181 hmac_id = nvme_auth_hmac_id(page); in nvmet_host_dhchap_hash_store()
2182 if (hmac_id == NVME_AUTH_HASH_INVALID) in nvmet_host_dhchap_hash_store()
2184 if (!crypto_has_shash(nvme_auth_hmac_name(hmac_id), 0, 0)) in nvmet_host_dhchap_hash_store()
2186 host->dhchap_hash_id = hmac_id; in nvmet_host_dhchap_hash_store()
/linux/net/sctp/
H A Dsm_statefuns.c4378 if (!sctp_auth_asoc_verify_hmac_id(asoc, auth_hdr->hmac_id)) in sctp_sf_authenticate()
4396 hmac = sctp_auth_get_hmac(ntohs(auth_hdr->hmac_id)); in sctp_sf_authenticate()
4469 &auth_hdr->hmac_id, in sctp_sf_eat_auth()