Skip to content

Commit 76f23aa

Browse files
authored
Merge pull request #511 from murillo128/cryptex
Add support for cryptex
2 parents def2d64 + e26fe06 commit 76f23aa

File tree

5 files changed

+997
-29
lines changed

5 files changed

+997
-29
lines changed

include/srtp.h

+3
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ typedef enum {
216216
srtp_err_status_pkt_idx_adv = 27, /**< packet index advanced, reset */
217217
/**< needed */
218218
srtp_err_status_buffer_small = 28, /**< out buffer is too small */
219+
srtp_err_status_cryptex_err = 29, /**< unsupported cryptex operation */
219220
} srtp_err_status_t;
220221

221222
typedef struct srtp_ctx_t_ srtp_ctx_t;
@@ -351,6 +352,8 @@ typedef struct srtp_policy_t {
351352
uint8_t *enc_xtn_hdr; /**< List of header ids to encrypt. */
352353
size_t enc_xtn_hdr_count; /**< Number of entries in list of header */
353354
/**< ids. */
355+
bool use_cryptex; /**< Encrypt header block and CSRCs with */
356+
/**< cryptex. */
354357
struct srtp_policy_t *next; /**< Pointer to next stream policy. */
355358
} srtp_policy_t;
356359

include/srtp_priv.h

+1
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ typedef struct srtp_stream_ctx_t_ {
125125
uint8_t *enc_xtn_hdr;
126126
size_t enc_xtn_hdr_count;
127127
uint32_t pending_roc;
128+
bool use_cryptex;
128129
} strp_stream_ctx_t_;
129130

130131
/*

0 commit comments

Comments
 (0)