nrfxlib API 2.8.99
Loading...
Searching...
No Matches
SRTP - Secure Real-Time Transport Protocol APIs

Type declarations and APIs for SRTP - Secure Real-time Transport Protocol. More...

Data Structures

struct  ocrypto_srtp_ctx
 

Macros

#define ocrypto_srtp_AUTH_KEY_SIZE   (20)
 
#define ocrypto_srtp_SALT_SIZE   (14)
 
#define ocrypto_srtp_MAX_KEY_SIZE   (ocrypto_aes256_KEY_BYTES)
 

Functions

void ocrypto_srtp_setup_ctx (ocrypto_srtp_ctx *srtp_ctx, ocrypto_srtp_ctx *srtcp_ctx, const uint8_t *key, uint32_t key_size, const uint8_t *salt, uint32_t tag_size, uint32_t ssrc)
 
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)
 
void ocrypto_srtp_decrypt (const ocrypto_srtp_ctx *srtp_ctx, uint8_t *data, const uint8_t *packet_bytes, size_t num_packet_bytes, uint32_t index)
 
void ocrypto_srtp_authenticate (const ocrypto_srtp_ctx *srtp_ctx, uint8_t *tag, const uint8_t *bytes, size_t num_bytes, uint32_t index)
 
int ocrypto_srtp_verify_authentication (const ocrypto_srtp_ctx *srtp_ctx, const uint8_t *tag, const uint8_t *bytes, size_t num_bytes, uint32_t index)
 

Detailed Description

Type declarations and APIs for SRTP - Secure Real-time Transport Protocol.

SRTP is an extension of the RTP protocol with an enhanced security mechanism.