/third_party/openssl/crypto/dh/ |
D | dh_pmeth.c | 51 DH_PKEY_CTX *dctx; in pkey_dh_init() local 53 if ((dctx = OPENSSL_zalloc(sizeof(*dctx))) == NULL) { in pkey_dh_init() 57 dctx->prime_len = 2048; in pkey_dh_init() 58 dctx->subprime_len = -1; in pkey_dh_init() 59 dctx->generator = 2; in pkey_dh_init() 60 dctx->kdf_type = EVP_PKEY_DH_KDF_NONE; in pkey_dh_init() 62 ctx->data = dctx; in pkey_dh_init() 63 ctx->keygen_info = dctx->gentmp; in pkey_dh_init() 71 DH_PKEY_CTX *dctx = ctx->data; in pkey_dh_cleanup() local 72 if (dctx != NULL) { in pkey_dh_cleanup() [all …]
|
/third_party/lz4/lib/ |
D | lz4frame.c | 1071 LZ4F_dctx* const dctx = (LZ4F_dctx*)ALLOC_AND_ZERO(sizeof(LZ4F_dctx)); in LZ4F_createDecompressionContext() local 1072 if (dctx == NULL) { /* failed allocation */ in LZ4F_createDecompressionContext() 1077 dctx->version = versionNumber; in LZ4F_createDecompressionContext() 1078 *LZ4F_decompressionContextPtr = dctx; in LZ4F_createDecompressionContext() 1082 LZ4F_errorCode_t LZ4F_freeDecompressionContext(LZ4F_dctx* dctx) in LZ4F_freeDecompressionContext() argument 1085 if (dctx != NULL) { /* can accept NULL input, like free() */ in LZ4F_freeDecompressionContext() 1086 result = (LZ4F_errorCode_t)dctx->dStage; in LZ4F_freeDecompressionContext() 1087 FREEMEM(dctx->tmpIn); in LZ4F_freeDecompressionContext() 1088 FREEMEM(dctx->tmpOutBuffer); in LZ4F_freeDecompressionContext() 1089 FREEMEM(dctx); in LZ4F_freeDecompressionContext() [all …]
|
D | lz4frame.h | 367 LZ4FLIB_API LZ4F_errorCode_t LZ4F_freeDecompressionContext(LZ4F_dctx* dctx); 430 LZ4FLIB_API size_t LZ4F_getFrameInfo(LZ4F_dctx* dctx, 465 LZ4FLIB_API size_t LZ4F_decompress(LZ4F_dctx* dctx, 476 LZ4FLIB_API void LZ4F_resetDecompressionContext(LZ4F_dctx* dctx); /* always successful */
|
/third_party/openssl/crypto/ec/ |
D | ec_pmeth.c | 43 EC_PKEY_CTX *dctx; in pkey_ec_init() local 45 if ((dctx = OPENSSL_zalloc(sizeof(*dctx))) == NULL) { in pkey_ec_init() 50 dctx->cofactor_mode = -1; in pkey_ec_init() 51 dctx->kdf_type = EVP_PKEY_ECDH_KDF_NONE; in pkey_ec_init() 52 ctx->data = dctx; in pkey_ec_init() 58 EC_PKEY_CTX *dctx, *sctx; in pkey_ec_copy() local 62 dctx = dst->data; in pkey_ec_copy() 64 dctx->gen_group = EC_GROUP_dup(sctx->gen_group); in pkey_ec_copy() 65 if (!dctx->gen_group) in pkey_ec_copy() 68 dctx->md = sctx->md; in pkey_ec_copy() [all …]
|
/third_party/ffmpeg/libavcodec/ |
D | dnxhd_parser.c | 37 static int dnxhd_find_frame_end(DNXHDParserContext *dctx, in dnxhd_find_frame_end() argument 40 ParseContext *pc = &dctx->pc; in dnxhd_find_frame_end() 51 dctx->cur_byte = 0; in dnxhd_find_frame_end() 52 dctx->remaining = 0; in dnxhd_find_frame_end() 58 if (pic_found && !dctx->remaining) { in dnxhd_find_frame_end() 62 dctx->cur_byte++; in dnxhd_find_frame_end() 65 if (dctx->cur_byte == 24) { in dnxhd_find_frame_end() 66 dctx->h = (state >> 32) & 0xFFFF; in dnxhd_find_frame_end() 67 } else if (dctx->cur_byte == 26) { in dnxhd_find_frame_end() 68 dctx->w = (state >> 32) & 0xFFFF; in dnxhd_find_frame_end() [all …]
|
/third_party/openssl/crypto/dsa/ |
D | dsa_pmeth.c | 34 DSA_PKEY_CTX *dctx = OPENSSL_malloc(sizeof(*dctx)); in pkey_dsa_init() local 36 if (dctx == NULL) in pkey_dsa_init() 38 dctx->nbits = 2048; in pkey_dsa_init() 39 dctx->qbits = 224; in pkey_dsa_init() 40 dctx->pmd = NULL; in pkey_dsa_init() 41 dctx->md = NULL; in pkey_dsa_init() 43 ctx->data = dctx; in pkey_dsa_init() 44 ctx->keygen_info = dctx->gentmp; in pkey_dsa_init() 52 DSA_PKEY_CTX *dctx, *sctx; in pkey_dsa_copy() local 57 dctx = dst->data; in pkey_dsa_copy() [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/driver_ddebug/ |
D | dd_context.c | 112 struct dd_context *dctx = dd_context(_pipe); in dd_context_begin_query() local 113 struct pipe_context *pipe = dctx->pipe; in dd_context_begin_query() 121 struct dd_context *dctx = dd_context(_pipe); in dd_context_end_query() local 122 struct pipe_context *pipe = dctx->pipe; in dd_context_end_query() 150 struct dd_context *dctx = dd_context(_pipe); in dd_context_render_condition() local 151 struct pipe_context *pipe = dctx->pipe; in dd_context_render_condition() 152 struct dd_draw_state *dstate = &dctx->draw_state; in dd_context_render_condition() 184 struct dd_context *dctx = dd_context(_pipe); \ 185 struct pipe_context *pipe = dctx->pipe; \ 188 dctx->draw_state.shortname = hstate; \ [all …]
|
D | dd_draw.c | 622 dd_dump_driver_state(struct dd_context *dctx, FILE *f, unsigned flags) in dd_dump_driver_state() argument 624 if (dctx->pipe->dump_debug_state) { in dd_dump_driver_state() 628 dctx->pipe->dump_debug_state(dctx->pipe, f, flags); in dd_dump_driver_state() 963 PRINT_NAMED(ptr, "pipe", record->dctx->pipe); in dd_write_record() 1016 dd_report_hang(struct dd_context *dctx) in dd_report_hang() argument 1018 struct dd_screen *dscreen = dd_screen(dctx->base.screen); in dd_report_hang() 1029 list_for_each_entry(struct dd_draw_record, record, &dctx->records, list) { in dd_report_hang() 1081 dd_dump_driver_state(dctx, f, PIPE_DUMP_DEVICE_STATUS_REGISTERS); in dd_report_hang() 1093 struct dd_context *dctx = (struct dd_context *)input; in dd_thread_main() local 1094 struct dd_screen *dscreen = dd_screen(dctx->base.screen); in dd_thread_main() [all …]
|
D | dd_pipe.h | 280 struct dd_context *dctx; member 333 dd_init_draw_functions(struct dd_context *dctx); 336 dd_thread_join(struct dd_context *dctx); 373 dctx->base._member = dctx->pipe->_member ? dd_context_##_member : NULL
|
/third_party/lz4/ossfuzz/ |
D | decompress_frame_fuzzer.c | 18 static void decompress(LZ4F_dctx* dctx, void* dst, size_t dstCapacity, in decompress() argument 23 LZ4F_resetDecompressionContext(dctx); in decompress() 25 LZ4F_decompress(dctx, dst, &dstCapacity, src, &srcSize, opts); in decompress() 27 LZ4F_decompress_usingDict(dctx, dst, &dstCapacity, src, &srcSize, in decompress() 47 LZ4F_dctx* dctx; in LLVMFuzzerTestOneInput() local 48 LZ4F_createDecompressionContext(&dctx, LZ4F_VERSION); in LLVMFuzzerTestOneInput() 50 FUZZ_ASSERT(dctx); in LLVMFuzzerTestOneInput() 61 decompress(dctx, dst, dstCapacity, data, size, NULL, 0, &opts); in LLVMFuzzerTestOneInput() 63 decompress(dctx, dst, dstCapacity, data, size, NULL, 0, &opts); in LLVMFuzzerTestOneInput() 65 decompress(dctx, dst, dstCapacity, data, size, dict, dictSize, &opts); in LLVMFuzzerTestOneInput() [all …]
|
D | lz4_helpers.c | 36 LZ4F_dctx* dctx; in FUZZ_decompressFrame() local 37 LZ4F_createDecompressionContext(&dctx, LZ4F_VERSION); in FUZZ_decompressFrame() 38 FUZZ_ASSERT(dctx); in FUZZ_decompressFrame() 43 LZ4F_decompress(dctx, dst, &dstSize, src, &srcConsumed, &opts); in FUZZ_decompressFrame() 48 LZ4F_freeDecompressionContext(dctx); in FUZZ_decompressFrame()
|
/third_party/openssl/crypto/sm2/ |
D | sm2_pmeth.c | 59 SM2_PKEY_CTX *dctx, *sctx; in pkey_sm2_copy() local 64 dctx = dst->data; in pkey_sm2_copy() 66 dctx->gen_group = EC_GROUP_dup(sctx->gen_group); in pkey_sm2_copy() 67 if (dctx->gen_group == NULL) { in pkey_sm2_copy() 73 dctx->id = OPENSSL_malloc(sctx->id_len); in pkey_sm2_copy() 74 if (dctx->id == NULL) { in pkey_sm2_copy() 79 memcpy(dctx->id, sctx->id, sctx->id_len); in pkey_sm2_copy() 81 dctx->id_len = sctx->id_len; in pkey_sm2_copy() 82 dctx->id_set = sctx->id_set; in pkey_sm2_copy() 83 dctx->md = sctx->md; in pkey_sm2_copy() [all …]
|
/third_party/libwebsockets/minimal-examples/dbus-server/minimal-dbus-ws-proxy/ |
D | protocol_lws_minimal_dbus_ws_proxy.c | 95 struct lws_dbus_ctx_wsproxy dctx; member 527 vhd->dctx.ctx.tsi = tsi; in create_dbus_listener() 528 vhd->dctx.ctx.vh = vhd->vhost; in create_dbus_listener() 529 vhd->dctx.ctx.next.prev = NULL; in create_dbus_listener() 530 vhd->dctx.ctx.next.next = NULL; in create_dbus_listener() 531 vhd->dctx.vhd = vhd; in create_dbus_listener() 532 vhd->dctx.cwsi = NULL; in create_dbus_listener() 536 vhd->dctx.ctx.conn = dbus_bus_get(DBUS_BUS_SYSTEM, &e); in create_dbus_listener() 537 if (!vhd->dctx.ctx.conn) { in create_dbus_listener() 550 dbus_connection_set_exit_on_disconnect(vhd->dctx.ctx.conn, 0); in create_dbus_listener() [all …]
|
/third_party/lz4/examples/ |
D | frameCompress.c | 172 LZ4F_dctx* dctx, in decompress_file_internal() argument 180 assert(dctx != NULL); in decompress_file_internal() 203 … ret = LZ4F_decompress(dctx, dst, &dstSize, srcPtr, &srcSize, /* LZ4F_decompressOptions_t */ NULL); in decompress_file_internal() 243 LZ4F_dctx* dctx, in decompress_file_allocDst() argument 247 assert(dctx != NULL); in decompress_file_allocDst() 260 { size_t const fires = LZ4F_getFrameInfo(dctx, &info, src, &consumedSize); in decompress_file_allocDst() 275 dctx, in decompress_file_allocDst() 293 LZ4F_dctx* dctx; in decompress_file() local 294 { size_t const dctxStatus = LZ4F_createDecompressionContext(&dctx, LZ4F_VERSION); in decompress_file() 299 int const result = !dctx ? 1 /* error */ : in decompress_file() [all …]
|
/third_party/libcoap/src/ |
D | coap_cache.c | 75 coap_digest_ctx_t *dctx; in coap_cache_derive_key_w_ignore() local 83 dctx = coap_digest_setup(); in coap_cache_derive_key_w_ignore() 84 if (!dctx) in coap_cache_derive_key_w_ignore() 89 if (!coap_digest_update(dctx, (const uint8_t*)session, sizeof(session))) { in coap_cache_derive_key_w_ignore() 90 coap_digest_free(dctx); in coap_cache_derive_key_w_ignore() 97 if (!coap_digest_update(dctx, option, coap_opt_size(option))) { in coap_cache_derive_key_w_ignore() 98 coap_digest_free(dctx); in coap_cache_derive_key_w_ignore() 110 if (!coap_digest_update(dctx, data, len)) { in coap_cache_derive_key_w_ignore() 111 coap_digest_free(dctx); in coap_cache_derive_key_w_ignore() 117 if (!coap_digest_final(dctx, &digest)) { in coap_cache_derive_key_w_ignore()
|
/third_party/openssl/crypto/hmac/ |
D | hmac.c | 194 int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx) in HMAC_CTX_copy() argument 196 if (!hmac_ctx_alloc_mds(dctx)) in HMAC_CTX_copy() 198 if (!EVP_MD_CTX_copy_ex(dctx->i_ctx, sctx->i_ctx)) in HMAC_CTX_copy() 200 if (!EVP_MD_CTX_copy_ex(dctx->o_ctx, sctx->o_ctx)) in HMAC_CTX_copy() 202 if (!EVP_MD_CTX_copy_ex(dctx->md_ctx, sctx->md_ctx)) in HMAC_CTX_copy() 204 dctx->md = sctx->md; in HMAC_CTX_copy() 207 hmac_ctx_cleanup(dctx); in HMAC_CTX_copy()
|
D | hm_pmeth.c | 52 HMAC_PKEY_CTX *sctx, *dctx; in pkey_hmac_copy() local 58 dctx = EVP_PKEY_CTX_get_data(dst); in pkey_hmac_copy() 59 dctx->md = sctx->md; in pkey_hmac_copy() 60 if (!HMAC_CTX_copy(dctx->ctx, sctx->ctx)) in pkey_hmac_copy() 63 if (!ASN1_OCTET_STRING_set(&dctx->ktmp, in pkey_hmac_copy()
|
/third_party/openssl/crypto/rsa/ |
D | rsa_pmeth.c | 77 RSA_PKEY_CTX *dctx, *sctx; in pkey_rsa_copy() local 82 dctx = dst->data; in pkey_rsa_copy() 83 dctx->nbits = sctx->nbits; in pkey_rsa_copy() 85 dctx->pub_exp = BN_dup(sctx->pub_exp); in pkey_rsa_copy() 86 if (!dctx->pub_exp) in pkey_rsa_copy() 89 dctx->pad_mode = sctx->pad_mode; in pkey_rsa_copy() 90 dctx->md = sctx->md; in pkey_rsa_copy() 91 dctx->mgf1md = sctx->mgf1md; in pkey_rsa_copy() 93 OPENSSL_free(dctx->oaep_label); in pkey_rsa_copy() 94 dctx->oaep_label = OPENSSL_memdup(sctx->oaep_label, sctx->oaep_labellen); in pkey_rsa_copy() [all …]
|
/third_party/openssl/crypto/poly1305/ |
D | poly1305_pmeth.c | 55 POLY1305_PKEY_CTX *sctx, *dctx; in pkey_poly1305_copy() local 61 dctx = EVP_PKEY_CTX_get_data(dst); in pkey_poly1305_copy() 63 !ASN1_STRING_copy(&dctx->ktmp, &sctx->ktmp)) { in pkey_poly1305_copy() 68 memcpy(&dctx->ctx, &sctx->ctx, sizeof(POLY1305)); in pkey_poly1305_copy()
|
/third_party/openssl/crypto/siphash/ |
D | siphash_pmeth.c | 55 SIPHASH_PKEY_CTX *sctx, *dctx; in pkey_siphash_copy() local 61 dctx = EVP_PKEY_CTX_get_data(dst); in pkey_siphash_copy() 63 !ASN1_STRING_copy(&dctx->ktmp, &sctx->ktmp)) { in pkey_siphash_copy() 68 memcpy(&dctx->ctx, &sctx->ctx, sizeof(SIPHASH)); in pkey_siphash_copy()
|
/third_party/openssl/crypto/evp/ |
D | m_sigver.c | 111 EVP_PKEY_CTX *dctx = EVP_PKEY_CTX_dup(ctx->pctx); in EVP_DigestSignFinal() local 112 if (!dctx) in EVP_DigestSignFinal() 114 r = dctx->pmeth->signctx(dctx, sigret, siglen, ctx); in EVP_DigestSignFinal() 115 EVP_PKEY_CTX_free(dctx); in EVP_DigestSignFinal()
|
D | bio_md.c | 138 EVP_MD_CTX *ctx, *dctx, **pctx; in md_ctrl() local 189 dctx = BIO_get_data(dbio); in md_ctrl() 190 if (!EVP_MD_CTX_copy_ex(dctx, ctx)) in md_ctrl()
|
D | bio_enc.c | 297 BIO_ENC_CTX *ctx, *dctx; in enc_ctrl() local 374 dctx = BIO_get_data(dbio); in enc_ctrl() 375 dctx->cipher = EVP_CIPHER_CTX_new(); in enc_ctrl() 376 if (dctx->cipher == NULL) in enc_ctrl() 378 ret = EVP_CIPHER_CTX_copy(dctx->cipher, ctx->cipher); in enc_ctrl()
|
/third_party/ltp/tools/sparse/sparse-src/ |
D | dissect.c | 205 struct symbol *base, *dctx; in examine_sym_node() local 239 dctx = dissect_ctx; in examine_sym_node() 251 dissect_ctx = dctx; in examine_sym_node() 616 struct symbol *dctx = dissect_ctx; in do_symbol() local 626 if (!dctx) in do_symbol() 629 dissect_ctx = dctx; in do_symbol() 637 if (dctx) in do_symbol() 638 sparse_error(dctx->pos, "dissect_ctx change %s -> %s", in do_symbol() 639 show_ident(dctx->ident), show_ident(sym->ident)); in do_symbol() 644 dissect_ctx = dctx; in do_symbol()
|
/third_party/lz4/tests/ |
D | frametest.c | 461 LZ4F_decompressionContext_t dctx; in basicTests() local 462 CHECK( LZ4F_createDecompressionContext(&dctx, LZ4F_VERSION) ); in basicTests() 463 CHECK( LZ4F_decompress(dctx, decodedBuffer, &decodedSize, compressedBuffer, &iSize, NULL) ); in basicTests() 472 CHECK( LZ4F_freeDecompressionContext(dctx) ); in basicTests() 565 { LZ4F_dctx* dctx; in basicTests() local 568 CHECK( LZ4F_createDecompressionContext(&dctx, LZ4F_VERSION) ); in basicTests() 569 CHECK( LZ4F_decompress_usingDict(dctx, in basicTests() 579 CHECK( LZ4F_freeDecompressionContext(dctx) ); in basicTests() 622 { LZ4F_dctx* dctx; in basicTests() local 625 CHECK( LZ4F_createDecompressionContext(&dctx, LZ4F_VERSION) ); in basicTests() [all …]
|