Home
last modified time | relevance | path

Searched refs:cctx (Results 1 – 25 of 45) sorted by relevance

12

/third_party/openssl/ssl/
Dssl_conf.c105 static void ssl_set_option(SSL_CONF_CTX *cctx, unsigned int name_flags, in ssl_set_option() argument
109 if (cctx->poptions == NULL) in ssl_set_option()
116 pflags = cctx->pcert_flags; in ssl_set_option()
120 pflags = cctx->pvfy_flags; in ssl_set_option()
124 pflags = cctx->poptions; in ssl_set_option()
137 static int ssl_match_option(SSL_CONF_CTX *cctx, const ssl_flag_tbl *tbl, in ssl_match_option() argument
141 if (!(cctx->flags & tbl->name_flags & SSL_TFLAG_BOTH)) in ssl_match_option()
148 ssl_set_option(cctx, tbl->name_flags, tbl->option_value, onoff); in ssl_match_option()
154 SSL_CONF_CTX *cctx = usr; in ssl_set_option_list() local
175 for (i = 0, tbl = cctx->tbl; i < cctx->ntbl; i++, tbl++) { in ssl_set_option_list()
[all …]
Dssl_mcnf.c25 SSL_CONF_CTX *cctx = NULL; in ssl_do_config() local
47 cctx = SSL_CONF_CTX_new(); in ssl_do_config()
48 if (cctx == NULL) in ssl_do_config()
55 SSL_CONF_CTX_set_ssl(cctx, s); in ssl_do_config()
58 SSL_CONF_CTX_set_ssl_ctx(cctx, ctx); in ssl_do_config()
64 SSL_CONF_CTX_set_flags(cctx, flags); in ssl_do_config()
69 rv = SSL_CONF_cmd(cctx, cmdstr, arg); in ssl_do_config()
80 rv = SSL_CONF_CTX_finish(cctx); in ssl_do_config()
82 SSL_CONF_CTX_free(cctx); in ssl_do_config()
/third_party/openssl/crypto/evp/
De_aria.c507 EVP_ARIA_CCM_CTX *cctx = EVP_C_DATA(EVP_ARIA_CCM_CTX,ctx); in aria_ccm_init_key() local
514 &cctx->ks.ks); in aria_ccm_init_key()
515 CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L, in aria_ccm_init_key()
516 &cctx->ks, (block128_f) aria_encrypt); in aria_ccm_init_key()
521 cctx->str = NULL; in aria_ccm_init_key()
522 cctx->key_set = 1; in aria_ccm_init_key()
525 memcpy(EVP_CIPHER_CTX_iv_noconst(ctx), iv, 15 - cctx->L); in aria_ccm_init_key()
526 cctx->iv_set = 1; in aria_ccm_init_key()
533 EVP_ARIA_CCM_CTX *cctx = EVP_C_DATA(EVP_ARIA_CCM_CTX,c); in aria_ccm_ctrl() local
537 cctx->key_set = 0; in aria_ccm_ctrl()
[all …]
De_aes.c441 EVP_AES_CCM_CTX *cctx = EVP_C_DATA(EVP_AES_CCM_CTX,ctx); in aesni_ccm_init_key() local
446 &cctx->ks.ks); in aesni_ccm_init_key()
447 CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L, in aesni_ccm_init_key()
448 &cctx->ks, (block128_f) aesni_encrypt); in aesni_ccm_init_key()
449 cctx->str = enc ? (ccm128_f) aesni_ccm64_encrypt_blocks : in aesni_ccm_init_key()
451 cctx->key_set = 1; in aesni_ccm_init_key()
454 memcpy(EVP_CIPHER_CTX_iv_noconst(ctx), iv, 15 - cctx->L); in aesni_ccm_init_key()
455 cctx->iv_set = 1; in aesni_ccm_init_key()
879 EVP_AES_CCM_CTX *cctx = EVP_C_DATA(EVP_AES_CCM_CTX,ctx); in aes_t4_ccm_init_key() local
884 aes_t4_set_encrypt_key(key, bits, &cctx->ks.ks); in aes_t4_ccm_init_key()
[all …]
/third_party/openssl/crypto/cmac/
Dcmac.c19 EVP_CIPHER_CTX *cctx; member
54 ctx->cctx = EVP_CIPHER_CTX_new(); in CMAC_CTX_new()
55 if (ctx->cctx == NULL) { in CMAC_CTX_new()
65 EVP_CIPHER_CTX_reset(ctx->cctx); in CMAC_CTX_cleanup()
75 return ctx->cctx; in CMAC_CTX_get0_cipher_ctx()
83 EVP_CIPHER_CTX_free(ctx->cctx); in CMAC_CTX_free()
92 if (!EVP_CIPHER_CTX_copy(out->cctx, in->cctx)) in CMAC_CTX_copy()
94 bl = EVP_CIPHER_CTX_block_size(in->cctx); in CMAC_CTX_copy()
112 if (!EVP_EncryptInit_ex(ctx->cctx, NULL, NULL, NULL, zero_iv)) in CMAC_Init()
114 memset(ctx->tbl, 0, EVP_CIPHER_CTX_block_size(ctx->cctx)); in CMAC_Init()
[all …]
/third_party/openssl/test/
Dsslapitest.c318 SSL_CTX *cctx = NULL, *sctx = NULL; in test_keylog() local
333 &sctx, &cctx, cert, privkey))) in test_keylog()
337 SSL_CTX_set_options(cctx, SSL_OP_NO_TLSv1_3); in test_keylog()
341 if (!TEST_true(SSL_CTX_set_cipher_list(cctx, "RSA"))) in test_keylog()
344 if (!TEST_true(SSL_CTX_get_keylog_callback(cctx) == NULL) in test_keylog()
347 SSL_CTX_set_keylog_callback(cctx, client_keylog_callback); in test_keylog()
348 if (!TEST_true(SSL_CTX_get_keylog_callback(cctx) in test_keylog()
357 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_keylog()
389 SSL_CTX_free(cctx); in test_keylog()
398 SSL_CTX *cctx = NULL, *sctx = NULL; in test_keylog_no_master_key() local
[all …]
Ddtlstest.c57 SSL_CTX *sctx = NULL, *cctx = NULL; in test_dtls_unprocessed() local
67 &sctx, &cctx, cert, privkey))) in test_dtls_unprocessed()
70 if (!TEST_true(SSL_CTX_set_cipher_list(cctx, "AES128-SHA"))) in test_dtls_unprocessed()
78 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl1, &clientssl1, in test_dtls_unprocessed()
117 SSL_CTX_free(cctx); in test_dtls_unprocessed()
151 SSL_CTX *sctx = NULL, *cctx = NULL; in test_dtls_drop_records() local
162 &sctx, &cctx, cert, privkey))) in test_dtls_drop_records()
167 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_dtls_drop_records()
195 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_dtls_drop_records()
243 SSL_CTX_free(cctx); in test_dtls_drop_records()
[all …]
Dfatalerrtest.c21 SSL_CTX *sctx = NULL, *cctx = NULL; in test_fatalerr() local
33 &sctx, &cctx, cert, privkey))) in test_fatalerr()
41 || !TEST_true(SSL_CTX_set_cipher_list(cctx, "AES256-SHA")) in test_fatalerr()
44 || !TEST_true(SSL_CTX_set_ciphersuites(cctx, in test_fatalerr()
46 || !TEST_true(create_ssl_objects(sctx, cctx, &sssl, &cssl, NULL, in test_fatalerr()
80 SSL_CTX_free(cctx); in test_fatalerr()
Dgosttest.c37 SSL_CTX *cctx = NULL, *sctx = NULL; in test_tls13() local
45 &sctx, &cctx, in test_tls13()
52 if (!TEST_true(SSL_CTX_set_cipher_list(cctx, ciphers[idx].cipher)) in test_tls13()
54 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_tls13()
76 SSL_CTX_free(cctx); in test_tls13()
Dsslcorrupttest.c185 SSL_CTX *sctx = NULL, *cctx = NULL; in test_ssl_corrupt() local
198 &sctx, &cctx, cert, privkey))) in test_ssl_corrupt()
201 if (!TEST_true(SSL_CTX_set_cipher_list(cctx, cipher_list[testidx])) in test_ssl_corrupt()
202 || !TEST_true(SSL_CTX_set_ciphersuites(cctx, "")) in test_ssl_corrupt()
203 || !TEST_ptr(ciphers = SSL_CTX_get_ciphers(cctx)) in test_ssl_corrupt()
212 if (!TEST_true(SSL_CTX_set_max_proto_version(cctx, TLS1_2_VERSION))) in test_ssl_corrupt()
219 if (!TEST_true(create_ssl_objects(sctx, cctx, &server, &client, NULL, in test_ssl_corrupt()
243 SSL_CTX_free(cctx); in test_ssl_corrupt()
Drecordlentest.c82 SSL_CTX *cctx = NULL, *sctx = NULL; in test_record_overflow() local
107 &sctx, &cctx, cert, privkey))) in test_record_overflow()
122 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_record_overflow()
180 SSL_CTX_free(cctx); in test_record_overflow()
/third_party/openssl/demos/bio/
Dclient-conf.c21 SSL_CONF_CTX *cctx = NULL; in main() local
47 cctx = SSL_CONF_CTX_new(); in main()
48 SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_CLIENT); in main()
49 SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_FILE); in main()
50 SSL_CONF_CTX_set_ssl_ctx(cctx, ctx); in main()
53 rv = SSL_CONF_cmd(cctx, cnf->name, cnf->value); in main()
70 if (!SSL_CONF_CTX_finish(cctx)) { in main()
115 SSL_CONF_CTX_free(cctx); in main()
Dserver-conf.c30 SSL_CONF_CTX *cctx = NULL; in main() local
57 cctx = SSL_CONF_CTX_new(); in main()
58 SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_SERVER); in main()
59 SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_CERTIFICATE); in main()
60 SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_FILE); in main()
61 SSL_CONF_CTX_set_ssl_ctx(cctx, ctx); in main()
65 rv = SSL_CONF_cmd(cctx, cnf->name, cnf->value); in main()
82 if (!SSL_CONF_CTX_finish(cctx)) { in main()
Dclient-arg.c20 SSL_CONF_CTX *cctx; in main() local
27 cctx = SSL_CONF_CTX_new(); in main()
28 SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_CLIENT); in main()
29 SSL_CONF_CTX_set_ssl_ctx(cctx, ctx); in main()
33 rv = SSL_CONF_cmd_argv(cctx, &nargs, &args); in main()
62 if (!SSL_CONF_CTX_finish(cctx)) { in main()
107 SSL_CONF_CTX_free(cctx); in main()
Dserver-arg.c28 SSL_CONF_CTX *cctx; in main() local
37 cctx = SSL_CONF_CTX_new(); in main()
38 SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_SERVER); in main()
39 SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_CERTIFICATE); in main()
40 SSL_CONF_CTX_set_ssl_ctx(cctx, ctx); in main()
44 rv = SSL_CONF_cmd_argv(cctx, &nargs, &args); in main()
73 if (!SSL_CONF_CTX_finish(cctx)) { in main()
/third_party/ffmpeg/libavdevice/
Ddecklink_dec.cpp424 decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data; in get_metadata() local
443 if (did == 0x43 && (sdid == 0x02 || sdid == 0x03) && cctx->teletext_lines && in get_metadata()
449 … tgt = teletext_data_unit_from_ancillary_packet(buf + 3, buf + len, tgt, cctx->teletext_lines, 1); in get_metadata()
716 decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data; in decklink_input_callback() local
717 ctx = (struct decklink_ctx *)cctx->ctx; in decklink_input_callback()
847 struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data; in VideoInputFrameArrived() local
859 if (0 == ctx->frameCount && cctx->timestamp_align) { in VideoInputFrameArrived()
860 AVRational remainder = av_make_q(av_gettime() % cctx->timestamp_align, 1000000); in VideoInputFrameArrived()
956 if (ctx->tc_format && cctx->wait_for_tc && !ctx->tc_seen) { in VideoInputFrameArrived()
964 … abs_wallclock, ctx->video_pts_source, ctx->video_st->time_base, &initial_video_pts, cctx->copyts); in VideoInputFrameArrived()
[all …]
Ddecklink_common.cpp124 struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data; in decklink_select_input() local
125 struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx; in decklink_select_input()
166 struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data; in ff_decklink_set_configs() local
167 struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx; in ff_decklink_set_configs()
212 if (direction == DIRECTION_OUT && cctx->timing_offset != INT_MIN) { in ff_decklink_set_configs()
213 res = ctx->cfg->SetInt(bmdDeckLinkConfigReferenceInputTimingOffset, cctx->timing_offset); in ff_decklink_set_configs()
226 struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data; in ff_decklink_set_format() local
227 struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx; in ff_decklink_set_format()
239 …width, height, tb_num, tb_den, field_order, direction, cctx->format_code ? cctx->format_code : "(u… in ff_decklink_set_format()
253 if (cctx->format_code) in ff_decklink_set_format()
[all …]
Ddecklink_enc.cpp167 struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data; in decklink_setup_video() local
168 struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx; in decklink_setup_video()
238 struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data; in decklink_setup_audio() local
239 struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx; in decklink_setup_audio()
279 struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data; in ff_decklink_write_trailer() local
280 struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx; in ff_decklink_write_trailer()
303 av_freep(&cctx->ctx); in ff_decklink_write_trailer()
435 struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data; in decklink_write_video_packet() local
436 struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx; in decklink_write_video_packet()
527 struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data; in decklink_write_audio_packet() local
[all …]
/third_party/ffmpeg/libavcodec/tests/
Dmotion.c118 MECmpContext cctx, mmxctx; in main() local
132 memset(&cctx, 0, sizeof(cctx)); in main()
133 ff_me_cmp_init(&cctx, ctx); in main()
143 test_motion("mmx", mmxctx.pix_abs[x][0], cctx.pix_abs[x][0]); in main()
144 test_motion("mmx_x2", mmxctx.pix_abs[x][1], cctx.pix_abs[x][1]); in main()
145 test_motion("mmx_y2", mmxctx.pix_abs[x][2], cctx.pix_abs[x][2]); in main()
146 test_motion("mmx_xy2", mmxctx.pix_abs[x][3], cctx.pix_abs[x][3]); in main()
/third_party/node/test/parallel/
Dtest-tls-external-accessor.js13 const cctx = Object.create(pctx);
14 assert.throws(() => cctx._external, TypeError);
19 const cctx = Object.create(pctx);
20 assert.throws(() => cctx._external, TypeError);
/third_party/openssl/doc/man3/
DSSL_CONF_CTX_set_ssl_ctx.pod11 void SSL_CONF_CTX_set_ssl_ctx(SSL_CONF_CTX *cctx, SSL_CTX *ctx);
12 void SSL_CONF_CTX_set_ssl(SSL_CONF_CTX *cctx, SSL *ssl);
16 SSL_CONF_CTX_set_ssl_ctx() sets the context associated with B<cctx> to the
18 B<cctx> is cleared. Subsequent calls to SSL_CONF_cmd() will be sent to
21 SSL_CONF_CTX_set_ssl() sets the context associated with B<cctx> to the
23 B<cctx> is cleared. Subsequent calls to SSL_CONF_cmd() will be sent to
/third_party/lz4/lib/
Dlz4frame.h254 LZ4FLIB_API LZ4F_errorCode_t LZ4F_freeCompressionContext(LZ4F_cctx* cctx);
278 LZ4FLIB_API size_t LZ4F_compressBegin(LZ4F_cctx* cctx,
310 LZ4FLIB_API size_t LZ4F_compressUpdate(LZ4F_cctx* cctx,
324 LZ4FLIB_API size_t LZ4F_flush(LZ4F_cctx* cctx,
338 LZ4FLIB_API size_t LZ4F_compressEnd(LZ4F_cctx* cctx,
587 LZ4F_cctx* cctx,
602 LZ4F_cctx* cctx,
Dlz4.c806 LZ4_prepareTable(LZ4_stream_t_internal* const cctx, in LZ4_prepareTable() argument
813 if ((tableType_t)cctx->tableType != clearedTable) { in LZ4_prepareTable()
815 if ((tableType_t)cctx->tableType != tableType in LZ4_prepareTable()
816 || ((tableType == byU16) && cctx->currentOffset + (unsigned)inputSize >= 0xFFFFU) in LZ4_prepareTable()
817 || ((tableType == byU32) && cctx->currentOffset > 1 GB) in LZ4_prepareTable()
821 DEBUGLOG(4, "LZ4_prepareTable: Resetting table in %p", cctx); in LZ4_prepareTable()
822 MEM_INIT(cctx->hashTable, 0, LZ4_HASHTABLESIZE); in LZ4_prepareTable()
823 cctx->currentOffset = 0; in LZ4_prepareTable()
824 cctx->tableType = (U32)clearedTable; in LZ4_prepareTable()
834 if (cctx->currentOffset != 0 && tableType == byU32) { in LZ4_prepareTable()
[all …]
/third_party/lz4/tests/
Dframetest.c182 LZ4F_compressionContext_t cctx = NULL; in basicTests() local
479 CHECK( LZ4F_createCompressionContext(&cctx, LZ4F_VERSION) ); in basicTests()
483 CHECK_V(cErr, LZ4F_compressBegin(cctx, compressedBuffer, testSize, &prefs)); in basicTests()
485 …CHECK_V(cErr, LZ4F_compressUpdate(cctx, op, LZ4F_compressBound(testSize, &prefs), CNBuffer, testSi… in basicTests()
487 CHECK( LZ4F_compressEnd(cctx, compressedBuffer, testSize, NULL) ); in basicTests()
493 CHECK_V(cErr, LZ4F_compressBegin(cctx, compressedBuffer, testSize, &prefs)); in basicTests()
495 …CHECK_V(cErr, LZ4F_compressUpdate(cctx, op, LZ4F_compressBound(testSize, &prefs), CNBuffer, testSi… in basicTests()
497 CHECK( LZ4F_compressEnd(cctx, compressedBuffer, testSize, NULL) ); in basicTests()
503 CHECK_V(cErr, LZ4F_compressBegin(cctx, compressedBuffer, testSize, &prefs)); in basicTests()
505 …CHECK_V(cErr, LZ4F_compressUpdate(cctx, op, LZ4F_compressBound(testSize, &prefs), CNBuffer, testSi… in basicTests()
[all …]
/third_party/openssl/crypto/pem/
Dpvkfmt.c684 EVP_CIPHER_CTX *cctx = EVP_CIPHER_CTX_new(); in do_PVK_body() local
714 if (!EVP_DecryptInit_ex(cctx, EVP_rc4(), NULL, keybuf, NULL)) in do_PVK_body()
716 if (!EVP_DecryptUpdate(cctx, q, &enctmplen, p, inlen)) in do_PVK_body()
718 if (!EVP_DecryptFinal_ex(cctx, q + enctmplen, &enctmplen)) in do_PVK_body()
724 if (!EVP_DecryptInit_ex(cctx, EVP_rc4(), NULL, keybuf, NULL)) in do_PVK_body()
726 if (!EVP_DecryptUpdate(cctx, q, &enctmplen, p, inlen)) in do_PVK_body()
728 if (!EVP_DecryptFinal_ex(cctx, q + enctmplen, &enctmplen)) in do_PVK_body()
741 EVP_CIPHER_CTX_free(cctx); in do_PVK_body()
787 EVP_CIPHER_CTX *cctx = NULL; in i2b_PVK() local
806 cctx = EVP_CIPHER_CTX_new(); in i2b_PVK()
[all …]

12