Home
last modified time | relevance | path

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

123

/openssl/ssl/
H A Dssl_conf.c183 for (i = 0, tbl = cctx->tbl; i < cctx->ntbl; i++, tbl++) { in ssl_set_option_list()
194 if (cctx->ssl) in cmd_SignatureAlgorithms()
206 if (cctx->ssl) in cmd_ClientSignatureAlgorithms()
359 return min_max_proto(cctx, value, cctx->min_version); in cmd_MinProtocol()
371 return min_max_proto(cctx, value, cctx->max_version); in cmd_MaxProtocol()
609 SSL_CTX *sslctx = (cctx->ssl != NULL) ? cctx->ssl->ctx : cctx->ctx; in cmd_DHParameters()
612 if (cctx->ctx != NULL || cctx->ssl != NULL) { in cmd_DHParameters()
875 strncmp(*pcmd, cctx->prefix, cctx->prefixlen)) in ssl_conf_cmd_skip_prefix()
1067 SSL_set0_CA_list(cctx->ssl, cctx->canames); in SSL_CONF_CTX_finish()
1069 SSL_CTX_set0_CA_list(cctx->ctx, cctx->canames); in SSL_CONF_CTX_finish()
[all …]
H A Dssl_mcnf.c25 SSL_CONF_CTX *cctx = NULL; in ssl_do_config() local
49 cctx = SSL_CONF_CTX_new(); in ssl_do_config()
50 if (cctx == NULL) { in ssl_do_config()
60 SSL_CONF_CTX_set_ssl(cctx, s); in ssl_do_config()
64 SSL_CONF_CTX_set_ssl_ctx(cctx, ctx); in ssl_do_config()
74 SSL_CONF_CTX_set_flags(cctx, flags); in ssl_do_config()
82 rv = SSL_CONF_cmd(cctx, cmdstr, arg); in ssl_do_config()
86 if (!SSL_CONF_CTX_finish(cctx)) in ssl_do_config()
90 SSL_CONF_CTX_free(cctx); in ssl_do_config()
/openssl/crypto/evp/
H A De_aria.c521 CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L, in aria_ccm_init_key()
527 cctx->str = NULL; in aria_ccm_init_key()
532 cctx->iv_set = 1; in aria_ccm_init_key()
545 cctx->L = 8; in aria_ccm_ctrl()
546 cctx->M = 12; in aria_ccm_ctrl()
580 return cctx->M; in aria_ccm_ctrl()
596 cctx->L = arg; in aria_ccm_ctrl()
607 cctx->M = arg; in aria_ccm_ctrl()
625 if (cctx->ccm.key != &cctx->ks) in aria_ccm_ctrl()
692 if (!cctx->key_set) in aria_ccm_cipher()
[all …]
H A De_aes.c343 CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L, in aesni_ccm_init_key()
726 CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L, in aes_t4_ccm_init_key()
1043 s390x_km(in, len, out, cctx->fc, &cctx->km.param); in s390x_aes_ecb_cipher()
1092 s390x_kmo(in, len, out, cctx->fc, &cctx->kmo.param); in s390x_aes_ofb_cipher()
1099 s390x_km(cctx->kmo.param.cv, 16, cctx->kmo.param.cv, cctx->fc, in s390x_aes_ofb_cipher()
1175 s390x_kmf(in, len, out, cctx->fc, &cctx->kmf.param); in s390x_aes_cfb_cipher()
1233 s390x_kmf(in, len, out, cctx->fc, &cctx->kmf.param); in s390x_aes_cfb8_cipher()
3465 if (cctx->ccm.key != &cctx->ks) in aes_ccm_ctrl()
3498 CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L, in aes_ccm_init_key()
3508 CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L, in aes_ccm_init_key()
[all …]
H A Dp5_crpt.c26 int PKCS5_PBE_keyivgen_ex(EVP_CIPHER_CTX *cctx, const char *pass, int passlen, in PKCS5_PBE_keyivgen_ex() argument
101 if (!EVP_CipherInit_ex(cctx, cipher, NULL, key, iv, en_de)) in PKCS5_PBE_keyivgen_ex()
113 int PKCS5_PBE_keyivgen(EVP_CIPHER_CTX *cctx, const char *pass, int passlen, in PKCS5_PBE_keyivgen() argument
117 return PKCS5_PBE_keyivgen_ex(cctx, pass, passlen, param, cipher, md, en_de, in PKCS5_PBE_keyivgen()
/openssl/crypto/cmac/
H A Dcmac.c27 EVP_CIPHER_CTX *cctx; member
60 ctx->cctx = EVP_CIPHER_CTX_new(); in CMAC_CTX_new()
61 if (ctx->cctx == NULL) { in CMAC_CTX_new()
71 EVP_CIPHER_CTX_reset(ctx->cctx); in CMAC_CTX_cleanup()
81 return ctx->cctx; in CMAC_CTX_get0_cipher_ctx()
89 EVP_CIPHER_CTX_free(ctx->cctx); in CMAC_CTX_free()
99 if ((bl = EVP_CIPHER_CTX_get_block_size(in->cctx)) == 0) in CMAC_CTX_copy()
101 if (!EVP_CIPHER_CTX_copy(out->cctx, in->cctx)) in CMAC_CTX_copy()
125 block_len = EVP_CIPHER_CTX_get_block_size(ctx->cctx); in ossl_cmac_init()
150 if (EVP_CIPHER_CTX_get0_cipher(ctx->cctx) == NULL) in ossl_cmac_init()
[all …]
/openssl/test/
H A Ddtlstest.c73 SSL_CTX *sctx = NULL, *cctx = NULL; in test_dtls_unprocessed() local
141 SSL_CTX_free(cctx); in test_dtls_unprocessed()
193 SSL_CTX *sctx = NULL, *cctx = NULL; in test_dtls_drop_records() local
303 SSL_CTX_free(cctx); in test_dtls_drop_records()
311 SSL_CTX *sctx = NULL, *cctx = NULL; in test_cookie() local
344 SSL_CTX_free(cctx); in test_cookie()
351 SSL_CTX *sctx = NULL, *cctx = NULL; in test_dtls_duplicate_records() local
387 SSL_CTX_free(cctx); in test_dtls_duplicate_records()
480 SSL_CTX *sctx = NULL, *cctx = NULL; in test_swap_records() local
584 SSL_CTX_free(cctx); in test_swap_records()
[all …]
H A Dsslapitest.c422 SSL_CTX_free(cctx); in test_keylog()
539 SSL_CTX_free(cctx); in test_keylog_no_master_key()
632 SSL_CTX_free(cctx); in test_client_cert_verify_cb()
789 SSL_CTX_free(cctx); in test_client_hello_cb()
840 SSL_CTX_free(cctx); in test_no_ems()
950 SSL_CTX_free(cctx); in test_ccs_change_cipher()
1013 SSL_CTX_free(cctx); in execute_test_large_message()
1290 SSL_CTX_free(cctx); in execute_test_ktls()
5796 cctx = NULL; in test_tls13_no_dhe_kex()
11874 SSL_CTX *cctx; member
[all …]
H A Dquicfaultstest.c26 SSL_CTX *cctx = SSL_CTX_new(OSSL_QUIC_client_method()); in test_basic() local
34 if (!TEST_ptr(cctx)) in test_basic()
63 SSL_CTX_free(cctx); in test_basic()
94 SSL_CTX *cctx = SSL_CTX_new(OSSL_QUIC_client_method()); in test_unknown_frame() local
104 if (!TEST_ptr(cctx)) in test_unknown_frame()
156 SSL_CTX_free(cctx); in test_unknown_frame()
180 SSL_CTX *cctx = SSL_CTX_new(OSSL_QUIC_client_method()); in test_drop_extensions() local
186 if (!TEST_ptr(cctx)) in test_drop_extensions()
221 SSL_CTX_free(cctx); in test_drop_extensions()
273 if (!TEST_ptr(cctx)) in test_corrupted_data()
[all …]
H A Dquicapitest.c68 if (!TEST_ptr(cctx) in test_quic_write_read()
201 SSL_CTX_free(cctx); in test_quic_write_read()
227 if (!TEST_ptr(cctx) in test_fin_only_blocking()
278 SSL_CTX_free(cctx); in test_fin_only_blocking()
364 if (!TEST_ptr(cctx)) in test_cipher_find()
385 SSL_CTX_free(cctx); in test_cipher_find()
403 if (!TEST_ptr(cctx) in test_version()
424 SSL_CTX_free(cctx); in test_version()
549 SSL_CTX_free(cctx); in test_ssl_trace()
961 SSL_CTX_free(cctx); in test_bio_ssl()
[all …]
H A 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()
H A Dsslcorrupttest.c185 SSL_CTX *sctx = NULL, *cctx = NULL; in test_ssl_corrupt() local
200 &sctx, &cctx, cert, privkey))) in test_ssl_corrupt()
204 || !TEST_true(SSL_CTX_set_cipher_list(cctx, cipher_list[testidx])) in test_ssl_corrupt()
205 || !TEST_true(SSL_CTX_set_ciphersuites(cctx, "")) in test_ssl_corrupt()
206 || !TEST_ptr(ciphers = SSL_CTX_get_ciphers(cctx)) in test_ssl_corrupt()
215 if (!TEST_true(SSL_CTX_set_max_proto_version(cctx, TLS1_2_VERSION))) in test_ssl_corrupt()
222 if (!TEST_true(create_ssl_objects(sctx, cctx, &server, &client, NULL, in test_ssl_corrupt()
251 SSL_CTX_free(cctx); in test_ssl_corrupt()
H A Dcert_comp_test.c124 SSL_CTX *cctx = NULL, *sctx = NULL; in test_ssl_cert_comp() local
164 &sctx, &cctx, cert, privkey))) in test_ssl_cert_comp()
173 if (!TEST_true(SSL_CTX_set1_cert_comp_preference(cctx, client_pref, 1))) in test_ssl_cert_comp()
178 … if (!TEST_true(SSL_CTX_set1_cert_comp_preference(cctx, client_pref, OSSL_NELEM(client_pref)))) in test_ssl_cert_comp()
183 SSL_CTX_set_client_cert_cb(cctx, client_cert_cb); in test_ssl_cert_comp()
192 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ssl_cert_comp()
242 SSL_CTX_free(cctx); in test_ssl_cert_comp()
H A Dssl_handshake_rtt_test.c47 SSL_CTX *cctx = NULL, *sctx = NULL; in test_handshake_rtt() local
68 &sctx, &cctx, cert, privkey)) in test_handshake_rtt()
69 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_handshake_rtt()
128 SSL_CTX_free(cctx); in test_handshake_rtt()
H A Drpktest.c99 SSL_CTX *cctx = NULL, *sctx = NULL; in test_rpk() local
227 &sctx, &cctx, NULL, NULL))) in test_rpk()
244 if (!TEST_true(SSL_CTX_set_session_id_context(cctx, SID_CTX, sizeof(SID_CTX)))) in test_rpk()
249 if (!TEST_int_gt(SSL_CTX_dane_enable(cctx), 0)) in test_rpk()
253 SSL_CTX_set_verify(cctx, SSL_VERIFY_PEER, rpk_verify_client_cb); in test_rpk()
255 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_rpk()
531 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_rpk()
629 SSL_CTX_free(cctx); in test_rpk()
646 SSL_CTX *cctx = NULL, *sctx = NULL; in test_rpk_api() local
662 &sctx, &cctx, NULL, NULL))) in test_rpk_api()
[all …]
H A Dquic_newcid_test.c52 SSL_CTX *cctx = SSL_CTX_new(OSSL_QUIC_client_method()); in test_ncid_frame() local
67 if (!TEST_ptr(cctx)) in test_ncid_frame()
70 if (!TEST_true(qtest_create_quic_objects(NULL, cctx, NULL, cert, privkey, 0, in test_ncid_frame()
145 SSL_CTX_free(cctx); in test_ncid_frame()
H A 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()
/openssl/demos/bio/
H A 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()
H A Dclient-conf.c21 SSL_CONF_CTX *cctx = NULL; in main() local
48 cctx = SSL_CONF_CTX_new(); in main()
49 SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_CLIENT); in main()
50 SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_FILE); in main()
51 SSL_CONF_CTX_set_ssl_ctx(cctx, ctx); in main()
54 rv = SSL_CONF_cmd(cctx, cnf->name, cnf->value); in main()
71 if (!SSL_CONF_CTX_finish(cctx)) { in main()
115 SSL_CONF_CTX_free(cctx); in main()
H A Dclient-arg.c20 SSL_CONF_CTX *cctx; in main() local
28 cctx = SSL_CONF_CTX_new(); in main()
29 SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_CLIENT); in main()
30 SSL_CONF_CTX_set_ssl_ctx(cctx, ctx); in main()
34 rv = SSL_CONF_cmd_argv(cctx, &nargs, &args); in main()
63 if (!SSL_CONF_CTX_finish(cctx)) { in main()
106 SSL_CONF_CTX_free(cctx); in main()
H A 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()
/openssl/doc/man3/
H A DSSL_CONF_CTX_set_ssl_ctx.pod12 void SSL_CONF_CTX_set_ssl_ctx(SSL_CONF_CTX *cctx, SSL_CTX *ctx);
13 void SSL_CONF_CTX_set_ssl(SSL_CONF_CTX *cctx, SSL *ssl);
14 int SSL_CONF_CTX_finish(SSL_CONF_CTX *cctx);
18 SSL_CONF_CTX_set_ssl_ctx() sets the context associated with B<cctx> to the
20 B<cctx> is cleared. Subsequent calls to SSL_CONF_cmd() will be sent to
23 SSL_CONF_CTX_set_ssl() sets the context associated with B<cctx> to the
25 B<cctx> is cleared. Subsequent calls to SSL_CONF_cmd() will be sent to
/openssl/doc/man7/
H A Dprovider-cipher.pod22 void OSSL_FUNC_cipher_freectx(void *cctx);
23 void *OSSL_FUNC_cipher_dupctx(void *cctx);
26 int OSSL_FUNC_cipher_encrypt_init(void *cctx, const unsigned char *key,
29 int OSSL_FUNC_cipher_decrypt_init(void *cctx, const unsigned char *key,
43 const OSSL_PARAM *OSSL_FUNC_cipher_gettable_ctx_params(void *cctx,
45 const OSSL_PARAM *OSSL_FUNC_cipher_settable_ctx_params(void *cctx,
52 int OSSL_FUNC_cipher_get_ctx_params(void *cctx, OSSL_PARAM params[]);
120 the I<cctx> parameter.
124 I<cctx> parameter and return the duplicate copy.
129 newly created provider side cipher context in the I<cctx> parameter.
[all …]
/openssl/ssl/quic/
H A Dquic_record_shared.c93 if (el->cctx[keyslot] != NULL) { in el_teardown_keyslot()
94 EVP_CIPHER_CTX_free(el->cctx[keyslot]); in el_teardown_keyslot()
95 el->cctx[keyslot] = NULL; in el_teardown_keyslot()
113 EVP_CIPHER_CTX *cctx = NULL; in el_setup_keyslot() local
136 assert(el->cctx[keyslot] == NULL); in el_setup_keyslot()
164 if ((cctx = EVP_CIPHER_CTX_new()) == NULL) { in el_setup_keyslot()
176 if (!EVP_CipherInit_ex(cctx, cipher, NULL, key, el->iv[keyslot], 0)) { in el_setup_keyslot()
181 el->cctx[keyslot] = cctx; in el_setup_keyslot()
189 EVP_CIPHER_CTX_free(cctx); in el_setup_keyslot()
/openssl/crypto/pem/
H A Dpvkfmt.c850 EVP_CIPHER_CTX *cctx = EVP_CIPHER_CTX_new(); in do_PVK_body_key() local
852 if (cctx == NULL) { in do_PVK_body_key()
890 if (!EVP_DecryptInit_ex(cctx, rc4, NULL, keybuf, NULL)) in do_PVK_body_key()
892 if (!EVP_DecryptUpdate(cctx, q, &enctmplen, p, inlen)) in do_PVK_body_key()
894 if (!EVP_DecryptFinal_ex(cctx, q + enctmplen, &enctmplen)) in do_PVK_body_key()
921 EVP_CIPHER_CTX_free(cctx); in do_PVK_body_key()
1018 EVP_CIPHER_CTX *cctx = NULL; in i2b_PVK() local
1040 cctx = EVP_CIPHER_CTX_new(); in i2b_PVK()
1041 if (cctx == NULL) in i2b_PVK()
1085 if (!EVP_EncryptInit_ex(cctx, rc4, NULL, keybuf, NULL)) in i2b_PVK()
[all …]

Completed in 98 milliseconds

123