Lines Matching refs:auth
401 * shared key (if available). draft-ietf-tsvwg-auth specifies the specific
1565 struct sctp_auth_chunk *auth, struct sctp_tcb *stcb, uint16_t keyid)
1571 if ((stcb == NULL) || (auth == NULL))
1576 bzero(auth->hmac, SCTP_SIZE32(digestlen));
1606 auth->shared_key_id = htons(keyid);
1610 m, auth_offset, auth->hmac);
1653 sctp_handle_auth(struct sctp_tcb *stcb, struct sctp_auth_chunk *auth,
1664 /* auth is checked for NULL by caller */
1665 chunklen = ntohs(auth->ch.chunk_length);
1666 if (chunklen < sizeof(*auth)) {
1672 /* get the auth params */
1673 shared_key_id = ntohs(auth->shared_key_id);
1674 hmac_id = ntohs(auth->hmac_id);
1747 if (chunklen < (sizeof(*auth) + digestlen)) {
1755 bcopy(auth->hmac, digest, digestlen);
1756 sctp_bzero_m(m, offset + sizeof(*auth), SCTP_SIZE32(digestlen));
1782 struct sctp_authkey_event *auth;
1805 auth = mtod(m_notify, struct sctp_authkey_event *);
1806 memset(auth, 0, sizeof(struct sctp_authkey_event));
1807 auth->auth_type = SCTP_AUTHENTICATION_EVENT;
1808 auth->auth_flags = 0;
1809 auth->auth_length = sizeof(*auth);
1810 auth->auth_keynumber = keyid;
1811 auth->auth_altkeynumber = alt_keyid;
1812 auth->auth_indication = indication;
1813 auth->auth_assoc_id = sctp_get_associd(stcb);
1815 SCTP_BUF_LEN(m_notify) = sizeof(*auth);
1990 /* initialize auth chunks list from endpoint */