Searched refs:hmacs (Results 1 – 4 of 4) sorted by relevance
/external/usrsctp/usrsctplib/netinet/ |
D | sctp_auth.c | 786 sctp_verify_hmac_param (struct sctp_auth_hmac_algo *hmacs, uint32_t num_hmacs) argument 791 if (ntohs(hmacs->hmac_ids[i]) == SCTP_AUTH_HMAC_ID_SHA1) { 1406 struct sctp_auth_hmac_algo *hmacs = NULL; local 1448 hmacs = (struct sctp_auth_hmac_algo *)phdr; 1449 hmacs_len = plen - sizeof(*hmacs); 1450 num_hmacs = hmacs_len / sizeof(hmacs->hmac_ids[0]); 1457 ntohs(hmacs->hmac_ids[i])); 1489 keylen = sizeof(*p_random) + random_len + sizeof(*hmacs) + hmacs_len; 1509 if (hmacs != NULL) { 1510 memcpy(new_key->key + keylen, hmacs, [all …]
|
D | sctp_auth.h | 162 extern int sctp_verify_hmac_param(struct sctp_auth_hmac_algo *hmacs,
|
D | sctp_pcb.c | 7097 struct sctp_auth_hmac_algo *hmacs = NULL; local 7574 hmacs = (struct sctp_auth_hmac_algo *)phdr; 7575 hmacs_len = plen - sizeof(*hmacs); 7576 num_hmacs = hmacs_len / sizeof(hmacs->hmac_ids[0]); 7578 if (sctp_verify_hmac_param(hmacs, num_hmacs)) { 7587 ntohs(hmacs->hmac_ids[i])); 7717 keylen = sizeof(*p_random) + random_len + sizeof(*hmacs) + hmacs_len; 7737 if (hmacs != NULL) { 7738 memcpy(new_key->key + keylen, hmacs, 7739 sizeof(*hmacs) + hmacs_len);
|
D | sctp_output.c | 5290 struct sctp_auth_hmac_algo *hmacs; local 5297 hmacs = (struct sctp_auth_hmac_algo *)(mtod(m, caddr_t) + chunk_len); 5300 hmacs->ph.param_type = htons(SCTP_HMAC_LIST); 5301 hmacs->ph.param_length = htons(parameter_len); 5302 sctp_serialize_hmaclist(stcb->asoc.local_hmacs, (uint8_t *)hmacs->hmac_ids); 6551 struct sctp_auth_hmac_algo *hmacs; local 6575 hmacs = (struct sctp_auth_hmac_algo *)(mtod(m, caddr_t) + chunk_len); 6578 (uint8_t *)hmacs->hmac_ids); 6579 hmacs->ph.param_type = htons(SCTP_HMAC_LIST); 6580 hmacs->ph.param_length = htons(parameter_len);
|