nrfxlib API 2.8.99
|
void ocrypto_srtp_encrypt | ( | const ocrypto_srtp_ctx * | srtp_ctx, |
uint8_t * | packet, | ||
const uint8_t * | data_bytes, | ||
size_t | num_header_bytes, | ||
size_t | num_data_bytes, | ||
uint32_t | index ) |
#include <crypto/nrf_oberon/include/ocrypto_srtp.h>
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. | |
[in,out] | 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. |