Home
last modified time | relevance | path

Searched refs:rdbx (Results 1 – 9 of 9) sorted by relevance

/external/libsrtp2/crypto/replay/
Drdbx.c175 srtp_err_status_t srtp_rdbx_init(srtp_rdbx_t *rdbx, unsigned long ws) in srtp_rdbx_init() argument
181 if (bitvector_alloc(&rdbx->bitmask, ws) != 0) { in srtp_rdbx_init()
185 srtp_index_init(&rdbx->index); in srtp_rdbx_init()
193 srtp_err_status_t srtp_rdbx_dealloc(srtp_rdbx_t *rdbx) in srtp_rdbx_dealloc() argument
195 bitvector_dealloc(&rdbx->bitmask); in srtp_rdbx_dealloc()
207 srtp_err_status_t srtp_rdbx_set_roc(srtp_rdbx_t *rdbx, uint32_t roc) in srtp_rdbx_set_roc() argument
209 bitvector_set_to_zero(&rdbx->bitmask); in srtp_rdbx_set_roc()
216 if (roc < (rdbx->index >> 16)) { in srtp_rdbx_set_roc()
220 rdbx->index &= 0xffff; /* retain lowest 16 bits */ in srtp_rdbx_set_roc()
221 rdbx->index |= ((uint64_t)roc) << 16; /* set ROC */ in srtp_rdbx_set_roc()
[all …]
/external/libsrtp2/test/
Drdbx_driver.c133 void print_rdbx(srtp_rdbx_t *rdbx) in print_rdbx() argument
136 printf("rdbx: {%llu, %s}\n", (unsigned long long)(rdbx->index), in print_rdbx()
137 bitvector_bit_string(&rdbx->bitmask, buf, sizeof(buf))); in print_rdbx()
148 srtp_err_status_t rdbx_check_add(srtp_rdbx_t *rdbx, uint32_t idx) in rdbx_check_add() argument
153 delta = srtp_index_guess(&rdbx->index, &est, idx); in rdbx_check_add()
155 if (srtp_rdbx_check(rdbx, delta) != srtp_err_status_ok) { in rdbx_check_add()
165 if (srtp_rdbx_add_index(rdbx, delta) != srtp_err_status_ok) { in rdbx_check_add()
180 srtp_err_status_t rdbx_check_expect_failure(srtp_rdbx_t *rdbx, uint32_t idx) in rdbx_check_expect_failure() argument
186 delta = srtp_index_guess(&rdbx->index, &est, idx); in rdbx_check_expect_failure()
188 status = srtp_rdbx_check(rdbx, delta); in rdbx_check_expect_failure()
[all …]
/external/libsrtp2/crypto/include/
Drdbx.h95 srtp_err_status_t srtp_rdbx_init(srtp_rdbx_t *rdbx, unsigned long ws);
102 srtp_err_status_t srtp_rdbx_dealloc(srtp_rdbx_t *rdbx);
112 int32_t srtp_rdbx_estimate_index(const srtp_rdbx_t *rdbx,
123 srtp_err_status_t srtp_rdbx_check(const srtp_rdbx_t *rdbx, int difference);
135 srtp_err_status_t srtp_rdbx_add_index(srtp_rdbx_t *rdbx, int delta);
144 srtp_err_status_t srtp_rdbx_set_roc(srtp_rdbx_t *rdbx, uint32_t roc);
152 srtp_xtd_seq_num_t srtp_rdbx_get_packet_index(const srtp_rdbx_t *rdbx);
165 unsigned long srtp_rdbx_get_window_size(const srtp_rdbx_t *rdbx);
192 uint32_t srtp_rdbx_get_roc(const srtp_rdbx_t *rdbx);
201 srtp_err_status_t srtp_rdbx_set_roc_seq(srtp_rdbx_t *rdbx,
/external/libsrtp2/
DCMakeLists.txt119 crypto/replay/rdbx.c
140 crypto/include/rdbx.h
DAndroid.bp53 "crypto/replay/rdbx.c",
DCHANGES35 PR #377 - Removed variable init code in rdbx which never gets used
166 PR #233 - crypto/replay/rdbx.c: Return type of srtp_index_guess from int to
DMakefile.in143 replay = crypto/replay/rdb.o crypto/replay/rdbx.o \
DREADME.md349 rdbx_driver | rdbx (extended replay database)
/external/libsrtp2/srtp/
Dsrtp.c1580 static srtp_err_status_t srtp_estimate_index(srtp_rdbx_t *rdbx, in srtp_estimate_index() argument
1595 *delta = low32(est) - rdbx->index; in srtp_estimate_index()
1598 *delta = (int)(*est - rdbx->index); in srtp_estimate_index()
1601 if (*est > rdbx->index) { in srtp_estimate_index()
1603 internal_roc = (uint32_t)(rdbx->index >> 16); in srtp_estimate_index()
1610 internal_pkt_idx_reduced = (uint32_t)(rdbx->index & 0xFFFF); in srtp_estimate_index()
1619 if (*est - rdbx->index > seq_num_median) { in srtp_estimate_index()
1624 } else if (*est < rdbx->index) { in srtp_estimate_index()
1627 internal_roc = (uint32_t)(rdbx->index >> 16); in srtp_estimate_index()
1635 (uint32_t)((roc_difference << 16) | rdbx->index & 0xFFFF); in srtp_estimate_index()
[all …]