Home
last modified time | relevance | path

Searched refs:hmacs (Results 1 – 4 of 4) sorted by relevance

/external/usrsctp/usrsctplib/netinet/
Dsctp_auth.c786 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 …]
Dsctp_auth.h162 extern int sctp_verify_hmac_param(struct sctp_auth_hmac_algo *hmacs,
Dsctp_pcb.c7097 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);
Dsctp_output.c5290 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);