| /src/external/mpl/dhcp/bind/dist/lib/isc/ |
| nonce.c | 21 isc_nonce_buf(void *buf, size_t buflen) { 22 isc_entropy_get(buf, buflen);
|
| entropy.c | 25 isc_entropy_get(void *buf, size_t buflen) { 26 if (RAND_bytes(buf, buflen) < 1) {
|
| entropy_private.h | 34 isc_entropy_get(void *buf, size_t buflen);
|
| /src/crypto/external/bsd/heimdal/dist/lib/roken/ |
| strerror_r.c | 48 rk_strerror_r(int eno, char * strerrbuf, size_t buflen) 52 err = strerror_s(strerrbuf, buflen, eno); 55 code = sprintf_s(strerrbuf, buflen, "Error % occurred.", eno); 65 rk_strerror_r(int eno, char *strerrbuf, size_t buflen) 70 str = strerror_r(eno, strerrbuf, buflen); 72 if (strlcpy(strerrbuf, str, buflen) >= buflen) 77 ret = strlcpy(strerrbuf, strerror(eno), buflen); 78 if (ret > buflen)
|
| /src/external/mit/libuv/dist/src/ |
| random.c | 31 static int uv__random(void* buf, size_t buflen) { 35 rc = uv__random_readpath("/dev/urandom", buf, buflen); 37 rc = uv__random_readpath("/dev/random", buf, buflen); 40 rc = uv__random_getentropy(buf, buflen); 42 rc = uv__random_devurandom(buf, buflen); 44 rc = uv__random_sysctl(buf, buflen); 46 rc = uv__random_getrandom(buf, buflen); 48 rc = uv__random_devurandom(buf, buflen); 58 rc = uv__random_sysctl(buf, buflen); 64 rc = uv__random_rtlgenrandom(buf, buflen); [all...] |
| /src/crypto/external/apache2/openssl/dist/providers/implementations/ciphers/ |
| ciphercommon_local.h | 12 void ossl_cipher_padblock(unsigned char *buf, size_t *buflen, size_t blocksize); 13 int ossl_cipher_unpadblock(unsigned char *buf, size_t *buflen, size_t blocksize); 15 unsigned char *buf, size_t *buflen, size_t blocksize,
|
| ciphercommon_block.c | 26 * buflen: contains the amount of data already in buf on entry. Updated with the 27 * amount of data in buf at the end. On entry *buflen must always be 34 * *buflen is updated containing the amount of data in buf. *in is updated to 39 size_t ossl_cipher_fillblock(unsigned char *buf, size_t *buflen, 44 size_t bufremain = blocksize - *buflen; 46 assert(*buflen <= blocksize); 51 memcpy(buf + *buflen, *in, bufremain); 54 *buflen += bufremain; 63 int ossl_cipher_trailingdata(unsigned char *buf, size_t *buflen, size_t blocksize, 69 if (*buflen + *inlen > blocksize) [all...] |
| /src/crypto/external/bsd/openssl/dist/providers/implementations/ciphers/ |
| ciphercommon_local.h | 12 void ossl_cipher_padblock(unsigned char *buf, size_t *buflen, size_t blocksize); 13 int ossl_cipher_unpadblock(unsigned char *buf, size_t *buflen, size_t blocksize); 15 unsigned char *buf, size_t *buflen, size_t blocksize,
|
| ciphercommon_block.c | 43 * buflen: contains the amount of data already in buf on entry. Updated with the 44 * amount of data in buf at the end. On entry *buflen must always be 51 * *buflen is updated containing the amount of data in buf. *in is updated to 56 size_t ossl_cipher_fillblock(unsigned char *buf, size_t *buflen, 61 size_t bufremain = blocksize - *buflen; 63 assert(*buflen <= blocksize); 68 memcpy(buf + *buflen, *in, bufremain); 71 *buflen += bufremain; 80 int ossl_cipher_trailingdata(unsigned char *buf, size_t *buflen, size_t blocksize, 86 if (*buflen + *inlen > blocksize) [all...] |
| /src/lib/librumpuser/ |
| rumpuser_random.c | 76 rumpuser_getrandom(void *buf, size_t buflen, int flags, size_t *retp) 81 rv = read(random_fd, buf, buflen > random_maxread ? random_maxread : buflen); 87 buflen = buflen > random_maxread ? random_maxread : buflen; 88 arc4random_buf(buf, buflen); 89 *retp = buflen;
|
| /src/external/mpl/bind/dist/lib/isc/include/isc/ |
| nonce.h | 30 isc_nonce_buf(void *buf, size_t buflen) { 31 isc_random_buf(buf, buflen); 34 * Fill 'buf', up to 'buflen' bytes, with random data from the
|
| /src/external/mpl/dhcp/dist/includes/ |
| ns_name.h | 45 int MRns_name_uncompress_list(const unsigned char*, int buflen, char*, size_t); 46 int MRns_name_compress_list(const char*, int buflen, unsigned char*, size_t);
|
| /src/external/gpl2/dtc/dist/tests/ |
| get_path.c | 21 static void check_path_buf(void *fdt, const char *path, int pathlen, int buflen) 24 char buf[buflen+1]; 33 len = fdt_get_path(fdt, offset, buf, buflen); 37 if (buflen <= pathlen) { 40 "insufficient buffer space", buflen, len); 43 FAIL("fdt_get_path([%d bytes]): %s", buflen, 47 "instead of 0", buflen, len); 50 "instead of \"%s\"", buflen, buf, path); 53 if (buf[buflen] != POISON) 54 FAIL("fdt_get_path([%d bytes]) overran buffer", buflen); [all...] |
| /src/external/bsd/libbind/dist/nameser/ |
| ns_print.c | 54 char **buf, size_t *buflen); 57 char **buf, size_t *buflen); 58 static void addlen(size_t len, char **buf, size_t *buflen); 60 char **buf, size_t *buflen); 62 char **buf, size_t *buflen); 86 char *buf, size_t buflen) 93 name_ctx, origin, buf, buflen); 108 char *buf, size_t buflen) 122 T(addstr("\t\t\t", 3, &buf, &buflen)); 128 T(addstr("@\t\t\t", 4, &buf, &buflen)); 160 addlen(strlen(buf), &buf, &buflen); local 330 addlen(strlen(buf), &buf, &buflen); local 421 addlen(strlen(buf), &buf, &buflen); local 660 addlen(strlen(buf), &buf, &buflen); local 683 addlen(strlen(buf), &buf, &buflen); local 953 addlen(strlen(buf), &buf, &buflen); local 958 addlen(strlen(buf), &buf, &buflen); local [all...] |
| /src/lib/libc/nameser/ |
| ns_print.c | 55 char **buf, size_t *buflen); 58 char **buf, size_t *buflen); 59 static void addlen(size_t len, char **buf, size_t *buflen); 61 char **buf, size_t *buflen); 63 char **buf, size_t *buflen); 92 char *buf, size_t buflen) 99 name_ctx, origin, buf, buflen); 114 char *buf, size_t buflen) 128 T(addstr("\t\t\t", (size_t)3, &buf, &buflen)); 134 T(addstr("@\t\t\t", (size_t)4, &buf, &buflen)); 167 addlen(strlen(buf), &buf, &buflen); local 337 addlen(strlen(buf), &buf, &buflen); local 429 addlen(strlen(buf), &buf, &buflen); local 700 addlen(strlen(buf), &buf, &buflen); local 975 addlen(strlen(buf), &buf, &buflen); local 980 addlen(strlen(buf), &buf, &buflen); local [all...] |
| /src/lib/libc/gen/ |
| getentropy.c | 51 getentropy(void *buf, size_t buflen) 53 size_t len = buflen; 56 if (buf == NULL && buflen > 0) { 61 if (buflen > 256) {
|
| /src/external/bsd/wpa/dist/src/fst/ |
| fst_ctrl_iface.h | 17 int fst_ctrl_iface_mb_info(const u8 *addr, char *buf, size_t buflen); 19 int fst_ctrl_iface_receive(const char *txtaddr, char *buf, size_t buflen); 26 fst_ctrl_iface_mb_info(const u8 *addr, char *buf, size_t buflen) 34 int fst_read_next_text_param(const char *params, char *buf, size_t buflen,
|
| /src/crypto/external/bsd/openssl/dist/crypto/ |
| o_str.c | 138 static int hexstr2buf_sep(unsigned char *buf, size_t buf_n, size_t *buflen, 173 if (buflen != NULL) 174 *buflen = cnt; 181 int OPENSSL_hexstr2buf_ex(unsigned char *buf, size_t buf_n, size_t *buflen, 184 return hexstr2buf_sep(buf, buf_n, buflen, str, sep); 187 unsigned char *ossl_hexstr2buf_sep(const char *str, long *buflen, 204 if (buflen != NULL) 205 *buflen = 0; 208 if (buflen != NULL) 209 *buflen = (long)tmp_buflen [all...] |
| /src/sys/arch/ia64/disasm/ |
| disasm_format.c | 116 asm_completer(const struct asm_cmpltr *c, char *buf, size_t buflen) 118 strlcpy(buf, asm_completers[c->c_type], buflen); 122 asm_mnemonic(enum asm_op op, char *buf, size_t buflen) 125 buflen); 129 asm_operand(const struct asm_oper *o, char *buf, size_t buflen, uint64_t ip) 166 snprintf(buf, buflen, "ar%d", (int)o->o_value); 169 snprintf(buf, buflen, "ar.%s", n); 173 snprintf(buf, buflen, "b%d", (int)o->o_value); 175 strlcpy(buf, "rp", buflen); 209 snprintf(buf, buflen, "cr%d", (int)o->o_value) [all...] |
| /src/external/gpl3/gdb/dist/gnulib/import/ |
| strerror_r.c | 40 _GL_EXTERN_C int __xpg_strerror_r (int errnum, char *buf, size_t buflen); 104 local_snprintf (char *buf, size_t buflen, const char *format, ...) 110 result = _vsnprintf (buf, buflen, format, args); 112 if (buflen > 0 && (result < 0 || result >= buflen)) 113 buf[buflen - 1] = '\0'; 121 Return 0 if MSG fit in BUFLEN, otherwise return ERANGE. */ 123 safe_copy (char *buf, size_t buflen, const char *msg) 126 size_t moved = len < buflen ? len : buflen - 1 [all...] |
| /src/external/gpl3/gdb.old/dist/gnulib/import/ |
| strerror_r.c | 40 _GL_EXTERN_C int __xpg_strerror_r (int errnum, char *buf, size_t buflen); 104 local_snprintf (char *buf, size_t buflen, const char *format, ...) 110 result = _vsnprintf (buf, buflen, format, args); 112 if (buflen > 0 && (result < 0 || result >= buflen)) 113 buf[buflen - 1] = '\0'; 121 Return 0 if MSG fit in BUFLEN, otherwise return ERANGE. */ 123 safe_copy (char *buf, size_t buflen, const char *msg) 126 size_t moved = len < buflen ? len : buflen - 1 [all...] |
| /src/lib/libc/stdio/ |
| getline.c | 42 getline(char **__restrict buf, size_t *__restrict buflen, FILE *__restrict fp) 44 return getdelim(buf, buflen, '\n', fp);
|
| /src/tests/usr.bin/nbperf/ |
| hash_driver.c | 43 size_t buflen; local 46 while ((len = getline(&line, &buflen, stdin)) > 0) {
|
| /src/external/mpl/dhcp/bind/dist/lib/isc/include/isc/ |
| nonce.h | 29 isc_nonce_buf(void *buf, size_t buflen); 31 * Fill 'buf', up to 'buflen' bytes, with random data from the
|
| /src/usr.bin/audiocfg/ |
| dtmf.c | 84 dtmf_new(int16_t **buf, size_t *buflen, unsigned int sample_rate, 90 oldlen = *buflen; 93 *buflen = oldlen + more; 94 *buf = realloc(*buf, *buflen); 137 size_t buflen; local 142 buflen = 0; 145 dtmf_new(bufp, &buflen, sample_rate, 2000, 147 dtmf_new(bufp, &buflen, sample_rate, 65, 157 dtmf_new(bufp, &buflen, sample_rate, 130, 161 dtmf_new(bufp, &buflen, sample_rate, 65 [all...] |