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

/freebsd-10-stable/sys/netinet/
H A Dsctp_auth.c771 sctp_verify_hmac_param(struct sctp_auth_hmac_algo *hmacs, uint32_t num_hmacs) argument
776 if (ntohs(hmacs->hmac_ids[i]) == SCTP_AUTH_HMAC_ID_SHA1) {
1410 struct sctp_auth_hmac_algo *hmacs = NULL; local
1450 /* save the hmacs list and num for the key */
1451 hmacs = (struct sctp_auth_hmac_algo *)phdr;
1452 hmacs_len = plen - sizeof(*hmacs);
1453 num_hmacs = hmacs_len / sizeof(hmacs->hmac_ids[0]);
1460 ntohs(hmacs->hmac_ids[i]));
1492 keylen = sizeof(*p_random) + random_len + sizeof(*hmacs) + hmacs_len;
1510 if (hmacs !
1869 struct sctp_auth_hmac_algo *hmacs; local
[all...]
H A Dsctp_auth.h167 sctp_verify_hmac_param(struct sctp_auth_hmac_algo *hmacs,
H A Dsctp_pcb.c6079 struct sctp_auth_hmac_algo *hmacs = NULL; local
6546 hmacs = (struct sctp_auth_hmac_algo *)phdr;
6547 hmacs_len = plen - sizeof(*hmacs);
6548 num_hmacs = hmacs_len / sizeof(hmacs->hmac_ids[0]);
6550 if (sctp_verify_hmac_param(hmacs, num_hmacs)) {
6559 ntohs(hmacs->hmac_ids[i]));
6685 keylen = sizeof(*p_random) + random_len + sizeof(*hmacs) + hmacs_len;
6703 if (hmacs != NULL) {
6704 bcopy(hmacs, new_key->key + keylen,
6705 sizeof(*hmacs)
[all...]
H A Dsctp_output.c4843 struct sctp_auth_hmac_algo *hmacs; local
4850 hmacs = (struct sctp_auth_hmac_algo *)(mtod(m, caddr_t)+chunk_len);
4853 hmacs->ph.param_type = htons(SCTP_HMAC_LIST);
4854 hmacs->ph.param_length = htons(parameter_len);
4855 sctp_serialize_hmaclist(stcb->asoc.local_hmacs, (uint8_t *) hmacs->hmac_ids);
5987 struct sctp_auth_hmac_algo *hmacs; local
6011 hmacs = (struct sctp_auth_hmac_algo *)(mtod(m, caddr_t)+chunk_len);
6014 (uint8_t *) hmacs->hmac_ids);
6015 hmacs->ph.param_type = htons(SCTP_HMAC_LIST);
6016 hmacs
[all...]

Completed in 90 milliseconds