Searched refs:bio (Results 1 - 25 of 122) sorted by relevance

12345

/external/pdfium/third_party/libopenjpeg20/
H A Dbio.c48 @param bio BIO handle
51 static void opj_bio_putbit(opj_bio_t *bio, OPJ_UINT32 b);
54 @param bio BIO handle
57 static OPJ_UINT32 opj_bio_getbit(opj_bio_t *bio);
60 @param bio BIO handle
63 static OPJ_BOOL opj_bio_byteout(opj_bio_t *bio);
66 @param bio BIO handle
69 static OPJ_BOOL opj_bio_bytein(opj_bio_t *bio);
81 static OPJ_BOOL opj_bio_byteout(opj_bio_t *bio) { argument
82 bio
91 opj_bio_bytein(opj_bio_t *bio) argument
101 opj_bio_putbit(opj_bio_t *bio, OPJ_UINT32 b) argument
109 opj_bio_getbit(opj_bio_t *bio) argument
124 opj_bio_t *bio = (opj_bio_t*)opj_malloc(sizeof(opj_bio_t)); local
128 opj_bio_destroy(opj_bio_t *bio) argument
134 opj_bio_numbytes(opj_bio_t *bio) argument
138 opj_bio_init_enc(opj_bio_t *bio, OPJ_BYTE *bp, OPJ_UINT32 len) argument
146 opj_bio_init_dec(opj_bio_t *bio, OPJ_BYTE *bp, OPJ_UINT32 len) argument
154 opj_bio_write(opj_bio_t *bio, OPJ_UINT32 v, OPJ_UINT32 n) argument
161 opj_bio_read(opj_bio_t *bio, OPJ_UINT32 n) argument
171 opj_bio_flush(opj_bio_t *bio) argument
183 opj_bio_inalign(opj_bio_t *bio) argument
[all...]
H A Dbio.h44 @file bio.h
79 @param bio BIO handle to destroy
81 void opj_bio_destroy(opj_bio_t *bio);
84 @param bio BIO handle
87 ptrdiff_t opj_bio_numbytes(opj_bio_t *bio);
90 @param bio BIO handle
94 void opj_bio_init_enc(opj_bio_t *bio, OPJ_BYTE *bp, OPJ_UINT32 len);
97 @param bio BIO handle
101 void opj_bio_init_dec(opj_bio_t *bio, OPJ_BYTE *bp, OPJ_UINT32 len);
104 @param bio BI
[all...]
/external/boringssl/src/crypto/bio/
H A Dbio.c57 #include <openssl/bio.h>
73 static int bio_set(BIO *bio, const BIO_METHOD *method) { argument
77 memset(bio, 0, sizeof(BIO));
79 bio->method = method;
80 bio->shutdown = 1;
81 bio->references = 1;
83 if (method->create != NULL && !method->create(bio)) {
105 int BIO_free(BIO *bio) { argument
108 for (; bio != NULL; bio
131 BIO_up_ref(BIO *bio) argument
136 BIO_vfree(BIO *bio) argument
140 BIO_free_all(BIO *bio) argument
144 bio_io(BIO *bio, void *buf, int len, size_t method_offset, int callback_flags, size_t *num) argument
189 BIO_read(BIO *bio, void *buf, int len) argument
194 BIO_gets(BIO *bio, char *buf, int len) argument
199 BIO_write(BIO *bio, const void *in, int inl) argument
204 BIO_puts(BIO *bio, const char *in) argument
208 BIO_flush(BIO *bio) argument
212 BIO_ctrl(BIO *bio, int cmd, long larg, void *parg) argument
256 BIO_reset(BIO *bio) argument
260 BIO_set_flags(BIO *bio, int flags) argument
264 BIO_test_flags(const BIO *bio, int flags) argument
268 BIO_should_read(const BIO *bio) argument
272 BIO_should_write(const BIO *bio) argument
276 BIO_should_retry(const BIO *bio) argument
280 BIO_should_io_special(const BIO *bio) argument
284 BIO_get_retry_reason(const BIO *bio) argument
286 BIO_clear_flags(BIO *bio, int flags) argument
290 BIO_set_retry_read(BIO *bio) argument
294 BIO_set_retry_write(BIO *bio) argument
300 BIO_get_retry_flags(BIO *bio) argument
304 BIO_clear_retry_flags(BIO *bio) argument
309 BIO_method_type(const BIO *bio) argument
311 BIO_copy_next_retry(BIO *bio) argument
317 BIO_callback_ctrl(BIO *bio, int cmd, bio_info_cb fp) argument
348 BIO_pending(const BIO *bio) argument
352 BIO_ctrl_pending(const BIO *bio) argument
356 BIO_wpending(const BIO *bio) argument
360 BIO_set_close(BIO *bio, int close_flag) argument
364 BIO_set_callback(BIO *bio, bio_info_cb callback_func) argument
368 BIO_set_callback_arg(BIO *bio, char *arg) argument
372 BIO_get_callback_arg(const BIO *bio) argument
376 BIO_number_read(const BIO *bio) argument
380 BIO_number_written(const BIO *bio) argument
384 BIO_push(BIO *bio, BIO *appended_bio) argument
400 BIO_pop(BIO *bio) argument
411 BIO_next(BIO *bio) argument
418 BIO_find_type(BIO *bio, int type) argument
444 BIO_indent(BIO *bio, unsigned indent, unsigned max_indent) argument
457 print_bio(const char *str, size_t len, void *bio) argument
461 BIO_print_errors(BIO *bio) argument
465 ERR_print_errors(BIO *bio) argument
477 bio_read_all(BIO *bio, uint8_t **out, size_t *out_len, const uint8_t *prefix, size_t prefix_len, size_t max_len) argument
528 BIO_read_asn1(BIO *bio, uint8_t **out, size_t *out_len, size_t max_len) argument
[all...]
H A Dbio_mem.c57 #include <openssl/bio.h>
97 static int mem_new(BIO *bio) { argument
107 bio->shutdown = 1;
108 bio->init = 1;
109 bio->num = -1;
110 bio->ptr = (char *)b;
115 static int mem_free(BIO *bio) { argument
118 if (bio == NULL) {
122 if (!bio->shutdown || !bio
135 mem_read(BIO *bio, char *out, int outl) argument
162 mem_write(BIO *bio, const char *in, int inl) argument
193 mem_gets(BIO *bio, char *buf, int size) argument
228 mem_ctrl(BIO *bio, int cmd, long num, void *ptr) argument
300 BIO_mem_contents(const BIO *bio, const uint8_t **out_contents, size_t *out_len) argument
313 BIO_get_mem_data(BIO *bio, char **contents) argument
317 BIO_get_mem_ptr(BIO *bio, BUF_MEM **out) argument
321 BIO_set_mem_buf(BIO *bio, BUF_MEM *b, int take_ownership) argument
325 BIO_set_mem_eof_return(BIO *bio, int eof_value) argument
[all...]
H A Dconnect.c57 #include <openssl/bio.h>
101 /* the file descriptor is kept in bio->num in order to match the socket
107 int (*info_callback)(const BIO *bio, int state, int ret);
167 static int conn_state(BIO *bio, BIO_CONNECT *c) { argument
205 &bio->num, &c->them, &c->them_length, c->param_hostname,
213 if (!bio_socket_nbio(bio->num, 1)) {
222 ret = setsockopt(bio->num, SOL_SOCKET, SO_KEEPALIVE, (char *)&i,
231 BIO_clear_retry_flags(bio);
232 ret = connect(bio->num, (struct sockaddr*) &c->them, c->them_length);
235 BIO_set_flags(bio, (BIO_FLAGS_IO_SPECIA
318 conn_new(BIO *bio) argument
326 conn_close_socket(BIO *bio) argument
341 conn_free(BIO *bio) argument
355 conn_read(BIO *bio, char *out, int out_len) argument
379 conn_write(BIO *bio, const char *in, int in_len) argument
403 conn_ctrl(BIO *bio, int cmd, long num, void *ptr) argument
491 conn_callback_ctrl(BIO *bio, int cmd, bio_info_cb fp) argument
534 BIO_set_conn_hostname(BIO *bio, const char *name) argument
538 BIO_set_conn_port(BIO *bio, const char *port_str) argument
542 BIO_set_nbio(BIO *bio, int on) argument
[all...]
H A Dsocket.c1 /* crypto/bio/bss_sock.c */
58 #include <openssl/bio.h>
82 static int sock_new(BIO *bio) { argument
83 bio->init = 0;
84 bio->num = 0;
85 bio->ptr = NULL;
86 bio->flags = 0;
90 static int sock_free(BIO *bio) { argument
91 if (bio == NULL) {
95 if (bio
[all...]
H A Dhexdump.c57 #include <openssl/bio.h>
65 BIO *bio; member in struct:hexdump_ctx
101 BIO_indent(ctx->bio, ctx->indent, UINT_MAX);
108 if (BIO_write(ctx->bio, buf, 10) < 0) {
128 if (BIO_write(ctx->bio, buf, l) < 0) {
137 if (BIO_write(ctx->bio, ctx->right_chars, sizeof(ctx->right_chars)) < 0) {
168 if (BIO_write(ctx->bio, buf, l) < 0) {
175 if (BIO_write(ctx->bio, ctx->right_chars, n_bytes + 2) < 0) {
181 int BIO_hexdump(BIO *bio, const uint8_t *data, size_t len, unsigned indent) { argument
184 ctx.bio
[all...]
H A Dfile.c75 #include <openssl/bio.h>
164 static int file_new(BIO *bio) { return 1; } argument
166 static int file_free(BIO *bio) { argument
167 if (bio == NULL) {
171 if (!bio->shutdown) {
175 if (bio->init && bio->ptr != NULL) {
176 fclose(bio->ptr);
177 bio->ptr = NULL;
179 bio
323 BIO_get_fp(BIO *bio, FILE **out_file) argument
327 BIO_set_fp(BIO *bio, FILE *file, int close_flag) argument
331 BIO_read_filename(BIO *bio, const char *filename) argument
336 BIO_write_filename(BIO *bio, const char *filename) argument
341 BIO_append_filename(BIO *bio, const char *filename) argument
346 BIO_rw_filename(BIO *bio, const char *filename) argument
[all...]
H A Dfd.c57 #include <openssl/bio.h>
133 static int fd_new(BIO *bio) { argument
135 bio->num = -1;
139 static int fd_free(BIO *bio) { argument
140 if (bio == NULL) {
144 if (bio->shutdown) {
145 if (bio->init) {
146 close(bio->num);
148 bio->init = 0;
264 int BIO_set_fd(BIO *bio, in argument
268 BIO_get_fd(BIO *bio, int *out_fd) argument
[all...]
H A Dpair.c53 #include <openssl/bio.h>
88 static int bio_new(BIO *bio) { argument
98 bio->ptr = b;
102 static void bio_destroy_pair(BIO *bio) { argument
103 struct bio_bio_st *b = bio->ptr;
119 assert(peer_b->peer == bio);
128 bio->init = 0;
134 static int bio_free(BIO *bio) { argument
137 if (bio == NULL) {
140 b = bio
173 BIO_zero_copy_get_read_buf(BIO* bio, uint8_t** out_read_buf, size_t* out_buf_offset, size_t* out_available_bytes) argument
220 BIO_zero_copy_get_read_buf_done(BIO* bio, size_t bytes_read) argument
303 BIO_zero_copy_get_write_buf(BIO* bio, uint8_t** out_write_buf, size_t* out_buf_offset, size_t* out_available_bytes) argument
354 BIO_zero_copy_get_write_buf_done(BIO* bio, size_t bytes_written) argument
405 bio_read(BIO *bio, char *buf, int size_) argument
491 bio_write(BIO *bio, const char *buf, int num_) argument
641 bio_ctrl(BIO *bio, int cmd, long num, void *ptr) argument
735 bio_puts(BIO *bio, const char *str) argument
793 BIO_ctrl_get_read_request(BIO *bio) argument
797 BIO_ctrl_get_write_guarantee(BIO *bio) argument
801 BIO_shutdown_wr(BIO *bio) argument
[all...]
H A Dbuffer.c57 #include <openssl/bio.h>
90 static int buffer_new(BIO *bio) { argument
110 bio->init = 1;
111 bio->ptr = (char *)ctx;
122 static int buffer_free(BIO *bio) { argument
125 if (bio == NULL || bio->ptr == NULL) {
129 ctx = (BIO_F_BUFFER_CTX *)bio->ptr;
132 OPENSSL_free(bio->ptr);
134 bio
141 buffer_read(BIO *bio, char *out, int outl) argument
490 BIO_set_read_buffer_size(BIO *bio, int buffer_size) argument
494 BIO_set_write_buffer_size(BIO *bio, int buffer_size) argument
[all...]
/external/libbrillo/brillo/streams/
H A Dopenssl_stream_bio.cc7 #include <openssl/bio.h>
17 int stream_write(BIO* bio, const char* buf, int size) { argument
18 brillo::Stream* stream = static_cast<brillo::Stream*>(bio->ptr);
20 BIO_clear_retry_flags(bio);
26 BIO_set_retry_write(bio);
32 int stream_read(BIO* bio, char* buf, int size) { argument
33 brillo::Stream* stream = static_cast<brillo::Stream*>(bio->ptr);
35 BIO_clear_retry_flags(bio);
43 BIO_set_retry_read(bio);
50 long stream_ctrl(BIO* bio, in argument
58 stream_new(BIO* bio) argument
65 stream_free(BIO* bio) argument
93 BIO* bio = BIO_new(&stream_method); local
[all...]
/external/libchrome/crypto/
H A Dopenssl_bio_string.cc7 #include <openssl/bio.h>
14 int bio_string_write(BIO* bio, const char* data, int len) { argument
15 reinterpret_cast<std::string*>(bio->ptr)->append(data, len);
19 int bio_string_puts(BIO* bio, const char* data) { argument
21 return bio_string_write(bio, data, strlen(data));
24 long bio_string_ctrl(BIO* bio, int cmd, long num, void* ptr) { argument
25 std::string* str = reinterpret_cast<std::string*>(bio->ptr);
41 int bio_string_new(BIO* bio) { argument
42 bio->ptr = NULL;
43 bio
47 bio_string_free(BIO* bio) argument
69 BIO* bio = BIO_new(&bio_string_methods); local
[all...]
H A Dopenssl_bio_string_unittest.cc7 #include <openssl/bio.h>
20 ScopedBIO bio(BIO_new_string(&s));
21 ASSERT_TRUE(bio.get());
24 BIO_printf(bio.get(), "a %s\nb %i\n", "one", 2));
27 EXPECT_EQ(1, BIO_flush(bio.get()));
31 BIO_write(bio.get(), expected2.data(), expected2.size()));
35 BIO_puts(bio.get(), expected3.c_str()));
46 ScopedBIO bio(BIO_new_string(&s));
47 ASSERT_TRUE(bio.get());
50 BIO_write(bio
[all...]
/external/boringssl/src/ssl/test/
H A Dasync_bio.cc34 AsyncBio *GetData(BIO *bio) { argument
35 if (bio->method != &g_async_bio_method) {
38 return (AsyncBio *)bio->ptr;
41 static int AsyncWrite(BIO *bio, const char *in, int inl) { argument
42 AsyncBio *a = GetData(bio);
43 if (a == NULL || bio->next_bio == NULL) {
48 return BIO_write(bio->next_bio, in, inl);
51 BIO_clear_retry_flags(bio);
54 BIO_set_retry_write(bio);
62 int ret = BIO_write(bio
71 AsyncRead(BIO *bio, char *out, int outl) argument
97 AsyncCtrl(BIO *bio, int cmd, long num, void *ptr) argument
107 AsyncNew(BIO *bio) argument
119 AsyncFree(BIO *bio) argument
131 AsyncCallbackCtrl(BIO *bio, int cmd, bio_info_cb fp) argument
166 AsyncBioAllowRead(BIO *bio, size_t count) argument
174 AsyncBioAllowWrite(BIO *bio, size_t count) argument
182 AsyncBioEnforceWriteQuota(BIO *bio, bool enforce) argument
[all...]
H A Dasync_bio.h18 #include <openssl/bio.h>
35 // AsyncBioAllowRead increments |bio|'s read quota by |count|.
36 void AsyncBioAllowRead(BIO *bio, size_t count);
38 // AsyncBioAllowWrite increments |bio|'s write quota by |count|.
39 void AsyncBioAllowWrite(BIO *bio, size_t count);
41 // AsyncBioEnforceWriteQuota configures where |bio| enforces its write quota.
42 void AsyncBioEnforceWriteQuota(BIO *bio, bool enforce);
H A Dpacketed_bio.cc33 // ReadAll reads |len| bytes from |bio| into |out|. It returns 1 on success and
35 static int ReadAll(BIO *bio, uint8_t *out, size_t len) { argument
41 int ret = BIO_read(bio, out, chunk_len);
51 static int PacketedWrite(BIO *bio, const char *in, int inl) { argument
52 if (bio->next_bio == NULL) {
56 BIO_clear_retry_flags(bio);
65 int ret = BIO_write(bio->next_bio, header, sizeof(header));
67 BIO_copy_next_retry(bio);
72 ret = BIO_write(bio->next_bio, in, inl);
74 BIO_copy_next_retry(bio);
81 PacketedRead(BIO *bio, char *out, int outl) argument
165 PacketedCtrl(BIO *bio, int cmd, long num, void *ptr) argument
175 PacketedNew(BIO *bio) argument
180 PacketedFree(BIO *bio) argument
189 PacketedCallbackCtrl(BIO *bio, int cmd, bio_info_cb fp) argument
[all...]
H A Dpacketed_bio.h19 #include <openssl/bio.h>
/external/boringssl/src/crypto/x509/
H A Dt_req.c68 BIO *bio = BIO_new(BIO_s_file()); local
69 if (bio == NULL) {
74 BIO_set_fp(bio, fp, BIO_NOCLOSE);
75 int ret = X509_REQ_print(bio, x);
76 BIO_free(bio);
80 int X509_REQ_print_ex(BIO *bio, X509_REQ *x, unsigned long nmflags, argument
100 if (BIO_write(bio, "Certificate Request:\n", 21) <= 0 ||
101 BIO_write(bio, " Data:\n", 10) <= 0) {
107 if (BIO_printf(bio, "%8sVersion: %ld (0x%lx)\n", "", l + 1, l) <= 0) {
112 if (BIO_printf(bio, " Subjec
244 X509_REQ_print(BIO *bio, X509_REQ *req) argument
[all...]
/external/boringssl/include/openssl/
H A Dbio.h83 /* BIO_free decrements the reference count of |bio|. If the reference count
86 * method, calls it. Finally it frees |bio| itself. It then repeats that for
90 OPENSSL_EXPORT int BIO_free(BIO *bio);
96 OPENSSL_EXPORT void BIO_vfree(BIO *bio);
98 /* BIO_up_ref increments the reference count of |bio| and returns it. */
99 OPENSSL_EXPORT BIO *BIO_up_ref(BIO *bio);
106 OPENSSL_EXPORT int BIO_read(BIO *bio, void *data, int len);
108 /* BIO_gets "reads a line" from |bio| and puts at most |size| bytes into |buf|.
116 OPENSSL_EXPORT int BIO_gets(BIO *bio, char *buf, int size);
120 OPENSSL_EXPORT int BIO_write(BIO *bio, cons
[all...]
/external/boringssl/src/include/openssl/
H A Dbio.h83 /* BIO_free decrements the reference count of |bio|. If the reference count
86 * method, calls it. Finally it frees |bio| itself. It then repeats that for
90 OPENSSL_EXPORT int BIO_free(BIO *bio);
96 OPENSSL_EXPORT void BIO_vfree(BIO *bio);
98 /* BIO_up_ref increments the reference count of |bio| and returns it. */
99 OPENSSL_EXPORT BIO *BIO_up_ref(BIO *bio);
106 OPENSSL_EXPORT int BIO_read(BIO *bio, void *data, int len);
108 /* BIO_gets "reads a line" from |bio| and puts at most |size| bytes into |buf|.
116 OPENSSL_EXPORT int BIO_gets(BIO *bio, char *buf, int size);
120 OPENSSL_EXPORT int BIO_write(BIO *bio, cons
[all...]
/external/google-tv-pairing-protocol/cpp/src/polo/util/
H A Dcertificateutil.cc25 BIO* bio = BIO_new_mem_buf(&pem[0], pem.size()); local
26 X509* x509 = PEM_read_bio_X509(bio, NULL, 0, NULL);
27 BIO_free(bio);
41 BIO* bio = BIO_new(BIO_s_mem()); local
42 PEM_write_bio_X509(bio, x509);
43 BIO_flush(bio);
46 size_t data_size = BIO_get_mem_data(bio, &data);
49 BIO_free(bio);
56 BIO* bio = BIO_new_mem_buf(&pem[0], pem.size()); local
57 EVP_PKEY* pkey = PEM_read_bio_PrivateKey(bio, NUL
65 BIO* bio = BIO_new(BIO_s_mem()); local
[all...]
/external/boringssl/src/crypto/pem/
H A Dpem_x509.c59 #include <openssl/bio.h>
H A Dpem_xaux.c59 #include <openssl/bio.h>
/external/tlsdate/src/
H A Dproxy-bio-plan9.h2 * proxy-bio.h - BIO layer for transparent proxy connections
14 #include <openssl/bio.h>

Completed in 1437 milliseconds

12345