Searched refs:hmacs (Results 1 – 4 of 4) sorted by relevance
/freebsd/sys/netinet/ |
H A D | sctp_auth.c | 763 sctp_verify_hmac_param(struct sctp_auth_hmac_algo *hmacs, uint32_t num_hmacs) in sctp_verify_hmac_param() argument 768 if (ntohs(hmacs->hmac_ids[i]) == SCTP_AUTH_HMAC_ID_SHA1) { in sctp_verify_hmac_param() 1368 struct sctp_auth_hmac_algo *hmacs = NULL; in sctp_auth_get_cookie_params() local 1410 hmacs = (struct sctp_auth_hmac_algo *)phdr; in sctp_auth_get_cookie_params() 1411 hmacs_len = plen - sizeof(*hmacs); in sctp_auth_get_cookie_params() 1412 num_hmacs = hmacs_len / sizeof(hmacs->hmac_ids[0]); in sctp_auth_get_cookie_params() 1419 ntohs(hmacs->hmac_ids[i])); in sctp_auth_get_cookie_params() 1451 keylen = sizeof(*p_random) + random_len + sizeof(*hmacs) + hmacs_len; in sctp_auth_get_cookie_params() 1471 if (hmacs != NULL) { in sctp_auth_get_cookie_params() 1472 memcpy(new_key->key + keylen, hmacs, in sctp_auth_get_cookie_params() [all …]
|
H A D | sctp_auth.h | 163 sctp_verify_hmac_param(struct sctp_auth_hmac_algo *hmacs,
|
H A D | sctp_pcb.c | 5876 struct sctp_auth_hmac_algo *hmacs = NULL; in sctp_load_addresses_from_init() local 6369 hmacs = (struct sctp_auth_hmac_algo *)phdr; in sctp_load_addresses_from_init() 6370 hmacs_len = plen - sizeof(*hmacs); in sctp_load_addresses_from_init() 6371 num_hmacs = hmacs_len / sizeof(hmacs->hmac_ids[0]); in sctp_load_addresses_from_init() 6373 if (sctp_verify_hmac_param(hmacs, num_hmacs)) { in sctp_load_addresses_from_init() 6382 ntohs(hmacs->hmac_ids[i])); in sctp_load_addresses_from_init() 6515 keylen = sizeof(*p_random) + random_len + sizeof(*hmacs) + hmacs_len; in sctp_load_addresses_from_init() 6535 if (hmacs != NULL) { in sctp_load_addresses_from_init() 6536 memcpy(new_key->key + keylen, hmacs, in sctp_load_addresses_from_init() 6537 sizeof(*hmacs) + hmacs_len); in sctp_load_addresses_from_init()
|
H A D | sctp_output.c | 4794 struct sctp_auth_hmac_algo *hmacs; in sctp_send_initiate() local 4801 hmacs = (struct sctp_auth_hmac_algo *)(mtod(m, caddr_t)+chunk_len); in sctp_send_initiate() 4804 hmacs->ph.param_type = htons(SCTP_HMAC_LIST); in sctp_send_initiate() 4805 hmacs->ph.param_length = htons(parameter_len); in sctp_send_initiate() 4806 sctp_serialize_hmaclist(stcb->asoc.local_hmacs, (uint8_t *)hmacs->hmac_ids); in sctp_send_initiate() 6034 struct sctp_auth_hmac_algo *hmacs; in sctp_send_initiate_ack() local 6058 hmacs = (struct sctp_auth_hmac_algo *)(mtod(m, caddr_t)+chunk_len); in sctp_send_initiate_ack() 6061 (uint8_t *)hmacs->hmac_ids); in sctp_send_initiate_ack() 6062 hmacs->ph.param_type = htons(SCTP_HMAC_LIST); in sctp_send_initiate_ack() 6063 hmacs->ph.param_length = htons(parameter_len); in sctp_send_initiate_ack()
|