/external/pdfium/core/src/fxcodec/fx_libopenjpeg/libopenjpeg20/ |
H A D | bio.c | 48 @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 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 185 opj_bio_inalign(opj_bio_t *bio) argument [all...] |
H A D | bio.h | 44 @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/chromium_org/third_party/boringssl/src/crypto/bio/ |
H A D | bio.c | 57 #include <openssl/bio.h> 70 static int bio_set(BIO *bio, const BIO_METHOD *method) { argument 74 memset(bio, 0, sizeof(BIO)); 76 bio->method = method; 77 bio->shutdown = 1; 78 bio->references = 1; 80 if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_BIO, bio, &bio->ex_data)) { 85 if (!method->create(bio)) { 86 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_BIO, bio, 109 BIO_free(BIO *bio) argument 138 BIO_vfree(BIO *bio) argument 142 BIO_free_all(BIO *bio) argument 146 bio_io(BIO *bio, void *buf, int len, size_t method_offset, int callback_flags, size_t *num) argument 191 BIO_read(BIO *bio, void *buf, int len) argument 196 BIO_gets(BIO *bio, char *buf, int len) argument 201 BIO_write(BIO *bio, const void *in, int inl) argument 206 BIO_puts(BIO *bio, const char *in) argument 210 BIO_flush(BIO *bio) argument 214 BIO_ctrl(BIO *bio, int cmd, long larg, void *parg) argument 258 BIO_reset(BIO *bio) argument 262 BIO_set_flags(BIO *bio, int flags) argument 266 BIO_test_flags(const BIO *bio, int flags) argument 270 BIO_should_read(const BIO *bio) argument 274 BIO_should_write(const BIO *bio) argument 278 BIO_should_retry(const BIO *bio) argument 282 BIO_should_io_special(const BIO *bio) argument 286 BIO_get_retry_reason(const BIO *bio) argument 288 BIO_clear_flags(BIO *bio, int flags) argument 292 BIO_set_retry_read(BIO *bio) argument 296 BIO_set_retry_write(BIO *bio) argument 302 BIO_get_retry_flags(BIO *bio) argument 306 BIO_clear_retry_flags(BIO *bio) argument 311 BIO_method_type(const BIO *bio) argument 313 BIO_copy_next_retry(BIO *bio) argument 319 BIO_callback_ctrl(BIO *bio, int cmd, bio_info_cb fp) argument 350 BIO_pending(const BIO *bio) argument 354 BIO_ctrl_pending(const BIO *bio) argument 358 BIO_wpending(const BIO *bio) argument 362 BIO_set_close(BIO *bio, int close_flag) argument 366 BIO_set_callback(BIO *bio, bio_info_cb callback_func) argument 370 BIO_set_callback_arg(BIO *bio, char *arg) argument 374 BIO_get_callback_arg(const BIO *bio) argument 378 BIO_number_read(const BIO *bio) argument 382 BIO_number_written(const BIO *bio) argument 386 BIO_push(BIO *bio, BIO *appended_bio) argument 406 BIO_pop(BIO *bio) argument 418 BIO_next(BIO *bio) argument 425 BIO_find_type(BIO *bio, int type) argument 451 BIO_indent(BIO *bio, unsigned indent, unsigned max_indent) argument 465 BIO *bio = BIO_new_fp(out, BIO_NOCLOSE); local 470 print_bio(const char *str, size_t len, void *bio) argument 474 BIO_print_errors(BIO *bio) argument [all...] |
H A D | bio_mem.c | 57 #include <openssl/bio.h> 96 static int mem_new(BIO *bio) { argument 106 bio->shutdown = 1; 107 bio->init = 1; 108 bio->num = -1; 109 bio->ptr = (char *)b; 114 static int mem_free(BIO *bio) { argument 117 if (bio == NULL) { 121 if (!bio->shutdown || !bio 134 mem_read(BIO *bio, char *out, int outl) argument 161 mem_write(BIO *bio, const char *in, int inl) argument 192 mem_gets(BIO *bio, char *buf, int size) argument 227 mem_ctrl(BIO *bio, int cmd, long num, void *ptr) argument 299 BIO_mem_contents(const BIO *bio, const uint8_t **out_contents, size_t *out_len) argument 312 BIO_get_mem_data(BIO *bio, char **contents) argument 316 BIO_get_mem_ptr(BIO *bio, BUF_MEM **out) argument 320 BIO_set_mem_buf(BIO *bio, BUF_MEM *b, int take_ownership) argument 324 BIO_set_mem_eof_return(BIO *bio, int eof_value) argument [all...] |
H A D | socket.c | 1 /* crypto/bio/bss_sock.c */ 58 #include <openssl/bio.h> 69 static int sock_new(BIO *bio) { argument 70 bio->init = 0; 71 bio->num = 0; 72 bio->ptr = NULL; 73 bio->flags = 0; 77 static int sock_free(BIO *bio) { argument 78 if (bio == NULL) { 82 if (bio [all...] |
H A D | connect.c | 57 #include <openssl/bio.h> 96 /* the file descriptor is kept in bio->num in order to match the socket 102 int (*info_callback)(const BIO *bio, int state, int ret); 119 static int conn_state(BIO *bio, BIO_CONNECT *c) { argument 166 &bio->num, &c->them, &c->them_length, c->param_hostname, 177 if (!bio_socket_nbio(bio->num, 1)) { 186 ret = setsockopt(bio->num, SOL_SOCKET, SO_KEEPALIVE, (char *)&i, 195 BIO_clear_retry_flags(bio); 196 ret = connect(bio->num, (struct sockaddr*) &c->them, c->them_length); 199 BIO_set_flags(bio, (BIO_FLAGS_IO_SPECIA 286 conn_new(BIO *bio) argument 294 conn_close_socket(BIO *bio) argument 309 conn_free(BIO *bio) argument 323 conn_read(BIO *bio, char *out, int out_len) argument 347 conn_write(BIO *bio, const char *in, int in_len) argument 371 conn_ctrl(BIO *bio, int cmd, long num, void *ptr) argument 476 conn_callback_ctrl(BIO *bio, int cmd, bio_info_cb fp) argument 519 BIO_set_conn_hostname(BIO *bio, const char *name) argument 523 BIO_set_conn_port(BIO *bio, const char *port_str) argument 527 BIO_set_nbio(BIO *bio, int on) argument [all...] |
H A D | bio_test.c | 24 #include <openssl/bio.h> 36 BIO *bio; local 63 bio = BIO_new_connect(hostname); 64 if (!bio) { 69 if (BIO_write(bio, kTestMessage, sizeof(kTestMessage)) != 93 BIO_free(bio); 102 BIO *bio; local 108 bio = BIO_new(BIO_s_mem()); 109 if (!bio) { 122 ret = BIO_printf(bio, "tes [all...] |
H A D | hexdump.c | 57 #include <openssl/bio.h> 64 BIO *bio; member in struct:hexdump_ctx 99 BIO_indent(ctx->bio, ctx->indent, UINT_MAX); 106 if (BIO_write(ctx->bio, buf, 10) < 0) { 126 if (BIO_write(ctx->bio, buf, l) < 0) { 135 if (BIO_write(ctx->bio, ctx->right_chars, sizeof(ctx->right_chars)) < 0) { 166 if (BIO_write(ctx->bio, buf, l) < 0) { 173 if (BIO_write(ctx->bio, ctx->right_chars, n_bytes + 2) < 0) { 179 int BIO_hexdump(BIO *bio, const uint8_t *data, size_t len, unsigned indent) { argument 182 ctx.bio [all...] |
H A D | file.c | 75 #include <openssl/bio.h> 163 static int file_new(BIO *bio) { return 1; } argument 165 static int file_free(BIO *bio) { argument 166 if (bio == NULL) { 170 if (!bio->shutdown) { 174 if (bio->init && bio->ptr != NULL) { 175 fclose(bio->ptr); 176 bio->ptr = NULL; 178 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 D | fd.c | 57 #include <openssl/bio.h> 129 static int fd_new(BIO *bio) { argument 131 bio->num = -1; 135 static int fd_free(BIO *bio) { argument 136 if (bio == NULL) { 140 if (bio->shutdown) { 141 if (bio->init) { 142 close(bio->num); 144 bio->init = 0; 260 int BIO_set_fd(BIO *bio, in argument 264 BIO_get_fd(BIO *bio, int *out_fd) argument [all...] |
H A D | printf.c | 61 #include <openssl/bio.h> 69 int BIO_printf(BIO *bio, const char *format, ...) { argument 98 ret = BIO_write(bio, out, out_len);
|
H A D | pair.c | 53 #include <openssl/bio.h> 81 static int bio_new(BIO *bio) { argument 93 bio->ptr = b; 97 static void bio_destroy_pair(BIO *bio) { argument 98 struct bio_bio_st *b = bio->ptr; 114 assert(peer_b->peer == bio); 123 bio->init = 0; 129 static int bio_free(BIO *bio) { argument 132 if (bio == NULL) { 135 b = bio 152 bio_read(BIO *bio, char *buf, int size_) argument 235 bio_write(BIO *bio, const char *buf, int num_) argument 354 bio_ctrl(BIO *bio, int cmd, long num, void *ptr) argument 477 bio_puts(BIO *bio, const char *str) argument 539 BIO_ctrl_get_read_request(BIO *bio) argument 543 BIO_ctrl_get_write_guarantee(BIO *bio) argument 547 BIO_shutdown_wr(BIO *bio) argument [all...] |
/external/chromium_org/third_party/boringssl/src/ssl/test/ |
H A D | async_bio.h | 18 #include <openssl/bio.h> 33 // async_bio_allow_read increments |bio|'s read quota by |count|. 34 void async_bio_allow_read(BIO *bio, size_t count); 36 // async_bio_allow_write increments |bio|'s write quota by |count|. 37 void async_bio_allow_write(BIO *bio, size_t count);
|
H A D | packeted_bio.h | 18 #include <openssl/bio.h>
|
H A D | async_bio.cc | 30 async_bio *get_data(BIO *bio) { argument 31 if (bio->method != &async_bio_method) { 34 return (async_bio *)bio->ptr; 37 static int async_write(BIO *bio, const char *in, int inl) { argument 38 async_bio *a = get_data(bio); 39 if (a == NULL || bio->next_bio == NULL) { 46 return BIO_write(bio->next_bio, in, inl); 49 BIO_clear_retry_flags(bio); 52 BIO_set_retry_write(bio); 60 int ret = BIO_write(bio 69 async_read(BIO *bio, char *out, int outl) argument 95 async_ctrl(BIO *bio, int cmd, long num, void *ptr) argument 105 async_new(BIO *bio) argument 116 async_free(BIO *bio) argument 128 async_callback_ctrl(BIO *bio, int cmd, bio_info_cb fp) argument 163 async_bio_allow_read(BIO *bio, size_t count) argument 171 async_bio_allow_write(BIO *bio, size_t count) argument [all...] |
H A D | packeted_bio.cc | 25 static int packeted_write(BIO *bio, const char *in, int inl) { argument 26 if (bio->next_bio == NULL) { 30 BIO_clear_retry_flags(bio); 38 int ret = BIO_write(bio->next_bio, len_bytes, sizeof(len_bytes)); 40 BIO_copy_next_retry(bio); 45 ret = BIO_write(bio->next_bio, in, inl); 50 static int packeted_read(BIO *bio, char *out, int outl) { argument 51 if (bio->next_bio == NULL) { 55 BIO_clear_retry_flags(bio); 59 int ret = BIO_read(bio 82 packeted_ctrl(BIO *bio, int cmd, long num, void *ptr) argument 92 packeted_new(BIO *bio) argument 97 packeted_free(BIO *bio) argument 106 packeted_callback_ctrl(BIO *bio, int cmd, bio_info_cb fp) argument [all...] |
/external/chromium_org/crypto/ |
H A D | openssl_bio_string.cc | 7 #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 D | openssl_bio_string_unittest.cc | 7 #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/openssl/crypto/bio/ |
H A D | bio_cb.c | 1 /* crypto/bio/bio_cb.c */ 63 #include <openssl/bio.h> 66 long MS_CALLBACK BIO_debug_callback(BIO *bio, int cmd, const char *argp, argument 78 BIO_snprintf(buf,sizeof buf,"BIO[%08lX]:",(unsigned long)bio); 84 BIO_snprintf(p,p_maxlen,"Free - %s\n",bio->method->name); 87 if (bio->method->type & BIO_TYPE_DESCRIPTOR) 89 bio->num,(unsigned long)argi, 90 bio->method->name,bio->num); 93 bio [all...] |
H A D | bss_bio.c | 1 /* crypto/bio/bss_bio.c -*- Mode: C; c-file-style: "eay" -*- */ 82 #include <openssl/bio.h> 96 static int bio_new(BIO *bio); 97 static int bio_free(BIO *bio); 98 static int bio_read(BIO *bio, char *buf, int size); 99 static int bio_write(BIO *bio, const char *buf, int num); 100 static long bio_ctrl(BIO *bio, int cmd, long num, void *ptr); 101 static int bio_puts(BIO *bio, const char *str); 104 static void bio_destroy_pair(BIO *bio); 145 static int bio_new(BIO *bio) argument 162 bio_free(BIO *bio) argument 187 bio_read(BIO *bio, char *buf, int size_) argument 280 bio_nread0(BIO *bio, char **buf) argument 318 bio_nread(BIO *bio, char **buf, size_t num_) argument 352 bio_write(BIO *bio, const char *buf, int num_) argument 431 bio_nwrite0(BIO *bio, char **buf) argument 479 bio_nwrite(BIO *bio, char **buf, size_t num_) argument 503 bio_ctrl(BIO *bio, int cmd, long num, void *ptr) argument 698 bio_puts(BIO *bio, const char *str) argument 757 bio_destroy_pair(BIO *bio) argument 841 BIO_ctrl_get_write_guarantee(BIO *bio) argument 846 BIO_ctrl_get_read_request(BIO *bio) argument 851 BIO_ctrl_reset_read_request(BIO *bio) argument 860 BIO_nread0(BIO *bio, char **buf) argument 877 BIO_nread(BIO *bio, char **buf, int num) argument 893 BIO_nwrite0(BIO *bio, char **buf) argument 910 BIO_nwrite(BIO *bio, char **buf, int num) argument [all...] |
H A D | bio_lib.c | 1 /* crypto/bio/bio_lib.c */ 63 #include <openssl/bio.h> 84 int BIO_set(BIO *bio, BIO_METHOD *method) argument 86 bio->method=method; 87 bio->callback=NULL; 88 bio->cb_arg=NULL; 89 bio->init=0; 90 bio->shutdown=1; 91 bio->flags=0; 92 bio 408 BIO_ctrl_pending(BIO *bio) argument 413 BIO_ctrl_wpending(BIO *bio) argument 420 BIO_push(BIO *b, BIO *bio) argument 456 BIO_get_retry_BIO(BIO *bio, int *reason) argument 472 BIO_get_retry_reason(BIO *bio) argument 477 BIO_find_type(BIO *bio, int type) argument 506 BIO_free_all(BIO *bio) argument 524 BIO *ret=NULL,*eoc=NULL,*bio,*new_bio; local 580 BIO_set_ex_data(BIO *bio, int idx, void *data) argument 585 BIO_get_ex_data(BIO *bio, int idx) argument 590 BIO_number_read(BIO *bio) argument 596 BIO_number_written(BIO *bio) argument [all...] |
/external/chromium_org/third_party/boringssl/src/include/openssl/ |
H A D | bio.h | 84 /* BIO_free decrements the reference count of |bio|. If the reference count 87 * method, calls it. Finally it frees |bio| itself. It then repeats that for 91 OPENSSL_EXPORT int BIO_free(BIO *bio); 97 OPENSSL_EXPORT void BIO_vfree(BIO *bio); 104 OPENSSL_EXPORT int BIO_read(BIO *bio, void *data, int len); 106 /* BIO_gets "reads a line" from |bio| and puts at most |size| bytes into |buf|. 114 OPENSSL_EXPORT int BIO_gets(BIO *bio, char *buf, int size); 118 OPENSSL_EXPORT int BIO_write(BIO *bio, const void *data, int len); 120 /* BIO_puts writes a NUL terminated string from |buf| to |bio|. It returns the 122 OPENSSL_EXPORT int BIO_puts(BIO *bio, cons [all...] |
/external/google-tv-pairing-protocol/cpp/src/polo/util/ |
H A D | certificateutil.cc | 25 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/chromium_org/third_party/boringssl/src/crypto/pem/ |
H A D | pem_x509.c | 59 #include <openssl/bio.h>
|
/external/chromium_org/third_party/tlslite/tlslite/utils/ |
H A D | openssl_rsakey.py | 76 bio = m2.bio_new(m2.bio_s_mem()) 80 m2.rsa_write_key(self.rsa, bio, m2.des_ede_cbc(), f) 83 m2.rsa_write_key_no_cipher(self.rsa, bio, f) 87 m2.rsa_write_pub_key(self.rsa, bio) 88 s = m2.bio_read(bio, m2.bio_ctrl_pending(bio)) 89 m2.bio_free(bio) 113 bio = m2.bio_new(m2.bio_s_mem()) 115 m2.bio_write(bio, s) 119 key.rsa = m2.rsa_read_key(bio, callbac [all...] |