• Home
  • Raw
  • Download

Lines Matching refs:mki_size

246                                          session_keys->mki_size);  in srtp_stream_dealloc()
490 session_keys->mki_size = template_session_keys->mki_size; in srtp_stream_clone()
492 if (template_session_keys->mki_size == 0) { in srtp_stream_clone()
496 srtp_crypto_alloc(template_session_keys->mki_size); in srtp_stream_clone()
504 session_keys->mki_size); in srtp_stream_clone()
792 if (policy->keys[i]->mki_size > SRTP_MAX_MKI_LEN) in srtp_validate_policy_master_keys()
819 unsigned int mki_size = 0; in srtp_inject_mki() local
822 mki_size = session_keys->mki_size; in srtp_inject_mki()
824 if (mki_size != 0) { in srtp_inject_mki()
826 memcpy(mki_tag_location, session_keys->mki_id, mki_size); in srtp_inject_mki()
830 return mki_size; in srtp_inject_mki()
847 single_master_key.mki_size = 0; in srtp_stream_init_all_master_keys()
895 if (master_key->mki_size != 0) { in srtp_stream_init_keys()
896 session_keys->mki_id = srtp_crypto_alloc(master_key->mki_size); in srtp_stream_init_keys()
901 memcpy(session_keys->mki_id, master_key->mki_id, master_key->mki_size); in srtp_stream_init_keys()
906 session_keys->mki_size = master_key->mki_size; in srtp_stream_init_keys()
1541 unsigned int *mki_size) in srtp_get_session_keys() argument
1557 *mki_size = 0; in srtp_get_session_keys()
1564 if (stream->session_keys[i].mki_size != 0 && in srtp_get_session_keys()
1565 stream->session_keys[i].mki_size <= base_mki_start_location) { in srtp_get_session_keys()
1566 *mki_size = stream->session_keys[i].mki_size; in srtp_get_session_keys()
1567 mki_start_location = base_mki_start_location - *mki_size; in srtp_get_session_keys()
1570 *mki_size) == 0) { in srtp_get_session_keys()
1576 *mki_size = 0; in srtp_get_session_keys()
1701 unsigned int mki_size = 0; in srtp_protect_aead() local
1829 mki_size = srtp_inject_mki(mki_location, session_keys, use_mki); in srtp_protect_aead()
1835 *pkt_octet_len += mki_size; in srtp_protect_aead()
1854 unsigned int mki_size) 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()
2031 *pkt_octet_len -= mki_size; in srtp_unprotect_aead()
2061 unsigned int mki_size = 0; in srtp_protect_mki() local
2191 mki_size = srtp_inject_mki(mki_location, session_keys, use_mki); in srtp_protect_mki()
2200 auth_tag = (uint8_t *)hdr + *pkt_octet_len + mki_size; in srtp_protect_mki()
2359 *pkt_octet_len += mki_size; in srtp_protect_mki()
2390 unsigned int mki_size = 0; in srtp_unprotect_mki() local
2472 &mki_size); in srtp_unprotect_mki()
2488 mki_size); 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()
2608 *pkt_octet_len - tag_len - mki_size); in srtp_unprotect_mki()
2721 *pkt_octet_len -= mki_size; in srtp_unprotect_mki()
3509 unsigned int mki_size = 0; in srtp_protect_rtcp_aead() local
3535 mki_size = srtp_inject_mki((uint8_t *)hdr + *pkt_octet_len + tag_len + in srtp_protect_rtcp_aead()
3650 *pkt_octet_len += mki_size; in srtp_protect_rtcp_aead()
3681 unsigned int mki_size = 0; in srtp_unprotect_rtcp_aead() local
3687 mki_size = session_keys->mki_size; in srtp_unprotect_rtcp_aead()
3699 sizeof(srtcp_trailer_t) - mki_size); in srtp_unprotect_rtcp_aead()
3706 sizeof(srtcp_trailer_t) + mki_size); 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()
3878 unsigned int mki_size = 0; in srtp_protect_rtcp_mki() local
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()
4079 *pkt_octet_len += mki_size; in srtp_protect_rtcp_mki()
4113 unsigned int mki_size = 0; in srtp_unprotect_rtcp_mki() local
4174 &mki_size); in srtp_unprotect_rtcp_mki()
4188 if (*pkt_octet_len < (int)(octets_in_rtcp_header + tag_len + mki_size + in srtp_unprotect_rtcp_mki()
4201 session_keys, mki_size); in srtp_unprotect_rtcp_mki()
4211 mki_size + sizeof(srtcp_trailer_t)); in srtp_unprotect_rtcp_mki()
4219 (tag_len + mki_size + sizeof(srtcp_trailer_t))); in srtp_unprotect_rtcp_mki()
4245 auth_len = *pkt_octet_len - tag_len - mki_size; in srtp_unprotect_rtcp_mki()
4246 auth_tag = (uint8_t *)hdr + auth_len + mki_size; in srtp_unprotect_rtcp_mki()
4345 *pkt_octet_len -= mki_size; in srtp_unprotect_rtcp_mki()
4563 *length += session_key->mki_size; in stream_get_protect_trailer_length()