Lines Matching defs:hmac_id
25 .hmac_id = SCTP_AUTH_HMAC_ID_RESERVED_0,
28 .hmac_id = SCTP_AUTH_HMAC_ID_SHA1,
33 .hmac_id = SCTP_AUTH_HMAC_ID_RESERVED_2,
36 .hmac_id = SCTP_AUTH_HMAC_ID_SHA256,
41 static bool sctp_hmac_supported(__u16 hmac_id)
43 return hmac_id < ARRAY_SIZE(sctp_hmac_list) &&
44 sctp_hmac_list[hmac_id].hmac_len != 0;
448 const struct sctp_hmac *sctp_auth_get_hmac(__u16 hmac_id)
450 return &sctp_hmac_list[hmac_id];
485 static int __sctp_auth_find_hmacid(__be16 *hmacs, int n_elts, __be16 hmac_id)
491 if (hmac_id == hmacs[i]) {
502 __be16 hmac_id)
514 return __sctp_auth_find_hmacid(hmacs->hmac_ids, n_elt, hmac_id);
621 __u16 key_id, hmac_id;
631 hmac_id = ntohs(auth->auth_hdr.hmac_id);
646 if (hmac_id == SCTP_AUTH_HMAC_ID_SHA1) {
650 WARN_ON_ONCE(hmac_id != SCTP_AUTH_HMAC_ID_SHA256);