Home
last modified time | relevance | path

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

/external/libevent/
Dbuffer.c149 size_t datlen);
329 evbuffer_chain_insert_new(struct evbuffer *buf, size_t datlen) in evbuffer_chain_insert_new() argument
332 if ((chain = evbuffer_chain_new(datlen)) == NULL) in evbuffer_chain_insert_new()
1165 evbuffer_remove(struct evbuffer *buf, void *data_out, size_t datlen) in evbuffer_remove() argument
1169 n = evbuffer_copyout_from(buf, NULL, data_out, datlen); in evbuffer_remove()
1179 evbuffer_copyout(struct evbuffer *buf, void *data_out, size_t datlen) in evbuffer_copyout() argument
1181 return evbuffer_copyout_from(buf, NULL, data_out, datlen); in evbuffer_copyout()
1186 void *data_out, size_t datlen) in evbuffer_copyout_from() argument
1198 if (datlen > (size_t)(EV_SSIZE_MAX - pos->pos)) { in evbuffer_copyout_from()
1204 if (datlen + pos->pos > buf->total_len) in evbuffer_copyout_from()
[all …]
Darc4random.c108 arc4_addrandom(const unsigned char *dat, int datlen) in arc4_addrandom() argument
117 rs.j = (rs.j + si + dat[n % datlen]); in arc4_addrandom()
466 arc4random_addrandom(const unsigned char *dat, int datlen) in arc4random_addrandom() argument
472 for (j = 0; j < datlen; j += 256) { in arc4random_addrandom()
477 arc4_addrandom(dat + j, datlen - j); in arc4random_addrandom()
/external/openssh/openbsd-compat/
Darc4random.c69 static inline void _rs_rekey(u_char *dat, size_t datlen);
146 _rs_rekey(u_char *dat, size_t datlen) in _rs_rekey() argument
157 m = MIN(datlen, KEYSZ + IVSZ); in _rs_rekey()
209 arc4random_addrandom(u_char *dat, int datlen) in arc4random_addrandom() argument
216 while (datlen > 0) { in arc4random_addrandom()
217 m = MIN(datlen, KEYSZ + IVSZ); in arc4random_addrandom()
220 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.h860 void evutil_secure_rng_add_bytes(const char *dat, size_t datlen);
/external/openssh/
Dmonitor.c604 size_t datlen, siglen, alglen; in mm_answer_sign() local
612 (r = sshbuf_get_string(m, &p, &datlen)) != 0 || in mm_answer_sign()
629 if (datlen != 20 && datlen != 32 && datlen != 48 && datlen != 64) { in mm_answer_sign()
635 fatal("%s: bad data length: %zu", __func__, datlen); in mm_answer_sign()
646 if (datlen != sshbuf_len(sigbuf) || in mm_answer_sign()
649 __func__, datlen, sshbuf_len(sigbuf)); in mm_answer_sign()
656 session_id2_len = datlen; in mm_answer_sign()
662 if ((r = sshkey_sign(key, &signature, &siglen, p, datlen, alg, in mm_answer_sign()
669 p, datlen, alg, datafellows)) != 0) { in mm_answer_sign()