Searched refs:buf_len (Results 1 - 25 of 84) sorted by relevance

1234

/freebsd-9.3-release/contrib/ncurses/ncurses/tinfo/
H A Dsetbuf.c106 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-9.3-release/crypto/openssl/crypto/ec/
H A Dec_print.c64 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...]
/freebsd-9.3-release/contrib/wpa/src/crypto/
H A Daes-eax.c39 size_t buf_len; local
45 buf_len = nonce_len;
47 buf_len = data_len;
48 if (hdr_len > buf_len)
49 buf_len = hdr_len;
50 buf_len += 16;
52 buf = os_malloc(buf_len);
103 size_t buf_len; local
109 buf_len = nonce_len;
111 buf_len
[all...]
H A Dsha1-tprf.c29 * @buf_len: Number of bytes of key to generate
36 const u8 *seed, size_t seed_len, u8 *buf, size_t buf_len)
57 output_len[0] = (buf_len >> 8) & 0xff;
58 output_len[1] = buf_len & 0xff;
60 while (pos < buf_len) {
62 plen = buf_len - pos;
35 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 Dsha1.h25 const u8 *data, size_t data_len, u8 *buf, size_t buf_len);
27 const u8 *seed, size_t seed_len, u8 *buf, size_t buf_len);
H A Dsha256.h25 const u8 *data, size_t data_len, u8 *buf, size_t buf_len);
H A Dsha256.c117 * @buf_len: Number of bytes of key to generate
123 const u8 *data, size_t data_len, u8 *buf, size_t buf_len)
141 WPA_PUT_LE16(length_le, buf_len * 8);
143 while (pos < buf_len) {
144 plen = buf_len - pos;
122 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
/freebsd-9.3-release/contrib/wpa/src/eap_common/
H A Deap_peap_common.h20 u8 *buf, size_t buf_len);
H A Deap_peap_common.c23 u8 *buf, size_t buf_len)
66 extra[0] = buf_len & 0xff;
75 while (pos < buf_len) {
77 plen = buf_len - pos;
21 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-9.3-release/crypto/openssh/
H A Dcrypto_api.h19 #define randombytes(buf, buf_len) arc4random_buf((buf), (buf_len))
H A Dhmac.c33 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-9.3-release/crypto/heimdal/kadmin/
H A Dget.c124 format_keytype(krb5_key_data *k, krb5_salt *def_salt, char *buf, size_t buf_len) argument
134 strlcpy(buf, s, buf_len);
137 strlcat(buf, "(", buf_len);
145 strlcat(buf, s, buf_len);
155 strlcat(buf, s, buf_len);
158 strlcat(buf, ")", buf_len);
163 unsigned int subfield, char *buf, size_t buf_len, int condensed)
168 krb5_unparse_name_fixed_short(context, princ->principal, buf, buf_len);
170 krb5_unparse_name_fixed(context, princ->principal, buf, buf_len);
174 time_t2str(princ->princ_expire_time, buf, buf_len, !condense
162 format_field(kadm5_principal_ent_t princ, unsigned int field, unsigned int subfield, char *buf, size_t buf_len, int condensed) argument
[all...]
/freebsd-9.3-release/crypto/openssl/crypto/evp/
H A Dbio_b64.c85 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 Dbio_ok.c146 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 Dbio_enc.c81 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-9.3-release/lib/libc/posix1e/
H A Dacl_id_to_name.c57 _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 Dacl_support.h55 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-9.3-release/crypto/openssl/crypto/asn1/
H A Dt_pkey.c112 size_t buf_len = 0, i; local
115 buf_len = (size_t)BN_num_bytes(x->n);
117 if (buf_len < (i = (size_t)BN_num_bytes(x->e)))
118 buf_len = i;
120 if (buf_len < (i = (size_t)BN_num_bytes(x->d)))
121 buf_len = i;
123 if (buf_len < (i = (size_t)BN_num_bytes(x->p)))
124 buf_len = i;
126 if (buf_len < (i = (size_t)BN_num_bytes(x->q)))
127 buf_len
206 size_t buf_len = 0, i; local
291 size_t buf_len = 0, i; local
469 size_t buf_len = 0, i; local
647 size_t buf_len = 0, i; local
709 size_t buf_len = 0, i; local
[all...]
/freebsd-9.3-release/contrib/wpa/src/eap_peer/
H A Dmschapv2.h32 const u8 *buf, size_t buf_len);
H A Deap_fast_pac.c192 size_t buf_len; member in struct:eap_fast_read_ctx
201 if (fgets(rc->buf, rc->buf_len, rc->f) == NULL)
212 if (len >= rc->buf_len)
213 len = rc->buf_len - 1;
219 rc->buf[rc->buf_len - 1] = '\0';
265 rc->buf_len = 2048;
266 rc->buf = os_malloc(rc->buf_len);
477 static void eap_fast_write(char **buf, char **pos, size_t *buf_len, argument
493 if (*pos - *buf + need > *buf_len) {
494 char *nbuf = os_realloc(*buf, *buf_len
573 eap_fast_add_pac_data(struct eap_fast_pac *pac, char **buf, char **pos, size_t *buf_len) argument
623 size_t buf_len; local
[all...]
/freebsd-9.3-release/crypto/heimdal/lib/roken/
H A Dparse_reply-test.c55 size_t buf_len; member in struct:testcase
120 buf = p2 - t->buf_len;
121 memcpy (buf, t->buf, t->buf_len);
122 parse_reply (buf, t->buf_len);
/freebsd-9.3-release/sys/cam/ctl/
H A Dctl_backend_block.h59 uint32_t buf_len; /* passed in, buffer length */ member in struct:ctl_block_devlist
/freebsd-9.3-release/crypto/openssl/apps/
H A Decparam.c428 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...]
/freebsd-9.3-release/crypto/openssl/crypto/objects/
H A Dobj_dat.c451 int OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name) argument
460 if (buf && buf_len > 0)
473 BUF_strlcpy(buf, s, buf_len);
527 if (buf && (buf_len > 1)) {
530 buf_len--;
542 if (buf_len > 1) {
545 buf_len--;
547 BUF_strlcpy(buf, bndec, buf_len);
548 if (i > buf_len) {
549 buf += buf_len;
[all...]
/freebsd-9.3-release/contrib/wpa/src/ap/
H A Dpeerkey_auth.c92 size_t buf_len; local
122 buf_len = kde.rsn_ie_len + 2 + RSN_SELECTOR_LEN + ETH_ALEN;
123 buf = os_malloc(buf_len);
157 size_t buf_len; local
166 buf_len = 2 + RSN_SELECTOR_LEN + ETH_ALEN +
170 pos = buf = os_malloc(buf_len);
210 size_t buf_len; local
219 buf_len = kde->rsn_ie_len +
224 pos = buf = os_malloc(buf_len);

Completed in 297 milliseconds

1234