Home
last modified time | relevance | path

Searched refs:buf_len (Results 1 – 25 of 75) sorted by relevance

123

/openssl/crypto/evp/
H A Dbio_b64.c34 int buf_len; member
133 ctx->buf_len = 0; in b64_read()
140 if (ctx->buf_len > 0) { in b64_read()
152 ctx->buf_len = 0; in b64_read()
293 ctx->buf_len = 0; in b64_read()
298 i = ctx->buf_len; in b64_read()
306 ctx->buf_len = 0; in b64_read()
334 ctx->buf_len = 0; in b64_write()
358 ctx->buf_len = 0; in b64_write()
415 n = ctx->buf_len; in b64_write()
[all …]
H A Dbio_ok.c99 size_t buf_len; member
208 ctx->buf_len = 0; in ok_read()
219 n = IOBS - ctx->buf_len; in ok_read()
225 ctx->buf_len += i; in ok_read()
275 n = ctx->buf_len - ctx->buf_off; in ok_write()
302 ctx->buf_len += n; in ok_write()
333 ctx->buf_len = 0; in ok_ctrl()
461 ctx->buf_len += md_size; in sig_out()
467 ctx->buf_len += md_size; in sig_out()
515 ctx->buf_len -= ctx->buf_off; in sig_in()
[all …]
H A Dbio_enc.c30 int buf_len; member
119 if (ctx->buf_len > 0) { in enc_read()
129 ctx->buf_len = 0; in enc_read()
187 ret += buf_len; in enc_read()
188 out += buf_len; in enc_read()
189 outl -= buf_len; in enc_read()
214 if (ctx->buf_len == 0) in enc_read()
218 if (ctx->buf_len <= outl) in enc_read()
219 i = ctx->buf_len; in enc_read()
279 n = ctx->buf_len; in enc_write()
[all …]
/openssl/crypto/ec/
H A Dec_deprecated.c26 size_t buf_len = 0; in EC_POINT_point2bn() local
29 buf_len = EC_POINT_point2buf(group, point, form, &buf, ctx); in EC_POINT_point2bn()
31 if (buf_len == 0) in EC_POINT_point2bn()
34 ret = BN_bin2bn(buf, buf_len, ret); in EC_POINT_point2bn()
44 size_t buf_len = 0; in EC_POINT_bn2point() local
48 if ((buf_len = BN_num_bytes(bn)) == 0) in EC_POINT_bn2point()
49 buf_len = 1; in EC_POINT_bn2point()
50 if ((buf = OPENSSL_malloc(buf_len)) == NULL) in EC_POINT_bn2point()
53 if (BN_bn2binpad(bn, buf, buf_len) < 0) { in EC_POINT_bn2point()
66 if (!EC_POINT_oct2point(group, ret, buf, buf_len, ctx)) { in EC_POINT_bn2point()
H A Dec_print.c21 size_t buf_len, i; in EC_POINT_point2hex() local
24 buf_len = EC_POINT_point2buf(group, point, form, &buf, ctx); in EC_POINT_point2hex()
26 if (buf_len == 0) in EC_POINT_point2hex()
29 ret = OPENSSL_malloc(buf_len * 2 + 2); in EC_POINT_point2hex()
34 for (i = 0; i < buf_len; ++i) in EC_POINT_point2hex()
/openssl/include/internal/
H A Dring_buf.h96 if (buf_len < l) in ring_buf_write_at()
97 l = buf_len; in ring_buf_write_at()
105 buf_len -= l; in ring_buf_write_at()
108 assert(buf_len == 0); in ring_buf_write_at()
122 if (buf_len > avail) in ring_buf_push()
123 buf_len = avail; in ring_buf_push()
128 if (buf_len == 0) in ring_buf_push()
133 if (buf_len < l) in ring_buf_push()
134 l = buf_len; in ring_buf_push()
185 *buf_len = 0; in ring_buf_get_buf_at()
[all …]
/openssl/demos/encrypt/
H A Drsa_encrypt.c101 size_t buf_len = 0; in do_encrypt() local
126 if (EVP_PKEY_encrypt(ctx, NULL, &buf_len, in, in_len) <= 0) { in do_encrypt()
130 buf = OPENSSL_zalloc(buf_len); in do_encrypt()
135 if (EVP_PKEY_encrypt(ctx, buf, &buf_len, in, in_len) <= 0) { in do_encrypt()
139 *out_len = buf_len; in do_encrypt()
142 BIO_dump_indent_fp(stdout, buf, buf_len, 2); in do_encrypt()
158 size_t buf_len = 0; in do_decrypt() local
189 buf = OPENSSL_zalloc(buf_len); in do_decrypt()
194 if (EVP_PKEY_decrypt(ctx, buf, &buf_len, in, in_len) <= 0) { in do_decrypt()
198 *out_len = buf_len; in do_decrypt()
[all …]
/openssl/doc/designs/ddd/
H A Dddd-06-mem-uv.c47 size_t buf_len, written; member
204 write_deferred(conn, buf, buf_len, cb, arg); in app_write()
206 return buf_len; in app_write()
297 int buf_len = 4096; in on_rx_push() local
303 void *buf = malloc(buf_len); in on_rx_push()
318 } while (srd == buf_len); in on_rx_push()
607 while (written < op->buf_len) { in try_write()
638 op->buf_len = buf_len; in write_deferred()
646 return buf_len; in write_deferred()
678 if (!buf_len) { in post_read()
[all …]
H A Dddd-05-mem-nonblocking.c139 int tx(APP_CONN *conn, const void *buf, int buf_len) argument
143 l = BIO_write(conn->ssl_bio, buf, buf_len);
168 int rx(APP_CONN *conn, void *buf, int buf_len) argument
172 l = BIO_read(conn->ssl_bio, buf, buf_len);
198 int read_net_tx(APP_CONN *conn, void *buf, int buf_len) argument
200 return BIO_read(conn->net_bio, buf, buf_len);
209 int write_net_rx(APP_CONN *conn, const void *buf, int buf_len) argument
211 return BIO_write(conn->net_bio, buf, buf_len);
H A Dddd-01-conn-blocking.c101 int tx(BIO *bio, const void *buf, int buf_len) in tx() argument
103 return BIO_write(bio, buf, buf_len); in tx()
110 int rx(BIO *bio, void *buf, int buf_len) in rx() argument
112 return BIO_read(bio, buf, buf_len); in rx()
H A Dddd-03-fd-blocking.c94 int tx(SSL *ssl, const void *buf, int buf_len) in tx() argument
96 return SSL_write(ssl, buf, buf_len); in tx()
103 int rx(SSL *ssl, void *buf, int buf_len) in rx() argument
105 return SSL_read(ssl, buf, buf_len); in rx()
H A Dddd-02-conn-nonblocking-threads.c140 int tx(APP_CONN *conn, const void *buf, int buf_len) in tx() argument
146 l = BIO_write(conn->ssl_bio, buf, buf_len); in tx()
165 int rx(APP_CONN *conn, void *buf, int buf_len) in rx() argument
171 l = BIO_read(conn->ssl_bio, buf, buf_len); in rx()
H A Dddd-02-conn-nonblocking.c152 int tx(APP_CONN *conn, const void *buf, int buf_len) in tx() argument
158 l = BIO_write(conn->ssl_bio, buf, buf_len); in tx()
177 int rx(APP_CONN *conn, void *buf, int buf_len) in rx() argument
183 l = BIO_read(conn->ssl_bio, buf, buf_len); in rx()
H A Dddd-04-fd-nonblocking.c114 int tx(APP_CONN *conn, const void *buf, int buf_len) in tx() argument
120 l = SSL_write(conn->ssl, buf, buf_len); in tx()
143 int rx(APP_CONN *conn, void *buf, int buf_len) in rx() argument
149 l = SSL_read(conn->ssl, buf, buf_len); in rx()
/openssl/crypto/objects/
H A Dobj_dat.c478 if (buf != NULL && buf_len > 0) in OBJ_obj2txt()
569 buf_len--; in OBJ_obj2txt()
581 if (buf_len > 1) { in OBJ_obj2txt()
584 buf_len--; in OBJ_obj2txt()
587 if (i > buf_len) { in OBJ_obj2txt()
588 buf += buf_len; in OBJ_obj2txt()
589 buf_len = 0; in OBJ_obj2txt()
592 buf_len -= i; in OBJ_obj2txt()
603 if (i > buf_len) { in OBJ_obj2txt()
605 buf_len = 0; in OBJ_obj2txt()
[all …]
/openssl/apps/
H A Ds_time.c130 int min_version = 0, max_version = 0, ver, buf_len, fd; in s_time_main() local
283 buf_len = BIO_snprintf(buf, sizeof(buf), fmt_http_get_cmd, in s_time_main()
285 if (buf_len <= 0 || SSL_write(scon, buf, buf_len) <= 0) in s_time_main()
337 buf_len = BIO_snprintf(buf, sizeof(buf), fmt_http_get_cmd, www_path); in s_time_main()
338 if (buf_len <= 0 || SSL_write(scon, buf, buf_len) <= 0) in s_time_main()
364 buf_len = BIO_snprintf(buf, sizeof(buf), fmt_http_get_cmd, in s_time_main()
366 if (buf_len <= 0 || SSL_write(scon, buf, buf_len) <= 0) in s_time_main()
H A Dpkeyutl.c775 int buf_len = 0; in do_raw_keyop() local
788 buf_len = BIO_read(in, mbuf, filesize); in do_raw_keyop()
789 if (buf_len != filesize) { in do_raw_keyop()
796 buf_len = BIO_read(in, mbuf, filesize); in do_raw_keyop()
797 if (buf_len != filesize) { in do_raw_keyop()
814 buf_len = BIO_read(in, tbuf, TBUF_MAXSIZE); in do_raw_keyop()
815 if (buf_len == 0) in do_raw_keyop()
817 if (buf_len < 0) { in do_raw_keyop()
831 buf_len = BIO_read(in, tbuf, TBUF_MAXSIZE); in do_raw_keyop()
832 if (buf_len == 0) in do_raw_keyop()
[all …]
/openssl/ssl/quic/
H A Dquic_sstream.c151 iov[num_iov_].buf_len = src_len; in ossl_quic_sstream_get_stream_frame()
284 size_t buf_len, in ossl_quic_sstream_append() argument
307 while (buf_len > 0) { in ossl_quic_sstream_append()
308 l = ring_buf_push(&qss->ring_buf, buf, buf_len); in ossl_quic_sstream_append()
313 buf_len -= l; in ossl_quic_sstream_append()
410 iovlen = iov[i].buf_len; in ossl_quic_sstream_adjust_iov()
413 iov[i].buf_len = 0; in ossl_quic_sstream_adjust_iov()
415 iov[i].buf_len = len - running; in ossl_quic_sstream_adjust_iov()
/openssl/test/
H A Dquic_qlog_test.c84 size_t buf_len = 0; in test_qlog() local
141 buf_len = BIO_get_mem_data(bio, &buf); in test_qlog()
142 if (!TEST_size_t_gt(buf_len, 0)) in test_qlog()
145 if (!TEST_mem_eq(buf, buf_len, expected, sizeof(expected))) in test_qlog()
H A Dquic_stream_test.c20 total_len += iov[i].buf_len; in compare_iov()
26 if (memcmp(cur, iov[i].buf, iov[i].buf_len)) in compare_iov()
29 cur += iov[i].buf_len; in compare_iov()
314 if (!TEST_size_t_le(iov[j].buf_len + rd, expected)) in test_sstream_bulk()
317 memcpy(dst_cur, iov[j].buf, iov[j].buf_len); in test_sstream_bulk()
318 dst_cur += iov[j].buf_len; in test_sstream_bulk()
319 cur_rd += iov[j].buf_len; in test_sstream_bulk()
H A Dcmsapitest.c356 long buf_len = 0; in test_d2i_CMS_decode() local
368 if (!TEST_ptr(buf = read_all(bio, &buf_len))) in test_d2i_CMS_decode()
371 if (!TEST_ptr(cms = d2i_CMS_ContentInfo(NULL, &tmp, buf_len))) in test_d2i_CMS_decode()
/openssl/crypto/
H A Dquic_vlint.c63 int ossl_quic_vlint_decode(const unsigned char *buf, size_t buf_len, uint64_t *v) in ossl_quic_vlint_decode() argument
68 if (buf_len < 1) in ossl_quic_vlint_decode()
72 if (buf_len < dec_len) in ossl_quic_vlint_decode()
/openssl/crypto/asn1/
H A Da_sign.c155 int signid, paramtype, buf_len = 0; in ASN1_item_sign_ctx() local
256 buf_len = ASN1_item_i2d(data, &buf_in, it); in ASN1_item_sign_ctx()
257 if (buf_len <= 0) { in ASN1_item_sign_ctx()
262 inl = buf_len; in ASN1_item_sign_ctx()
/openssl/providers/implementations/ciphers/
H A Dcipher_chacha20_poly1305_hw.c124 size_t tail, tohash_len, buf_len, plen = ctx->tls_payload_length; in chacha20_poly1305_tls_cipher() local
136 buf_len = (plen + 2 * CHACHA_BLK_SIZE - 1) & (0 - CHACHA_BLK_SIZE); in chacha20_poly1305_tls_cipher()
137 ChaCha20_ctr32(buf, zero, buf_len, ctx->chacha.key.d, ctx->chacha.counter); in chacha20_poly1305_tls_cipher()
161 ChaCha20_ctr32(buf, zero, (buf_len = 2 * CHACHA_BLK_SIZE), in chacha20_poly1305_tls_cipher()
193 ChaCha20_ctr32(buf, zero, (buf_len = CHACHA_BLK_SIZE), in chacha20_poly1305_tls_cipher()
242 OPENSSL_cleanse(buf, buf_len); in chacha20_poly1305_tls_cipher()
/openssl/test/helpers/
H A Dquictestlib.c722 bufsz += iovecin[i].buf_len; in packet_plain_mutate()
724 fault->pplainio.buf_len = bufsz; in packet_plain_mutate()
731 fault->pplainio.buf_len = 0; in packet_plain_mutate()
739 memcpy(cur, iovecin[i].buf, iovecin[i].buf_len); in packet_plain_mutate()
740 cur += iovecin[i].buf_len; in packet_plain_mutate()
749 fault->pplainio.buf_len, fault->pplaincbarg)) in packet_plain_mutate()
765 fault->pplainio.buf_len = 0; in packet_plain_finish()
787 size_t oldlen = fault->pplainio.buf_len; in qtest_fault_resize_plain_packet()
809 fault->pplainio.buf_len = newlen; in qtest_fault_resize_plain_packet()
834 old_len = fault->pplainio.buf_len; in qtest_fault_prepend_frame()

Completed in 53 milliseconds

123