Home
last modified time | relevance | path

Searched refs:datlen (Results 1 – 7 of 7) sorted by relevance

/external/libevent/
Dbuffer.c150 size_t datlen);
330 evbuffer_chain_insert_new(struct evbuffer *buf, size_t datlen) in evbuffer_chain_insert_new() argument
333 if ((chain = evbuffer_chain_new(datlen)) == NULL) in evbuffer_chain_insert_new()
1170 evbuffer_remove(struct evbuffer *buf, void *data_out, size_t datlen) in evbuffer_remove() argument
1174 n = evbuffer_copyout_from(buf, NULL, data_out, datlen); in evbuffer_remove()
1184 evbuffer_copyout(struct evbuffer *buf, void *data_out, size_t datlen) in evbuffer_copyout() argument
1186 return evbuffer_copyout_from(buf, NULL, data_out, datlen); in evbuffer_copyout()
1191 void *data_out, size_t datlen) in evbuffer_copyout_from() argument
1203 if (datlen > (size_t)(EV_SSIZE_MAX - pos->pos)) { in evbuffer_copyout_from()
1209 if (datlen + pos->pos > buf->total_len) in evbuffer_copyout_from()
[all …]
Darc4random.c111 arc4_addrandom(const unsigned char *dat, int datlen) in arc4_addrandom() argument
120 rs.j = (rs.j + si + dat[n % datlen]); in arc4_addrandom()
456 arc4random_addrandom(const unsigned char *dat, int datlen) in arc4random_addrandom() argument
462 for (j = 0; j < datlen; j += 256) { in arc4random_addrandom()
467 arc4_addrandom(dat + j, datlen - j); in arc4random_addrandom()
/external/openssh/openbsd-compat/
Darc4random.c73 static inline void _rs_rekey(u_char *dat, size_t datlen);
156 _rs_rekey(u_char *dat, size_t datlen) in _rs_rekey() argument
167 m = MIN(datlen, KEYSZ + IVSZ); in _rs_rekey()
219 arc4random_addrandom(u_char *dat, int datlen) in arc4random_addrandom() argument
226 while (datlen > 0) { in arc4random_addrandom()
227 m = MIN(datlen, KEYSZ + IVSZ); in arc4random_addrandom()
230 datlen -= m; in arc4random_addrandom()
/external/libevent/include/event2/
Dbuffer.h262 int evbuffer_expand(struct evbuffer *buf, size_t datlen);
336 int evbuffer_add(struct evbuffer *buf, const void *data, size_t datlen);
351 int evbuffer_remove(struct evbuffer *buf, void *data, size_t datlen);
365 ev_ssize_t evbuffer_copyout(struct evbuffer *buf, void *data_out, size_t datlen);
380 …_copyout_from(struct evbuffer *buf, const struct evbuffer_ptr *pos, void *data_out, size_t datlen);
397 size_t datlen);
499 const void *data, size_t datlen,
Dutil.h881 void evutil_secure_rng_add_bytes(const char *dat, size_t datlen);
/external/openssh/
Dmonitor.c622 size_t datlen, siglen, alglen; in mm_answer_sign() local
630 (r = sshbuf_get_string(m, &p, &datlen)) != 0 || in mm_answer_sign()
648 if (datlen != 20 && datlen != 32 && datlen != 48 && datlen != 64) { in mm_answer_sign()
654 fatal("%s: bad data length: %zu", __func__, datlen); in mm_answer_sign()
665 if (datlen != sshbuf_len(sigbuf) || in mm_answer_sign()
668 __func__, datlen, sshbuf_len(sigbuf)); in mm_answer_sign()
675 session_id2_len = datlen; in mm_answer_sign()
681 if ((r = sshkey_sign(key, &signature, &siglen, p, datlen, alg, in mm_answer_sign()
688 p, datlen, alg, compat)) != 0) { in mm_answer_sign()
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_interceptors.inc9454 INTERCEPTOR(void, arc4random_addrandom, u8 *dat, int datlen) {
9456 COMMON_INTERCEPTOR_ENTER(ctx, arc4random_addrandom, dat, datlen);
9457 if (dat && datlen)
9458 COMMON_INTERCEPTOR_READ_RANGE(ctx, dat, datlen);
9459 REAL(arc4random_addrandom)(dat, datlen);