/freebsd-10.1-release/contrib/ncurses/ncurses/tinfo/ |
H A D | setbuf.c | 106 unsigned buf_len; local 117 buf_len = min(LINES * (COLS + 6), 2800); 119 if ((buf_ptr = typeMalloc(char, buf_len)) == NULL) 132 buf_len = 0; 139 (void) setvbuf(ofp, buf_ptr, buf_len, buf_len ? _IOFBF : _IOLBF); 141 (void) setvbuf(ofp, buf_ptr, buf_len ? _IOFBF : _IOLBF, buf_len); 144 (void) setbuffer(ofp, buf_ptr, (int) buf_len);
|
/freebsd-10.1-release/crypto/openssl/crypto/ec/ |
H A D | ec_print.c | 64 size_t buf_len = 0; local 67 buf_len = EC_POINT_point2oct(group, point, form, NULL, 0, ctx); 68 if (buf_len == 0) 71 if ((buf = OPENSSL_malloc(buf_len)) == NULL) 74 if (!EC_POINT_point2oct(group, point, form, buf, buf_len, ctx)) { 79 ret = BN_bin2bn(buf, buf_len, ret); 89 size_t buf_len = 0; local 93 if ((buf_len = BN_num_bytes(bn)) == 0) 95 buf = OPENSSL_malloc(buf_len); 112 if (!EC_POINT_oct2point(group, ret, buf, buf_len, ct 131 size_t buf_len = 0, i; local [all...] |
H A D | eck_prn.c | 147 size_t buf_len = 0, i; local 233 buf_len = (size_t)BN_num_bytes(p); 234 if (buf_len < (i = (size_t)BN_num_bytes(a))) 235 buf_len = i; 236 if (buf_len < (i = (size_t)BN_num_bytes(b))) 237 buf_len = i; 238 if (buf_len < (i = (size_t)BN_num_bytes(gen))) 239 buf_len = i; 240 if (buf_len < (i = (size_t)BN_num_bytes(order))) 241 buf_len [all...] |
/freebsd-10.1-release/contrib/wpa/src/crypto/ |
H A D | aes-eax.c | 33 size_t buf_len; local 39 buf_len = nonce_len; 41 buf_len = data_len; 42 if (hdr_len > buf_len) 43 buf_len = hdr_len; 44 buf_len += 16; 46 buf = os_malloc(buf_len); 97 size_t buf_len; local 103 buf_len = nonce_len; 105 buf_len [all...] |
H A D | sha256-prf.c | 24 * @buf_len: Number of bytes of key to generate 30 const u8 *data, size_t data_len, u8 *buf, size_t buf_len) 48 WPA_PUT_LE16(length_le, buf_len * 8); 50 while (pos < buf_len) { 51 plen = buf_len - pos; 29 sha256_prf(const u8 *key, size_t key_len, const char *label, const u8 *data, size_t data_len, u8 *buf, size_t buf_len) argument
|
H A D | sha1-tprf.c | 23 * @buf_len: Number of bytes of key to generate 30 const u8 *seed, size_t seed_len, u8 *buf, size_t buf_len) 51 output_len[0] = (buf_len >> 8) & 0xff; 52 output_len[1] = buf_len & 0xff; 54 while (pos < buf_len) { 56 plen = buf_len - pos; 29 sha1_t_prf(const u8 *key, size_t key_len, const char *label, const u8 *seed, size_t seed_len, u8 *buf, size_t buf_len) argument
|
H A D | sha1-prf.c | 24 * @buf_len: Number of bytes of key to generate 31 const u8 *data, size_t data_len, u8 *buf, size_t buf_len) 48 while (pos < buf_len) { 49 plen = buf_len - pos; 30 sha1_prf(const u8 *key, size_t key_len, const char *label, const u8 *data, size_t data_len, u8 *buf, size_t buf_len) argument
|
H A D | sha1.h | 19 const u8 *data, size_t data_len, u8 *buf, size_t buf_len); 21 const u8 *seed, size_t seed_len, u8 *buf, size_t buf_len);
|
H A D | sha256.h | 19 const u8 *data, size_t data_len, u8 *buf, size_t buf_len);
|
/freebsd-10.1-release/contrib/wpa/src/eap_common/ |
H A D | eap_peap_common.h | 14 u8 *buf, size_t buf_len);
|
H A D | eap_peap_common.c | 17 u8 *buf, size_t buf_len) 60 extra[0] = buf_len & 0xff; 69 while (pos < buf_len) { 71 plen = buf_len - pos; 15 peap_prfplus(int version, const u8 *key, size_t key_len, const char *label, const u8 *seed, size_t seed_len, u8 *buf, size_t buf_len) argument
|
/freebsd-10.1-release/crypto/openssh/ |
H A D | crypto_api.h | 19 #define randombytes(buf, buf_len) arc4random_buf((buf), (buf_len))
|
H A D | hmac.c | 33 size_t buf_len; member in struct:ssh_hmac_ctx 54 ret->buf_len = ssh_digest_blocksize(ret->ictx); 55 if ((ret->buf = calloc(1, ret->buf_len)) == NULL) 71 if (klen <= ctx->buf_len) 74 ctx->buf_len) < 0) 76 for (i = 0; i < ctx->buf_len; i++) 78 if (ssh_digest_update(ctx->ictx, ctx->buf, ctx->buf_len) < 0) 80 for (i = 0; i < ctx->buf_len; i++) 82 if (ssh_digest_update(ctx->octx, ctx->buf, ctx->buf_len) < 0) 84 explicit_bzero(ctx->buf, ctx->buf_len); [all...] |
/freebsd-10.1-release/crypto/openssl/crypto/evp/ |
H A D | bio_b64.c | 85 int buf_len; member in struct:b64_struct 122 ctx->buf_len = 0; 165 ctx->buf_len = 0; 172 if (ctx->buf_len > 0) { 173 OPENSSL_assert(ctx->buf_len >= ctx->buf_off); 174 i = ctx->buf_len - ctx->buf_off; 183 if (ctx->buf_len == ctx->buf_off) { 184 ctx->buf_len = 0; 322 ctx->buf_len = 0; 324 ctx->buf_len [all...] |
H A D | bio_ok.c | 146 size_t buf_len; member in struct:ok_struct 183 ctx->buf_len = 0; 229 i = ctx->buf_len - ctx->buf_off; 239 if (ctx->buf_len == ctx->buf_off) { 246 ctx->buf_len = ctx->buf_len_save - ctx->buf_off_save; 248 ctx->buf_len); 250 ctx->buf_len = 0; 261 n = IOBS - ctx->buf_len; 262 i = BIO_read(b->next_bio, &(ctx->buf[ctx->buf_len]), n); 267 ctx->buf_len [all...] |
H A D | bio_enc.c | 81 int buf_len; member in struct:enc_struct 120 ctx->buf_len = 0; 161 if (ctx->buf_len > 0) { 162 i = ctx->buf_len - ctx->buf_off; 170 if (ctx->buf_len == ctx->buf_off) { 171 ctx->buf_len = 0; 196 &(ctx->buf_len)); 205 (unsigned char *)ctx->buf, &ctx->buf_len, 214 if (ctx->buf_len == 0) 218 if (ctx->buf_len < [all...] |
/freebsd-10.1-release/lib/libc/posix1e/ |
H A D | acl_id_to_name.c | 57 _posix1e_acl_id_to_name(acl_tag_t tag, uid_t id, ssize_t buf_len, char *buf, argument 71 i = snprintf(buf, buf_len, "%d", id); 73 i = snprintf(buf, buf_len, "%s", p->pw_name); 87 i = snprintf(buf, buf_len, "%d", id); 89 i = snprintf(buf, buf_len, "%s", g->gr_name);
|
H A D | acl_support.h | 55 int _posix1e_acl_id_to_name(acl_tag_t tag, uid_t id, ssize_t buf_len, 57 int _posix1e_acl_perm_to_string(acl_perm_t perm, ssize_t buf_len,
|
/freebsd-10.1-release/crypto/heimdal/kadmin/ |
H A D | get.c | 122 format_keytype(krb5_key_data *k, krb5_salt *def_salt, char *buf, size_t buf_len) argument 132 strlcpy(buf, s, buf_len); 135 strlcat(buf, "(", buf_len); 143 strlcat(buf, s, buf_len); 153 strlcat(buf, s, buf_len); 156 strlcat(buf, ")", buf_len); 161 unsigned int subfield, char *buf, size_t buf_len, int condensed) 166 krb5_unparse_name_fixed_short(context, princ->principal, buf, buf_len); 168 krb5_unparse_name_fixed(context, princ->principal, buf, buf_len); 172 time_t2str(princ->princ_expire_time, buf, buf_len, !condense 160 format_field(kadm5_principal_ent_t princ, unsigned int field, unsigned int subfield, char *buf, size_t buf_len, int condensed) argument [all...] |
/freebsd-10.1-release/contrib/byacc/ |
H A D | mstring.c | 18 static size_t buf_len; variable 32 if (buf_len == 0) 34 buf_ptr = malloc(buf_len = 4096); 45 len = (size_t) vsnprintf(buf_ptr, buf_len, fmt, args); 47 if ((changed = (len > buf_len)) != 0) 49 char *new_ptr = realloc(buf_ptr, (buf_len * 3) / 2); 64 if (len >= buf_len) 204 buf_len = 0;
|
/freebsd-10.1-release/contrib/wpa/src/eap_peer/ |
H A D | mschapv2.h | 26 const u8 *buf, size_t buf_len);
|
H A D | eap_fast_pac.c | 186 size_t buf_len; member in struct:eap_fast_read_ctx 195 if (fgets(rc->buf, rc->buf_len, rc->f) == NULL) 206 if (len >= rc->buf_len) 207 len = rc->buf_len - 1; 213 rc->buf[rc->buf_len - 1] = '\0'; 259 rc->buf_len = 2048; 260 rc->buf = os_malloc(rc->buf_len); 475 static void eap_fast_write(char **buf, char **pos, size_t *buf_len, argument 491 if (*pos - *buf + need > *buf_len) { 492 char *nbuf = os_realloc(*buf, *buf_len 572 eap_fast_add_pac_data(struct eap_fast_pac *pac, char **buf, char **pos, size_t *buf_len) argument 622 size_t buf_len; local [all...] |
/freebsd-10.1-release/crypto/heimdal/lib/roken/ |
H A D | parse_reply-test.c | 52 size_t buf_len; member in struct:testcase 117 buf = p2 - t->buf_len; 118 memcpy (buf, t->buf, t->buf_len); 119 parse_reply (buf, t->buf_len);
|
/freebsd-10.1-release/sys/cam/ctl/ |
H A D | ctl_backend_block.h | 59 uint32_t buf_len; /* passed in, buffer length */ member in struct:ctl_block_devlist
|
/freebsd-10.1-release/crypto/openssl/apps/ |
H A D | ecparam.c | 428 size_t buf_len = 0, tmp_len = 0; local 467 if ((tmp_len = (size_t)BN_num_bytes(ec_p)) > buf_len) 468 buf_len = tmp_len; 469 if ((tmp_len = (size_t)BN_num_bytes(ec_a)) > buf_len) 470 buf_len = tmp_len; 471 if ((tmp_len = (size_t)BN_num_bytes(ec_b)) > buf_len) 472 buf_len = tmp_len; 473 if ((tmp_len = (size_t)BN_num_bytes(ec_gen)) > buf_len) 474 buf_len = tmp_len; 475 if ((tmp_len = (size_t)BN_num_bytes(ec_order)) > buf_len) [all...] |