Home
last modified time | relevance | path

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

/external/srtp/crypto/replay/
Drdbx.c195 rdbx_init(rdbx_t *rdbx, unsigned long ws) { in rdbx_init() argument
199 if (bitvector_alloc(&rdbx->bitmask, ws) != 0) in rdbx_init()
202 index_init(&rdbx->index); in rdbx_init()
212 rdbx_uninit(rdbx_t *rdbx) { in rdbx_uninit() argument
213 bitvector_dealloc(&rdbx->bitmask); in rdbx_uninit()
227 rdbx_set_roc(rdbx_t *rdbx, uint32_t roc) { in rdbx_set_roc() argument
228 bitvector_set_to_zero(&rdbx->bitmask); in rdbx_set_roc()
235 if (roc < (rdbx->index >> 16)) in rdbx_set_roc()
238 rdbx->index &= 0xffff; /* retain lowest 16 bits */ in rdbx_set_roc()
239 rdbx->index |= ((uint64_t)roc) << 16; /* set ROC */ in rdbx_set_roc()
[all …]
/external/srtp/test/
Drdbx_driver.c132 print_rdbx(rdbx_t *rdbx) { in print_rdbx() argument
135 (unsigned long long)(rdbx->index), in print_rdbx()
136 bitvector_bit_string(&rdbx->bitmask, buf, sizeof(buf)) in print_rdbx()
150 rdbx_check_add(rdbx_t *rdbx, uint32_t idx) { in rdbx_check_add() argument
154 delta = index_guess(&rdbx->index, &est, idx); in rdbx_check_add()
156 if (rdbx_check(rdbx, delta) != err_status_ok) { in rdbx_check_add()
166 if (rdbx_add_index(rdbx, delta) != err_status_ok) { in rdbx_check_add()
182 rdbx_check_expect_failure(rdbx_t *rdbx, uint32_t idx) { in rdbx_check_expect_failure() argument
187 delta = index_guess(&rdbx->index, &est, idx); in rdbx_check_expect_failure()
189 status = rdbx_check(rdbx, delta); in rdbx_check_expect_failure()
[all …]
/external/srtp/googlepatches/
Dvidyo-3-srtp-ws.patch132 …f -purN -x CVS -x '*~' -x '.*' -x 'obj-*' srtp-lin/crypto/include/rdbx.h srtp/crypto/include/rdbx.h
133 --- srtp-lin/crypto/include/rdbx.h 2007-06-15 14:17:40.000000000 -0400
134 +++ srtp/crypto/include/rdbx.h 2009-04-22 19:03:15.000000000 -0400
148 - * initializes the rdbx pointed to by its argument, setting the
150 + * initializes the rdbx pointed to by its argument with the window size ws,
155 -rdbx_init(rdbx_t *rdbx);
156 +rdbx_init(rdbx_t *rdbx, unsigned long ws);
162 + * frees memory associated with the rdbx
166 +rdbx_uninit(rdbx_t *rdbx);
170 @@ -127,6 +137,15 @@ rdbx_get_packet_index(const rdbx_t *rdbx
[all …]
Dgoogle-11-srtp-replay-fix.patch14 ==== //depot/google3/third_party/libsrtp/crypto/replay/rdbx.c#5 - None ====
16 --- google3/third_party/libsrtp/crypto/replay/rdbx.c 2010-02-25 06:36:30.000000000 -0800
17 +++ google3/third_party/libsrtp/crypto/replay/rdbx.c 2011-05-27 17:56:49.000000000 -0700
46 status = rdbx_check_add(&rdbx, idx);
55 status = rdbx_check_expect_failure(&rdbx, idx);
65 status = rdbx_check_unordered(&rdbx, ircvd);
74 + rdbx_uninit(&rdbx);
76 + if (rdbx_init(&rdbx, ws) != err_status_ok) {
82 + status = rdbx_check_add(&rdbx, 1);
85 + status = rdbx_check_expect_failure(&rdbx, 64500);
[all …]
Dgoogle-9-rdbx-leak-plug.patch288 + /* deallocate rdbx data */
/external/srtp/crypto/include/
Drdbx.h61 rdbx_init(rdbx_t *rdbx, unsigned long ws);
71 rdbx_uninit(rdbx_t *rdbx);
84 rdbx_estimate_index(const rdbx_t *rdbx,
97 rdbx_check(const rdbx_t *rdbx, int difference);
111 rdbx_add_index(rdbx_t *rdbx, int delta);
123 rdbx_set_roc(rdbx_t *rdbx, uint32_t roc);
132 rdbx_get_packet_index(const rdbx_t *rdbx);
147 rdbx_get_window_size(const rdbx_t *rdbx);
/external/srtp/
DTODO54 Improve interface between cipher and rdbx - perhaps generalize rdbx
59 Add rdbx functions that allow different-sized explicit sequence
DAndroid.mk29 crypto/replay/rdbx.c
DChanges61 Changed rdbx to use err.h error codes.
208 changed index_t to xtd_seq_num_t (see include/rdbx.h).
DMakefile82 replay = crypto/replay/rdb.o crypto/replay/rdbx.o \
DMakefile.in84 replay = crypto/replay/rdb.o crypto/replay/rdbx.o \
DREADME69 rdbx_driver rdbx (extended replay database)
/external/srtp/doc/
Dintro.txt167 rdbx\_driver & rdbx (extended replay database) \\