Searched refs:hmac_id (Results 1 – 8 of 8) sorted by relevance
/linux-6.3-rc2/drivers/nvme/common/ |
A D | auth.c | 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() 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() 314 hmac_id); in nvme_auth_hash_skey() 343 ret = nvme_auth_hash_skey(hmac_id, skey, in nvme_auth_augmented_challenge() [all …]
|
/linux-6.3-rc2/include/linux/ |
A D | nvme-auth.h | 22 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); 32 int nvme_auth_augmented_challenge(u8 hmac_id, u8 *skey, size_t skey_len,
|
A D | sctp.h | 729 __be16 hmac_id; member
|
/linux-6.3-rc2/net/sctp/ |
A D | auth.c | 25 .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 …]
|
A D | sm_statefuns.c | 4367 if (!sctp_auth_asoc_verify_hmac_id(asoc, auth_hdr->hmac_id)) in sctp_sf_authenticate() 4385 hmac = sctp_auth_get_hmac(ntohs(auth_hdr->hmac_id)); in sctp_sf_authenticate() 4458 &auth_hdr->hmac_id, in sctp_sf_eat_auth()
|
A D | sm_make_chunk.c | 1344 auth_hdr.hmac_id = htons(hmac_desc->hmac_id); in sctp_make_auth()
|
/linux-6.3-rc2/include/net/sctp/ |
A D | auth.h | 32 __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.3-rc2/drivers/nvme/target/ |
A D | configfs.c | 1904 u8 hmac_id; in nvmet_host_dhchap_hash_store() local 1906 hmac_id = nvme_auth_hmac_id(page); in nvmet_host_dhchap_hash_store() 1907 if (hmac_id == NVME_AUTH_HASH_INVALID) in nvmet_host_dhchap_hash_store() 1909 if (!crypto_has_shash(nvme_auth_hmac_name(hmac_id), 0, 0)) in nvmet_host_dhchap_hash_store() 1911 host->dhchap_hash_id = hmac_id; in nvmet_host_dhchap_hash_store()
|
Completed in 28 milliseconds