Home
last modified time | relevance | path

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

/freebsd/sys/netinet/
H A Dsctp_auth.c653 sctp_auth_add_hmacid(sctp_hmaclist_t *list, uint16_t hmac_id) in sctp_auth_add_hmacid() argument
661 "SCTP: HMAC id list full, ignoring add %u\n", hmac_id); in sctp_auth_add_hmacid()
664 if ((hmac_id != SCTP_AUTH_HMAC_ID_SHA1) && in sctp_auth_add_hmacid()
665 (hmac_id != SCTP_AUTH_HMAC_ID_SHA256)) { in sctp_auth_add_hmacid()
670 if (list->hmac[i] == hmac_id) { in sctp_auth_add_hmacid()
675 SCTPDBG(SCTP_DEBUG_AUTH1, "SCTP: add HMAC id %u to list\n", hmac_id); in sctp_auth_add_hmacid()
676 list->hmac[list->num_algo++] = hmac_id; in sctp_auth_add_hmacid()
749 uint16_t hmac_id; in sctp_serialize_hmaclist() local
755 hmac_id = htons(list->hmac[i]); in sctp_serialize_hmaclist()
756 memcpy(ptr, &hmac_id, sizeof(hmac_id)); in sctp_serialize_hmaclist()
[all …]
H A Dsctp_auth.h155 extern int sctp_auth_add_hmacid(sctp_hmaclist_t *list, uint16_t hmac_id);
H A Dsctp.h434 uint16_t hmac_id; member
H A Dsctp_header.h516 uint16_t hmac_id; member
H A Dsctp_output.c13828 auth->hmac_id = htons(stcb->asoc.peer_hmac_id); in sctp_add_auth_chunk()