Lines Matching refs:rtcp
133 int rtcp, hmac_size; in ff_srtp_decrypt() local
140 rtcp = RTP_PT_IS_RTCP(buf[1]); in ff_srtp_decrypt()
141 hmac_size = rtcp ? s->rtcp_hmac_size : s->rtp_hmac_size; in ff_srtp_decrypt()
147 av_hmac_init(s->hmac, rtcp ? s->rtcp_auth : s->rtp_auth, sizeof(s->rtp_auth)); in ff_srtp_decrypt()
151 if (!rtcp) { in ff_srtp_decrypt()
190 if (rtcp) { in ff_srtp_decrypt()
231 create_iv(iv, rtcp ? s->rtcp_salt : s->rtp_salt, index, ssrc); in ff_srtp_decrypt()
232 av_aes_init(s->aes, rtcp ? s->rtcp_key : s->rtp_key, 128, 0); in ff_srtp_decrypt()
244 int rtcp, hmac_size, padding; in ff_srtp_encrypt() local
250 rtcp = RTP_PT_IS_RTCP(in[1]); in ff_srtp_encrypt()
251 hmac_size = rtcp ? s->rtcp_hmac_size : s->rtp_hmac_size; in ff_srtp_encrypt()
253 if (rtcp) in ff_srtp_encrypt()
262 if (rtcp) { in ff_srtp_encrypt()
304 create_iv(iv, rtcp ? s->rtcp_salt : s->rtp_salt, index, ssrc); in ff_srtp_encrypt()
305 av_aes_init(s->aes, rtcp ? s->rtcp_key : s->rtp_key, 128, 0); in ff_srtp_encrypt()
308 if (rtcp) { in ff_srtp_encrypt()
313 av_hmac_init(s->hmac, rtcp ? s->rtcp_auth : s->rtp_auth, sizeof(s->rtp_auth)); in ff_srtp_encrypt()
315 if (!rtcp) { in ff_srtp_encrypt()