Home
last modified time | relevance | path

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

/linux-6.15/drivers/nvme/common/
H A Dauth.c116 if (hmac_id >= ARRAY_SIZE(hash_map)) in nvme_auth_hmac_name()
118 return hash_map[hmac_id].hmac; in nvme_auth_hmac_name()
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()
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()
327 hmac_id); in nvme_auth_hash_skey()
363 __func__, hmac_id); in nvme_auth_augmented_challenge()
515 __func__, hmac_id); in nvme_auth_generate_psk()
614 __func__, hmac_id); in nvme_auth_generate_digest()
[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-6.15/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-6.15/net/sctp/
H A Dauth.c25 .hmac_id = SCTP_AUTH_HMAC_ID_RESERVED_0,
28 .hmac_id = SCTP_AUTH_HMAC_ID_SHA1,
34 .hmac_id = SCTP_AUTH_HMAC_ID_RESERVED_2,
38 .hmac_id = SCTP_AUTH_HMAC_ID_SHA256,
516 struct sctp_hmac *sctp_auth_get_hmac(__u16 hmac_id) in sctp_auth_get_hmac() argument
518 return &sctp_hmac_list[hmac_id]; in sctp_auth_get_hmac()
574 if (hmac_id == hmacs[i]) { in __sctp_auth_find_hmacid()
585 __be16 hmac_id) in sctp_auth_asoc_verify_hmac_id() argument
713 __u16 key_id, hmac_id; in sctp_auth_calculate_hmac() local
723 hmac_id = ntohs(auth->auth_hdr.hmac_id); in sctp_auth_calculate_hmac()
[all …]
H A Dsm_statefuns.c4376 if (!sctp_auth_asoc_verify_hmac_id(asoc, auth_hdr->hmac_id)) in sctp_sf_authenticate()
4394 hmac = sctp_auth_get_hmac(ntohs(auth_hdr->hmac_id)); in sctp_sf_authenticate()
4467 &auth_hdr->hmac_id, in sctp_sf_eat_auth()
H A Dsm_make_chunk.c1344 auth_hdr.hmac_id = htons(hmac_desc->hmac_id); in sctp_make_auth()
/linux-6.15/include/net/sctp/
H A Dauth.h32 __u16 hmac_id; /* one of the above ids */ member
82 struct sctp_hmac *sctp_auth_get_hmac(__u16 hmac_id);
87 __be16 hmac_id);
/linux-6.15/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()