35#define ocrypto_srtp_AUTH_KEY_SIZE (20)
40#define ocrypto_srtp_SALT_SIZE (14)
45#define ocrypto_srtp_MAX_KEY_SIZE (ocrypto_aes256_KEY_BYTES)
115 const uint8_t *data_bytes,
116 size_t num_header_bytes,
117 size_t num_data_bytes,
132 const uint8_t *packet_bytes,
133 size_t num_packet_bytes,
148 const uint8_t *bytes,
167 const uint8_t *bytes,
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)
#define ocrypto_srtp_MAX_KEY_SIZE
Definition: ocrypto_srtp.h:45
void ocrypto_srtp_authenticate(const ocrypto_srtp_ctx *srtp_ctx, uint8_t *tag, const uint8_t *bytes, size_t num_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)
#define ocrypto_srtp_AUTH_KEY_SIZE
Definition: ocrypto_srtp.h:35
#define ocrypto_srtp_SALT_SIZE
Definition: ocrypto_srtp.h:40
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)
uint32_t tag_size
Definition: ocrypto_srtp.h:59
uint32_t key_size
Definition: ocrypto_srtp.h:54
Definition: ocrypto_srtp.h:50