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.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()
119 const char *nvme_auth_digest_name(u8 hmac_id) in nvme_auth_digest_name() argument
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()
315 static int nvme_auth_hash_skey(int hmac_id, u8 *skey, size_t skey_len, u8 *hkey) in nvme_auth_hash_skey() argument
[all …]
/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,
H A Dsctp.h729 __be16 hmac_id; member
/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()
568 static int __sctp_auth_find_hmacid(__be16 *hmacs, int n_elts, __be16 hmac_id) in __sctp_auth_find_hmacid() argument
574 if (hmac_id == hmacs[i]) { in __sctp_auth_find_hmacid()
585 __be16 hmac_id) in sctp_auth_asoc_verify_hmac_id() argument
597 return __sctp_auth_find_hmacid(hmacs->hmac_ids, n_elt, hmac_id); in sctp_auth_asoc_verify_hmac_id()
[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/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);