Function nrfxlib_sys::ocrypto_srtp_encrypt
source · pub unsafe extern "C" fn ocrypto_srtp_encrypt(
srtp_ctx: *const ocrypto_srtp_ctx,
packet: *mut u8,
data_bytes: *const u8,
num_header_bytes: usize,
num_data_bytes: usize,
index: u32
)
Expand description
Encrypt SRTP packet.
The final packet consists of * num_header_bytes
- encrypted in place, followed
by * num_data_bytes
- copied from * data_bytes
- during encryption.
srtp_ctx
- SRTP context.packet
- Encrypted packet.data_bytes
- Data bytes to be encrypted.num_header_bytes
- Number of header bytes.num_data_bytes
- Number of data bytes.index
- Packet index.