Home
last modified time | relevance | path

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

/openbmc/linux/drivers/nvme/common/
H A Dauth.c111 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 …]
/openbmc/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);
32 int nvme_auth_augmented_challenge(u8 hmac_id, u8 *skey, size_t skey_len,
H A Dsctp.h729 __be16 hmac_id; member
/openbmc/linux/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.c4375 if (!sctp_auth_asoc_verify_hmac_id(asoc, auth_hdr->hmac_id)) in sctp_sf_authenticate()
4393 hmac = sctp_auth_get_hmac(ntohs(auth_hdr->hmac_id)); in sctp_sf_authenticate()
4466 &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()
/openbmc/linux/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);
/openbmc/linux/drivers/nvme/target/
H A Dconfigfs.c1927 u8 hmac_id; in nvmet_host_dhchap_hash_store() local
1929 hmac_id = nvme_auth_hmac_id(page); in nvmet_host_dhchap_hash_store()
1930 if (hmac_id == NVME_AUTH_HASH_INVALID) in nvmet_host_dhchap_hash_store()
1932 if (!crypto_has_shash(nvme_auth_hmac_name(hmac_id), 0, 0)) in nvmet_host_dhchap_hash_store()
1934 host->dhchap_hash_id = hmac_id; in nvmet_host_dhchap_hash_store()