Lines Matching refs:hmac_id
40 .hmac_id = SCTP_AUTH_HMAC_ID_RESERVED_0,
43 .hmac_id = SCTP_AUTH_HMAC_ID_SHA1,
49 .hmac_id = SCTP_AUTH_HMAC_ID_RESERVED_2,
53 .hmac_id = SCTP_AUTH_HMAC_ID_SHA256,
536 struct sctp_hmac *sctp_auth_get_hmac(__u16 hmac_id) in sctp_auth_get_hmac() argument
538 return &sctp_hmac_list[hmac_id]; in sctp_auth_get_hmac()
588 static int __sctp_auth_find_hmacid(__be16 *hmacs, int n_elts, __be16 hmac_id) in __sctp_auth_find_hmacid() argument
594 if (hmac_id == hmacs[i]) { in __sctp_auth_find_hmacid()
605 __be16 hmac_id) in sctp_auth_asoc_verify_hmac_id() argument
617 return __sctp_auth_find_hmacid(hmacs->hmac_ids, n_elt, hmac_id); in sctp_auth_asoc_verify_hmac_id()
733 __u16 key_id, hmac_id; in sctp_auth_calculate_hmac() local
743 hmac_id = ntohs(auth->auth_hdr.hmac_id); in sctp_auth_calculate_hmac()
759 tfm = asoc->ep->auth_hmacs[hmac_id]; in sctp_auth_calculate_hmac()