nrfxlib API 2.8.99
Loading...
Searching...
No Matches

◆ ocrypto_srtp_encrypt()

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.

Parameters
srtp_ctxSRTP context.
[in,out]packetEncrypted packet.
data_bytesData bytes to be encrypted.
num_header_bytesNumber of header bytes.
num_data_bytesNumber of data bytes.
indexPacket index.