Lines Matching refs:pkt_octet_len

83                                                   int *pkt_octet_len)  in srtp_validate_rtp_header()  argument
88 if (*pkt_octet_len < octets_in_rtp_header) in srtp_validate_rtp_header()
96 if (*pkt_octet_len < rtp_header_len) in srtp_validate_rtp_header()
107 if (*pkt_octet_len < rtp_header_len) in srtp_validate_rtp_header()
1540 const unsigned int *pkt_octet_len, in srtp_get_session_keys() argument
1543 unsigned int base_mki_start_location = *pkt_octet_len; in srtp_get_session_keys()
1687 unsigned int *pkt_octet_len, in srtp_protect_aead() argument
1738 if (!((uint8_t *)enc_start <= (uint8_t *)hdr + *pkt_octet_len)) in srtp_protect_aead()
1741 (int)(*pkt_octet_len - ((uint8_t *)enc_start - (uint8_t *)hdr)); in srtp_protect_aead()
1828 mki_location = (uint8_t *)hdr + *pkt_octet_len + tag_len; in srtp_protect_aead()
1832 *pkt_octet_len += tag_len; in srtp_protect_aead()
1835 *pkt_octet_len += mki_size; in srtp_protect_aead()
1852 unsigned int *pkt_octet_len, in srtp_unprotect_aead() argument
1911 (uint8_t *)hdr + (*pkt_octet_len - tag_len - mki_size))) in srtp_unprotect_aead()
1916 enc_octet_len = (unsigned int)(*pkt_octet_len - mki_size - in srtp_unprotect_aead()
2028 *pkt_octet_len -= tag_len; in srtp_unprotect_aead()
2031 *pkt_octet_len -= mki_size; in srtp_unprotect_aead()
2038 int *pkt_octet_len) in srtp_protect() argument
2040 return srtp_protect_mki(ctx, rtp_hdr, pkt_octet_len, 0, 0); in srtp_protect()
2045 int *pkt_octet_len, in srtp_protect_mki() argument
2071 status = srtp_validate_rtp_header(rtp_hdr, pkt_octet_len); in srtp_protect_mki()
2076 if (*pkt_octet_len < octets_in_rtp_header) in srtp_protect_mki()
2140 (unsigned int *)pkt_octet_len, session_keys, in srtp_protect_mki()
2180 if (!((uint8_t *)enc_start <= (uint8_t *)hdr + *pkt_octet_len)) in srtp_protect_mki()
2183 (int)(*pkt_octet_len - ((uint8_t *)enc_start - (uint8_t *)hdr)); in srtp_protect_mki()
2190 mki_location = (uint8_t *)hdr + *pkt_octet_len; in srtp_protect_mki()
2200 auth_tag = (uint8_t *)hdr + *pkt_octet_len + mki_size; in srtp_protect_mki()
2338 *pkt_octet_len); in srtp_protect_mki()
2354 *pkt_octet_len += tag_len; in srtp_protect_mki()
2359 *pkt_octet_len += mki_size; in srtp_protect_mki()
2367 int *pkt_octet_len) in srtp_unprotect() argument
2369 return srtp_unprotect_mki(ctx, srtp_hdr, pkt_octet_len, 0); in srtp_unprotect()
2374 int *pkt_octet_len, in srtp_unprotect_mki() argument
2401 status = srtp_validate_rtp_header(srtp_hdr, pkt_octet_len); in srtp_unprotect_mki()
2406 if (*pkt_octet_len < octets_in_rtp_header) in srtp_unprotect_mki()
2471 stream, (uint8_t *)hdr, (const unsigned int *)pkt_octet_len, in srtp_unprotect_mki()
2487 (unsigned int *)pkt_octet_len, session_keys, in srtp_unprotect_mki()
2558 (uint8_t *)hdr + (*pkt_octet_len - tag_len - mki_size))) in srtp_unprotect_mki()
2560 enc_octet_len = (uint32_t)(*pkt_octet_len - tag_len - mki_size - in srtp_unprotect_mki()
2573 auth_tag = (uint8_t *)hdr + *pkt_octet_len - tag_len; in srtp_unprotect_mki()
2608 *pkt_octet_len - tag_len - mki_size); in srtp_unprotect_mki()
2718 *pkt_octet_len -= tag_len; in srtp_unprotect_mki()
2721 *pkt_octet_len -= mki_size; in srtp_unprotect_mki()
3494 unsigned int *pkt_octet_len, in srtp_protect_rtcp_aead() argument
3519 enc_octet_len = *pkt_octet_len - octets_in_rtcp_header; in srtp_protect_rtcp_aead()
3535 mki_size = srtp_inject_mki((uint8_t *)hdr + *pkt_octet_len + tag_len + in srtp_protect_rtcp_aead()
3545 auth_tag = (uint8_t *)hdr + *pkt_octet_len; in srtp_protect_rtcp_aead()
3594 *pkt_octet_len); in srtp_protect_rtcp_aead()
3647 *pkt_octet_len += (tag_len + sizeof(srtcp_trailer_t)); in srtp_protect_rtcp_aead()
3650 *pkt_octet_len += mki_size; in srtp_protect_rtcp_aead()
3665 unsigned int *pkt_octet_len, in srtp_unprotect_rtcp_aead() argument
3698 trailer_p = (uint32_t *)((char *)hdr + *pkt_octet_len - in srtp_unprotect_rtcp_aead()
3705 enc_octet_len = *pkt_octet_len - (octets_in_rtcp_header + in srtp_unprotect_rtcp_aead()
3707 auth_tag = (uint8_t *)hdr + *pkt_octet_len - tag_len - mki_size - in srtp_unprotect_rtcp_aead()
3762 (*pkt_octet_len - tag_len - sizeof(srtcp_trailer_t) - mki_size)); in srtp_unprotect_rtcp_aead()
3798 *pkt_octet_len -= (tag_len + sizeof(srtcp_trailer_t) + mki_size); in srtp_unprotect_rtcp_aead()
3855 int *pkt_octet_len) in srtp_protect_rtcp() argument
3857 return srtp_protect_rtcp_mki(ctx, rtcp_hdr, pkt_octet_len, 0, 0); in srtp_protect_rtcp()
3862 int *pkt_octet_len, in srtp_protect_rtcp_mki() argument
3884 if (*pkt_octet_len < octets_in_rtcp_header) in srtp_protect_rtcp_mki()
3944 (unsigned int *)pkt_octet_len, in srtp_protect_rtcp_mki()
3956 enc_octet_len = *pkt_octet_len - octets_in_rtcp_header; in srtp_protect_rtcp_mki()
3974 mki_size = srtp_inject_mki((uint8_t *)hdr + *pkt_octet_len + in srtp_protect_rtcp_mki()
3985 (uint8_t *)hdr + *pkt_octet_len + sizeof(srtcp_trailer_t) + mki_size; in srtp_protect_rtcp_mki()
3988 srtp_ekt_write_data(stream->ekt, auth_tag, tag_len, pkt_octet_len, in srtp_protect_rtcp_mki()
4069 (*pkt_octet_len) + sizeof(srtcp_trailer_t), auth_tag); in srtp_protect_rtcp_mki()
4076 *pkt_octet_len += (tag_len + sizeof(srtcp_trailer_t)); in srtp_protect_rtcp_mki()
4079 *pkt_octet_len += mki_size; in srtp_protect_rtcp_mki()
4086 int *pkt_octet_len) in srtp_unprotect_rtcp() argument
4088 return srtp_unprotect_rtcp_mki(ctx, srtcp_hdr, pkt_octet_len, 0); in srtp_unprotect_rtcp()
4093 int *pkt_octet_len, in srtp_unprotect_rtcp_mki() argument
4118 if (*pkt_octet_len < 0) in srtp_unprotect_rtcp_mki()
4126 if ((unsigned int)(*pkt_octet_len) < in srtp_unprotect_rtcp_mki()
4154 *pkt_octet_len); in srtp_unprotect_rtcp_mki()
4173 stream, (uint8_t *)hdr, (const unsigned int *)pkt_octet_len, in srtp_unprotect_rtcp_mki()
4188 if (*pkt_octet_len < (int)(octets_in_rtcp_header + tag_len + mki_size + in srtp_unprotect_rtcp_mki()
4200 (unsigned int *)pkt_octet_len, in srtp_unprotect_rtcp_mki()
4210 enc_octet_len = *pkt_octet_len - (octets_in_rtcp_header + tag_len + in srtp_unprotect_rtcp_mki()
4218 trailer_p = (uint32_t *)((char *)hdr + *pkt_octet_len - in srtp_unprotect_rtcp_mki()
4245 auth_len = *pkt_octet_len - tag_len - mki_size; in srtp_unprotect_rtcp_mki()
4342 *pkt_octet_len -= (tag_len + sizeof(srtcp_trailer_t)); in srtp_unprotect_rtcp_mki()
4345 *pkt_octet_len -= mki_size; in srtp_unprotect_rtcp_mki()
4351 *pkt_octet_len -= srtp_ekt_octets_after_base_tag(stream->ekt); in srtp_unprotect_rtcp_mki()