/external/pdfium/third_party/libopenjpeg20/ |
D | bio.c | 51 static void opj_bio_putbit(opj_bio_t *bio, OPJ_UINT32 b); 57 static OPJ_UINT32 opj_bio_getbit(opj_bio_t *bio); 63 static OPJ_BOOL opj_bio_byteout(opj_bio_t *bio); 69 static OPJ_BOOL opj_bio_bytein(opj_bio_t *bio); 81 static OPJ_BOOL opj_bio_byteout(opj_bio_t *bio) in opj_bio_byteout() argument 83 bio->buf = (bio->buf << 8) & 0xffff; in opj_bio_byteout() 84 bio->ct = bio->buf == 0xff00 ? 7 : 8; in opj_bio_byteout() 85 if ((OPJ_SIZE_T)bio->bp >= (OPJ_SIZE_T)bio->end) { in opj_bio_byteout() 88 *bio->bp++ = (OPJ_BYTE)(bio->buf >> 8); in opj_bio_byteout() 92 static OPJ_BOOL opj_bio_bytein(opj_bio_t *bio) in opj_bio_bytein() argument [all …]
|
D | bio.h | 81 void opj_bio_destroy(opj_bio_t *bio); 87 ptrdiff_t opj_bio_numbytes(opj_bio_t *bio); 94 void opj_bio_init_enc(opj_bio_t *bio, OPJ_BYTE *bp, OPJ_UINT32 len); 101 void opj_bio_init_dec(opj_bio_t *bio, OPJ_BYTE *bp, OPJ_UINT32 len); 108 void opj_bio_write(opj_bio_t *bio, OPJ_UINT32 v, OPJ_UINT32 n); 115 OPJ_UINT32 opj_bio_read(opj_bio_t *bio, OPJ_UINT32 n); 121 OPJ_BOOL opj_bio_flush(opj_bio_t *bio); 127 OPJ_BOOL opj_bio_inalign(opj_bio_t *bio);
|
D | t2.c | 51 static void opj_t2_putcommacode(opj_bio_t *bio, OPJ_INT32 n); 53 static OPJ_UINT32 opj_t2_getcommacode(opj_bio_t *bio); 59 static void opj_t2_putnumpasses(opj_bio_t *bio, OPJ_UINT32 n); 60 static OPJ_UINT32 opj_t2_getnumpasses(opj_bio_t *bio); 167 static void opj_t2_putcommacode(opj_bio_t *bio, OPJ_INT32 n) in opj_t2_putcommacode() argument 170 opj_bio_write(bio, 1, 1); in opj_t2_putcommacode() 172 opj_bio_write(bio, 0, 1); in opj_t2_putcommacode() 175 static OPJ_UINT32 opj_t2_getcommacode(opj_bio_t *bio) in opj_t2_getcommacode() argument 178 while (opj_bio_read(bio, 1)) { in opj_t2_getcommacode() 184 static void opj_t2_putnumpasses(opj_bio_t *bio, OPJ_UINT32 n) in opj_t2_putnumpasses() argument [all …]
|
/external/boringssl/src/crypto/bio/ |
D | bio.c | 92 int BIO_free(BIO *bio) { in BIO_free() argument 95 for (; bio != NULL; bio = next_bio) { in BIO_free() 96 if (!CRYPTO_refcount_dec_and_test_zero(&bio->references)) { in BIO_free() 100 next_bio = BIO_pop(bio); in BIO_free() 102 if (bio->method != NULL && bio->method->destroy != NULL) { in BIO_free() 103 bio->method->destroy(bio); in BIO_free() 106 OPENSSL_free(bio); in BIO_free() 111 int BIO_up_ref(BIO *bio) { in BIO_up_ref() argument 112 CRYPTO_refcount_inc(&bio->references); in BIO_up_ref() 116 void BIO_vfree(BIO *bio) { in BIO_vfree() argument [all …]
|
D | connect.c | 109 int (*info_callback)(const BIO *bio, int state, int ret); 169 static int conn_state(BIO *bio, BIO_CONNECT *c) { in conn_state() argument 207 &bio->num, &c->them, &c->them_length, c->param_hostname, in conn_state() 215 if (!bio_socket_nbio(bio->num, 1)) { in conn_state() 224 ret = setsockopt(bio->num, SOL_SOCKET, SO_KEEPALIVE, (char *)&i, in conn_state() 233 BIO_clear_retry_flags(bio); in conn_state() 234 ret = connect(bio->num, (struct sockaddr*) &c->them, c->them_length); in conn_state() 237 BIO_set_flags(bio, (BIO_FLAGS_IO_SPECIAL | BIO_FLAGS_SHOULD_RETRY)); in conn_state() 239 bio->retry_reason = BIO_RR_CONNECT; in conn_state() 253 i = bio_sock_error(bio->num); in conn_state() [all …]
|
D | bio_mem.c | 100 static int mem_new(BIO *bio) { in mem_new() argument 110 bio->shutdown = 1; in mem_new() 111 bio->init = 1; in mem_new() 112 bio->num = -1; in mem_new() 113 bio->ptr = (char *)b; in mem_new() 118 static int mem_free(BIO *bio) { in mem_free() argument 121 if (bio == NULL) { in mem_free() 125 if (!bio->shutdown || !bio->init || bio->ptr == NULL) { in mem_free() 129 b = (BUF_MEM *)bio->ptr; in mem_free() 130 if (bio->flags & BIO_FLAGS_MEM_RDONLY) { in mem_free() [all …]
|
D | pair.c | 84 static int bio_new(BIO *bio) { in bio_new() argument 94 bio->ptr = b; in bio_new() 98 static void bio_destroy_pair(BIO *bio) { in bio_destroy_pair() argument 99 struct bio_bio_st *b = bio->ptr; in bio_destroy_pair() 115 assert(peer_b->peer == bio); in bio_destroy_pair() 124 bio->init = 0; in bio_destroy_pair() 130 static int bio_free(BIO *bio) { in bio_free() argument 133 if (bio == NULL) { in bio_free() 136 b = bio->ptr; in bio_free() 141 bio_destroy_pair(bio); in bio_free() [all …]
|
D | file.c | 130 static int file_new(BIO *bio) { return 1; } in file_new() argument 132 static int file_free(BIO *bio) { in file_free() argument 133 if (bio == NULL) { in file_free() 137 if (!bio->shutdown) { in file_free() 141 if (bio->init && bio->ptr != NULL) { in file_free() 142 fclose(bio->ptr); in file_free() 143 bio->ptr = NULL; in file_free() 145 bio->init = 0; in file_free() 290 int BIO_get_fp(BIO *bio, FILE **out_file) { in BIO_get_fp() argument 291 return BIO_ctrl(bio, BIO_C_GET_FILE_PTR, 0, (char*) out_file); in BIO_get_fp() [all …]
|
D | socket.c | 84 static int sock_new(BIO *bio) { in sock_new() argument 85 bio->init = 0; in sock_new() 86 bio->num = 0; in sock_new() 87 bio->ptr = NULL; in sock_new() 88 bio->flags = 0; in sock_new() 92 static int sock_free(BIO *bio) { in sock_free() argument 93 if (bio == NULL) { in sock_free() 97 if (bio->shutdown) { in sock_free() 98 if (bio->init) { in sock_free() 99 closesocket(bio->num); in sock_free() [all …]
|
D | fd.c | 143 static int fd_new(BIO *bio) { in fd_new() argument 145 bio->num = -1; in fd_new() 149 static int fd_free(BIO *bio) { in fd_free() argument 150 if (bio == NULL) { in fd_free() 154 if (bio->shutdown) { in fd_free() 155 if (bio->init) { in fd_free() 156 BORINGSSL_CLOSE(bio->num); in fd_free() 158 bio->init = 0; in fd_free() 272 int BIO_set_fd(BIO *bio, int fd, int close_flag) { in BIO_set_fd() argument 273 return BIO_int_ctrl(bio, BIO_C_SET_FD, close_flag, fd); in BIO_set_fd() [all …]
|
D | hexdump.c | 67 BIO *bio; member 101 BIO_indent(ctx->bio, ctx->indent, UINT_MAX); in hexdump_write() 108 if (BIO_write(ctx->bio, buf, 10) < 0) { in hexdump_write() 128 if (BIO_write(ctx->bio, buf, l) < 0) { in hexdump_write() 137 if (BIO_write(ctx->bio, ctx->right_chars, sizeof(ctx->right_chars)) < 0) { in hexdump_write() 168 if (BIO_write(ctx->bio, buf, l) < 0) { in finish() 175 if (BIO_write(ctx->bio, ctx->right_chars, n_bytes + 2) < 0) { in finish() 181 int BIO_hexdump(BIO *bio, const uint8_t *data, size_t len, unsigned indent) { in BIO_hexdump() argument 184 ctx.bio = bio; in BIO_hexdump()
|
D | bio_test.cc | 110 bssl::UniquePtr<BIO> bio(BIO_new_connect(hostname)); in TEST() local 111 ASSERT_TRUE(bio); in TEST() 115 BIO_write(bio.get(), kTestMessage, sizeof(kTestMessage))); in TEST() 135 bssl::UniquePtr<BIO> bio(BIO_new(BIO_s_mem())); in TEST() local 136 ASSERT_TRUE(bio); in TEST() 143 int ret = BIO_printf(bio.get(), "test %s", in.c_str()); in TEST() 149 ASSERT_TRUE(BIO_mem_contents(bio.get(), &contents, &len)); in TEST() 153 ASSERT_TRUE(BIO_reset(bio.get())); in TEST() 206 bssl::UniquePtr<BIO> bio(BIO_new_mem_buf(input.data(), input.size())); in TEST_P() local 207 ASSERT_TRUE(bio); in TEST_P() [all …]
|
/external/boringssl/src/include/openssl/ |
D | bio.h | 92 OPENSSL_EXPORT int BIO_free(BIO *bio); 98 OPENSSL_EXPORT void BIO_vfree(BIO *bio); 101 OPENSSL_EXPORT int BIO_up_ref(BIO *bio); 108 OPENSSL_EXPORT int BIO_read(BIO *bio, void *data, int len); 118 OPENSSL_EXPORT int BIO_gets(BIO *bio, char *buf, int size); 122 OPENSSL_EXPORT int BIO_write(BIO *bio, const void *data, int len); 126 OPENSSL_EXPORT int BIO_write_all(BIO *bio, const void *data, size_t len); 130 OPENSSL_EXPORT int BIO_puts(BIO *bio, const char *buf); 134 OPENSSL_EXPORT int BIO_flush(BIO *bio); 144 OPENSSL_EXPORT long BIO_ctrl(BIO *bio, int cmd, long larg, void *parg); [all …]
|
/external/boringssl/src/ssl/test/ |
D | async_bio.cc | 37 AsyncBio *GetData(BIO *bio) { in GetData() argument 38 if (bio->method != &g_async_bio_method) { in GetData() 41 return (AsyncBio *)bio->ptr; in GetData() 44 static int AsyncWrite(BIO *bio, const char *in, int inl) { in AsyncWrite() argument 45 AsyncBio *a = GetData(bio); in AsyncWrite() 46 if (a == NULL || bio->next_bio == NULL) { in AsyncWrite() 51 return BIO_write(bio->next_bio, in, inl); in AsyncWrite() 54 BIO_clear_retry_flags(bio); in AsyncWrite() 57 BIO_set_retry_write(bio); in AsyncWrite() 65 int ret = BIO_write(bio->next_bio, in, inl); in AsyncWrite() [all …]
|
D | packeted_bio.cc | 49 PacketedBio *GetData(BIO *bio) { in GetData() argument 50 if (bio->method != &g_packeted_bio_method) { in GetData() 53 return (PacketedBio *)bio->ptr; in GetData() 58 static int ReadAll(BIO *bio, uint8_t *out, size_t len) { in ReadAll() argument 64 int ret = BIO_read(bio, out, chunk_len); in ReadAll() 74 static int PacketedWrite(BIO *bio, const char *in, int inl) { in PacketedWrite() argument 75 if (bio->next_bio == NULL) { in PacketedWrite() 79 BIO_clear_retry_flags(bio); in PacketedWrite() 88 int ret = BIO_write(bio->next_bio, header, sizeof(header)); in PacketedWrite() 90 BIO_copy_next_retry(bio); in PacketedWrite() [all …]
|
/external/boringssl/src/ssl/ |
D | bio_ssl.cc | 15 static SSL *get_ssl(BIO *bio) { in get_ssl() argument 16 return reinterpret_cast<SSL *>(bio->ptr); in get_ssl() 19 static int ssl_read(BIO *bio, char *out, int outl) { in ssl_read() argument 20 SSL *ssl = get_ssl(bio); in ssl_read() 25 BIO_clear_retry_flags(bio); in ssl_read() 31 BIO_set_retry_read(bio); in ssl_read() 35 BIO_set_retry_write(bio); in ssl_read() 39 BIO_set_retry_special(bio); in ssl_read() 40 bio->retry_reason = BIO_RR_ACCEPT; in ssl_read() 44 BIO_set_retry_special(bio); in ssl_read() [all …]
|
/external/boringssl/src/crypto/x509/ |
D | t_req.c | 68 BIO *bio = BIO_new_fp(fp, BIO_NOCLOSE); in X509_REQ_print_fp() local 69 if (bio == NULL) { in X509_REQ_print_fp() 73 int ret = X509_REQ_print(bio, x); in X509_REQ_print_fp() 74 BIO_free(bio); in X509_REQ_print_fp() 78 int X509_REQ_print_ex(BIO *bio, X509_REQ *x, unsigned long nmflags, in X509_REQ_print_ex() argument 98 if (BIO_write(bio, "Certificate Request:\n", 21) <= 0 || in X509_REQ_print_ex() 99 BIO_write(bio, " Data:\n", 10) <= 0) { in X509_REQ_print_ex() 105 if (BIO_printf(bio, "%8sVersion: %ld (0x%lx)\n", "", l + 1, l) <= 0) { in X509_REQ_print_ex() 110 if (BIO_printf(bio, " Subject:%c", mlch) <= 0 || in X509_REQ_print_ex() 111 X509_NAME_print_ex(bio, ri->subject, nmindent, nmflags) < 0 || in X509_REQ_print_ex() [all …]
|
/external/libbrillo/brillo/streams/ |
D | openssl_stream_bio.cc | 17 int stream_write(BIO* bio, const char* buf, int size) { in stream_write() argument 18 brillo::Stream* stream = static_cast<brillo::Stream*>(bio->ptr); in stream_write() 20 BIO_clear_retry_flags(bio); in stream_write() 26 BIO_set_retry_write(bio); in stream_write() 32 int stream_read(BIO* bio, char* buf, int size) { in stream_read() argument 33 brillo::Stream* stream = static_cast<brillo::Stream*>(bio->ptr); in stream_read() 35 BIO_clear_retry_flags(bio); in stream_read() 43 BIO_set_retry_read(bio); in stream_read() 50 long stream_ctrl(BIO* bio, int cmd, long /* num */, void* /* ptr */) { in stream_ctrl() argument 52 brillo::Stream* stream = static_cast<brillo::Stream*>(bio->ptr); in stream_ctrl() [all …]
|
/external/fsverity-utils/ |
D | sign.c | 42 BIO *bio; in read_private_key() local 45 bio = BIO_new_file(keyfile, "r"); in read_private_key() 46 if (!bio) { in read_private_key() 51 pkey = PEM_read_bio_PrivateKey(bio, NULL, NULL, NULL); in read_private_key() 57 BIO_free(bio); in read_private_key() 64 BIO *bio; in read_certificate() local 67 bio = BIO_new_file(certfile, "r"); in read_certificate() 68 if (!bio) { in read_certificate() 72 cert = PEM_read_bio_X509(bio, NULL, NULL, NULL); in read_certificate() 78 BIO_free(bio); in read_certificate() [all …]
|
/external/ltp/testcases/kernel/device-drivers/tbio/tbio_kernel/ |
D | ltp_tbio.c | 66 static struct bio *tbiop, *tbiop_dup; 77 static int send_request(struct request_queue *q, struct bio *bio, in send_request() argument 82 rq = blk_make_request(q, bio, GFP_KERNEL); in send_request() 103 rq->__sector = bio->bi_sector; in send_request() 122 struct bio *bio = NULL; in tbio_io() local 150 bio = bio_map_user(q, bdev, (unsigned long)inter.data, in tbio_io() 153 if (!bio) { in tbio_io() 170 send_request(q, bio, bdev, &inter, writing); in tbio_io() 172 if (bio) in tbio_io() 173 bio_unmap_user(bio); in tbio_io() [all …]
|
/external/iperf3/src/ |
D | iperf_auth.c | 107 BIO *bio, *b64; in Base64Encode() local 111 bio = BIO_new(BIO_s_mem()); in Base64Encode() 112 bio = BIO_push(b64, bio); in Base64Encode() 114 BIO_set_flags(bio, BIO_FLAGS_BASE64_NO_NL); //Ignore newlines - write everything in one line in Base64Encode() 115 BIO_write(bio, buffer, length); in Base64Encode() 116 BIO_flush(bio); in Base64Encode() 117 BIO_get_mem_ptr(bio, &bufferPtr); in Base64Encode() 118 BIO_set_close(bio, BIO_NOCLOSE); in Base64Encode() 119 BIO_free_all(bio); in Base64Encode() 137 BIO *bio, *b64; in Base64Decode() local [all …]
|
/external/webrtc/webrtc/base/ |
D | opensslidentity.cc | 229 BIO* bio = BIO_new_mem_buf(const_cast<char*>(pem_string.c_str()), -1); in FromPEMString() local 230 if (!bio) in FromPEMString() 232 BIO_set_mem_eof_return(bio, 0); in FromPEMString() 233 X509* x509 = PEM_read_bio_X509(bio, NULL, NULL, const_cast<char*>("\0")); in FromPEMString() 234 BIO_free(bio); // Frees the BIO, but not the pointed-to string. in FromPEMString() 333 BIO* bio = BIO_new(BIO_s_mem()); in ToPEMString() local 334 if (!bio) { in ToPEMString() 337 if (!PEM_write_bio_X509(bio, x509_)) { in ToPEMString() 338 BIO_free(bio); in ToPEMString() 341 BIO_write(bio, "\0", 1); in ToPEMString() [all …]
|
/external/avb/contrib/linux/4.4/ |
D | 0002-ANDROID-AVB-error-handler-to-invalidate-vbmeta-parti.patch | 102 +static void invalidate_vbmeta_endio(struct bio *bio) 104 + if (bio->bi_error) 105 + DMERR("invalidate_vbmeta_endio: error %d", bio->bi_error); 106 + complete(bio->bi_private); 109 +static int invalidate_vbmeta_submit(struct bio *bio, 116 + bio->bi_private = &wait; 117 + bio->bi_end_io = invalidate_vbmeta_endio; 118 + bio->bi_bdev = bdev; 119 + bio->bi_rw = rw; 121 + bio->bi_iter.bi_sector = 0; [all …]
|
/external/boringssl/src/tool/ |
D | transport_common.cc | 275 void PrintConnectionInfo(BIO *bio, const SSL *ssl) { in PrintConnectionInfo() argument 278 BIO_printf(bio, " Version: %s\n", SSL_get_version(ssl)); in PrintConnectionInfo() 279 BIO_printf(bio, " Resumed session: %s\n", in PrintConnectionInfo() 281 BIO_printf(bio, " Cipher: %s\n", SSL_CIPHER_standard_name(cipher)); in PrintConnectionInfo() 284 BIO_printf(bio, " ECDHE curve: %s\n", SSL_get_curve_name(curve)); in PrintConnectionInfo() 288 BIO_printf(bio, " Signature algorithm: %s\n", in PrintConnectionInfo() 292 BIO_printf(bio, " Secure renegotiation: %s\n", in PrintConnectionInfo() 294 BIO_printf(bio, " Extended master secret: %s\n", in PrintConnectionInfo() 300 BIO_printf(bio, " Next protocol negotiated: %.*s\n", next_proto_len, in PrintConnectionInfo() 306 BIO_printf(bio, " ALPN protocol: %.*s\n", alpn_len, alpn); in PrintConnectionInfo() [all …]
|
/external/curl/docs/examples/ |
D | usercertinmem.c | 47 BIO *bio = NULL; in sslctx_function() local 120 bio = BIO_new_mem_buf((char *)mypem, -1); in sslctx_function() 122 if(bio == NULL) { in sslctx_function() 129 cert = PEM_read_bio_X509(bio, NULL, 0, NULL); in sslctx_function() 159 if(bio) in sslctx_function() 160 BIO_free(bio); in sslctx_function()
|