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

1234567

/freebsd-11-stable/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...]
H A Deck_prn.c147 size_t buf_len = 0, i; local
241 buf_len = (size_t)BN_num_bytes(p);
242 if (buf_len < (i = (size_t)BN_num_bytes(a)))
243 buf_len = i;
244 if (buf_len < (i = (size_t)BN_num_bytes(b)))
245 buf_len = i;
246 if (buf_len < (i = (size_t)BN_num_bytes(gen)))
247 buf_len = i;
248 if (buf_len < (i = (size_t)BN_num_bytes(order)))
249 buf_len
[all...]
/freebsd-11-stable/contrib/wpa/src/crypto/
H A Daes-eax.c33 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);
74 bin_clear_free(buf, buf_len);
97 size_t buf_len; local
103 buf_len
[all...]
H A Dsha256-prf.c24 * @buf_len: Number of bytes of key to generate
31 const u8 *data, size_t data_len, u8 *buf, size_t buf_len)
34 buf_len * 8);
46 * @buf_len: Number of bits of key to generate
50 * given key. If the requested buf_len is not divisible by eight, the least
64 size_t buf_len = (buf_len_bits + 7) / 8; local
77 while (pos < buf_len) {
78 plen = buf_len - pos;
30 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 Dsha1-tprf.c23 * @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 Dsha512-prf.c24 * @buf_len: Number of bytes of key to generate
31 const u8 *data, size_t data_len, u8 *buf, size_t buf_len)
34 buf_len * 8);
46 * @buf_len: Number of bits of key to generate
50 * given key. If the requested buf_len is not divisible by eight, the least
64 size_t buf_len = (buf_len_bits + 7) / 8; local
77 while (pos < buf_len) {
78 plen = buf_len - pos;
30 sha512_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 Dsha384-prf.c24 * @buf_len: Number of bytes of key to generate
31 const u8 *data, size_t data_len, u8 *buf, size_t buf_len)
34 buf_len * 8);
46 * @buf_len: Number of bits of key to generate
50 * given key. If the requested buf_len is not divisible by eight, the least
64 size_t buf_len = (buf_len_bits + 7) / 8; local
77 while (pos < buf_len) {
78 plen = buf_len - pos;
30 sha384_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 Dsha1-prf.c24 * @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 Dsha1.h19 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);
/freebsd-11-stable/contrib/wpa/src/eap_common/
H A Deap_peap_common.h14 u8 *buf, size_t buf_len);
H A Deap_peap_common.c17 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-11-stable/lib/libsbuf/tests/
H A Dsbuf_core_test.c51 ssize_t buf_len; local
76 buf_len = sbuf_len(sb);
77 ATF_REQUIRE_MSG(buf_len == 0, "sbuf_len (%zd) != 0", buf_len);
107 ssize_t buf_len, test_string_len; local
116 buf_len = sbuf_len(sb);
117 ATF_REQUIRE_MSG(buf_len == (ssize_t)(i * test_string_len),
118 "sbuf_len (%zd) != %zu", buf_len, i * test_string_len);
139 ssize_t buf_len; local
157 buf_len
183 test_string, buf_len); local
[all...]
/freebsd-11-stable/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-11-stable/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,
219 if (ctx->buf_len == 0)
223 if (ctx->buf_len <
[all...]
/freebsd-11-stable/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.h57 int _posix1e_acl_id_to_name(acl_tag_t tag, uid_t id, ssize_t buf_len,
59 int _posix1e_acl_perm_to_string(acl_perm_t perm, ssize_t buf_len,
/freebsd-11-stable/crypto/heimdal/kadmin/
H A Dget.c122 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-11-stable/contrib/byacc/
H A Dmstring.c18 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-11-stable/contrib/wpa/src/eap_peer/
H A Dmschapv2.h26 const u8 *buf, size_t buf_len);
/freebsd-11-stable/crypto/heimdal/lib/roken/
H A Dparse_reply-test.c52 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-11-stable/contrib/wpa/src/pae/
H A Dieee802_1x_key.c41 int lab_len, ctx_len, ret_len, buf_len; local
50 buf_len = lab_len + ctx_len + 4;
58 buf = os_zalloc(buf_len);
64 WPA_PUT_BE16(&buf[buf_len - 2], ret_bits);
71 res = omac1_aes_128(kdk, buf, buf_len, ret);
73 res = omac1_aes_256(kdk, buf, buf_len, ret);
/freebsd-11-stable/sys/compat/cloudabi/
H A Dcloudabi_random.c41 .iov_len = uap->buf_len

Completed in 150 milliseconds

1234567