Home
last modified time | relevance | path

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

12345

/freebsd/crypto/openssl/ssl/
H A Dssl_conf.c111 static void ssl_set_option(SSL_CONF_CTX *cctx, unsigned int name_flags, in ssl_set_option() argument
116 if (cctx->poptions == NULL) in ssl_set_option()
123 pflags = cctx->pcert_flags; in ssl_set_option()
127 pflags = cctx->pvfy_flags; in ssl_set_option()
132 *cctx->poptions |= option_value; in ssl_set_option()
134 *cctx->poptions &= ~option_value; in ssl_set_option()
146 static int ssl_match_option(SSL_CONF_CTX *cctx, const ssl_flag_tbl *tbl, in ssl_match_option() argument
150 if (!(cctx->flags & tbl->name_flags & SSL_TFLAG_BOTH)) in ssl_match_option()
158 ssl_set_option(cctx, tbl->name_flags, tbl->option_value, onoff); in ssl_match_option()
164 SSL_CONF_CTX *cctx = usr; in ssl_set_option_list() local
[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()
/freebsd/crypto/openssl/crypto/evp/
H A De_aria.c513 EVP_ARIA_CCM_CTX *cctx = EVP_C_DATA(EVP_ARIA_CCM_CTX, ctx); in aria_ccm_init_key() local
521 &cctx->ks.ks); in aria_ccm_init_key()
522 CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L, in aria_ccm_init_key()
523 &cctx->ks, (block128_f)ossl_aria_encrypt); in aria_ccm_init_key()
528 cctx->str = NULL; in aria_ccm_init_key()
529 cctx->key_set = 1; in aria_ccm_init_key()
532 memcpy(ctx->iv, iv, 15 - cctx->L); in aria_ccm_init_key()
533 cctx->iv_set = 1; in aria_ccm_init_key()
540 EVP_ARIA_CCM_CTX *cctx = EVP_C_DATA(EVP_ARIA_CCM_CTX, c); in aria_ccm_ctrl() local
544 cctx->key_set = 0; in aria_ccm_ctrl()
[all …]
H A De_aes.c328 EVP_AES_CCM_CTX *cctx = EVP_C_DATA(EVP_AES_CCM_CTX, ctx); in aesni_ccm_init_key() local
340 aesni_set_encrypt_key(key, keylen, &cctx->ks.ks); in aesni_ccm_init_key()
341 CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L, in aesni_ccm_init_key()
342 &cctx->ks, (block128_f)aesni_encrypt); in aesni_ccm_init_key()
343 cctx->str = enc ? (ccm128_f)aesni_ccm64_encrypt_blocks : (ccm128_f)aesni_ccm64_decrypt_blocks; in aesni_ccm_init_key()
344 cctx->key_set = 1; in aesni_ccm_init_key()
347 memcpy(ctx->iv, iv, 15 - cctx->L); in aesni_ccm_init_key()
348 cctx in aesni_ccm_init_key()
714 EVP_AES_CCM_CTX *cctx = EVP_C_DATA(EVP_AES_CCM_CTX, ctx); aes_t4_ccm_init_key() local
1031 S390X_AES_ECB_CTX *cctx = EVP_C_DATA(S390X_AES_ECB_CTX, ctx); s390x_aes_ecb_init_key() local
1049 S390X_AES_ECB_CTX *cctx = EVP_C_DATA(S390X_AES_ECB_CTX, ctx); s390x_aes_ecb_cipher() local
1059 S390X_AES_OFB_CTX *cctx = EVP_C_DATA(S390X_AES_OFB_CTX, ctx); s390x_aes_ofb_init_key() local
1081 S390X_AES_OFB_CTX *cctx = EVP_C_DATA(S390X_AES_OFB_CTX, ctx); s390x_aes_ofb_cipher() local
1125 S390X_AES_CFB_CTX *cctx = EVP_C_DATA(S390X_AES_CFB_CTX, ctx); s390x_aes_cfb_init_key() local
1151 S390X_AES_CFB_CTX *cctx = EVP_C_DATA(S390X_AES_CFB_CTX, ctx); s390x_aes_cfb_cipher() local
1210 S390X_AES_CFB_CTX *cctx = EVP_C_DATA(S390X_AES_CFB_CTX, ctx); s390x_aes_cfb8_init_key() local
1236 S390X_AES_CFB_CTX *cctx = EVP_C_DATA(S390X_AES_CFB_CTX, ctx); s390x_aes_cfb8_cipher() local
1973 S390X_AES_CCM_CTX *cctx = EVP_C_DATA(S390X_AES_CCM_CTX, ctx); s390x_aes_ccm_tls_cipher() local
2027 S390X_AES_CCM_CTX *cctx = EVP_C_DATA(S390X_AES_CCM_CTX, ctx); s390x_aes_ccm_init_key() local
2071 S390X_AES_CCM_CTX *cctx = EVP_C_DATA(S390X_AES_CCM_CTX, ctx); s390x_aes_ccm_cipher() local
2159 S390X_AES_CCM_CTX *cctx = EVP_C_DATA(S390X_AES_CCM_CTX, c); s390x_aes_ccm_ctrl() local
3385 EVP_AES_CCM_CTX *cctx = EVP_C_DATA(EVP_AES_CCM_CTX, c); aes_ccm_ctrl() local
3484 EVP_AES_CCM_CTX *cctx = EVP_C_DATA(EVP_AES_CCM_CTX, ctx); aes_ccm_init_key() local
3535 EVP_AES_CCM_CTX *cctx = EVP_C_DATA(EVP_AES_CCM_CTX, ctx); aes_ccm_tls_cipher() local
3584 EVP_AES_CCM_CTX *cctx = EVP_C_DATA(EVP_AES_CCM_CTX, ctx); aes_ccm_cipher() local
[all...]
/freebsd/sys/contrib/zstd/lib/compress/
H A Dzstd_compress.c102 static void ZSTD_initCCtx(ZSTD_CCtx* cctx, ZSTD_customMem memManager) in ZSTD_initCCtx() argument
104 assert(cctx != NULL); in ZSTD_initCCtx()
105 ZSTD_memset(cctx, 0, sizeof(*cctx)); in ZSTD_initCCtx()
106 cctx->customMem = memManager; in ZSTD_initCCtx()
107 cctx->bmi2 = ZSTD_cpuSupportsBmi2(); in ZSTD_initCCtx()
108 { size_t const err = ZSTD_CCtx_reset(cctx, ZSTD_reset_parameters); in ZSTD_initCCtx()
119 { ZSTD_CCtx* const cctx = (ZSTD_CCtx*)ZSTD_customMalloc(sizeof(ZSTD_CCtx), customMem); in ZSTD_createCCtx_advanced() local
120 if (!cctx) return NULL; in ZSTD_createCCtx_advanced()
121 ZSTD_initCCtx(cctx, customMem); in ZSTD_createCCtx_advanced()
122 return cctx; in ZSTD_createCCtx_advanced()
[all …]
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dzstd_compress.c103 static void ZSTD_initCCtx(ZSTD_CCtx* cctx, ZSTD_customMem memManager) in ZSTD_initCCtx() argument
105 assert(cctx != NULL); in ZSTD_initCCtx()
106 ZSTD_memset(cctx, 0, sizeof(*cctx)); in ZSTD_initCCtx()
107 cctx->customMem = memManager; in ZSTD_initCCtx()
108 cctx->bmi2 = ZSTD_cpuSupportsBmi2(); in ZSTD_initCCtx()
109 { size_t const err = ZSTD_CCtx_reset(cctx, ZSTD_reset_parameters); in ZSTD_initCCtx()
120 { ZSTD_CCtx* const cctx = (ZSTD_CCtx*)ZSTD_customMalloc(sizeof(ZSTD_CCtx), customMem); in ZSTD_createCCtx_advanced() local
121 if (!cctx) return NULL; in ZSTD_createCCtx_advanced()
122 ZSTD_initCCtx(cctx, customMem); in ZSTD_createCCtx_advanced()
123 return cctx; in ZSTD_createCCtx_advanced()
[all …]
/freebsd/crypto/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()
123 if (!EVP_EncryptInit_ex2(ctx->cctx, NULL, NULL, zero_iv, param)) in ossl_cmac_init()
125 block_len = EVP_CIPHER_CTX_get_block_size(ctx->cctx); in ossl_cmac_init()
[all …]
/freebsd/crypto/openssl/test/
H A Ddtlstest.c72 SSL_CTX *sctx = NULL, *cctx = NULL; in test_dtls_unprocessed() local
82 &sctx, &cctx, cert, privkey))) in test_dtls_unprocessed()
86 if (!TEST_true(SSL_CTX_set_cipher_list(cctx, "AES128-SHA"))) in test_dtls_unprocessed()
91 || !TEST_true(SSL_CTX_set_cipher_list(cctx, in test_dtls_unprocessed()
101 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl1, &clientssl1, in test_dtls_unprocessed()
140 SSL_CTX_free(cctx); in test_dtls_unprocessed()
188 SSL_CTX *sctx = NULL, *cctx = NULL; in test_dtls_drop_records() local
200 &sctx, &cctx, cert, privkey))) in test_dtls_drop_records()
206 || !TEST_true(SSL_CTX_set_cipher_list(cctx, in test_dtls_drop_records()
220 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_dtls_drop_records()
[all …]
H A Dsslapitest.c360 SSL_CTX *cctx = NULL, *sctx = NULL; in test_keylog() local
376 &sctx, &cctx, cert, privkey))) in test_keylog()
380 SSL_CTX_set_options(cctx, SSL_OP_NO_TLSv1_3); in test_keylog()
384 if (!TEST_true(SSL_CTX_set_cipher_list(cctx, "RSA"))) in test_keylog()
387 if (!TEST_true(SSL_CTX_get_keylog_callback(cctx) == NULL) in test_keylog()
390 SSL_CTX_set_keylog_callback(cctx, client_keylog_callback); in test_keylog()
391 if (!TEST_true(SSL_CTX_get_keylog_callback(cctx) in test_keylog()
400 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_keylog()
432 SSL_CTX_free(cctx); in test_keylog()
441 SSL_CTX *cctx in test_keylog_no_master_key() local
583 SSL_CTX *cctx = NULL, *sctx = NULL; test_client_cert_verify_cb() local
763 SSL_CTX *cctx = NULL, *sctx = NULL; test_client_hello_cb() local
806 SSL_CTX *cctx = NULL, *sctx = NULL; test_no_ems() local
863 SSL_CTX *cctx = NULL, *sctx = NULL; test_ccs_change_cipher() local
972 SSL_CTX *cctx = NULL, *sctx = NULL; execute_test_large_message() local
1142 SSL_CTX *cctx = NULL, *sctx = NULL; execute_test_ktls() local
1314 SSL_CTX *cctx = NULL, *sctx = NULL; execute_test_ktls_sendfile() local
1560 SSL_CTX *cctx = NULL, *sctx = NULL; test_large_app_data() local
1720 SSL_CTX *cctx = NULL, *sctx = NULL; execute_cleanse_plaintext() local
1907 SSL_CTX *cctx = NULL, *sctx = NULL; test_tlsext_status_type() local
2072 SSL_CTX *sctx = NULL, *cctx = NULL; execute_test_session() local
2477 setup_ticket_test(int stateful,int idx,SSL_CTX ** sctx,SSL_CTX ** cctx) setup_ticket_test() argument
2499 check_resumption(int idx,SSL_CTX * sctx,SSL_CTX * cctx,int succ) check_resumption() argument
2558 SSL_CTX *sctx = NULL, *cctx = NULL; test_tickets() local
2675 SSL_CTX *sctx = NULL, *cctx = NULL; test_psk_tickets() local
2728 SSL_CTX *sctx = NULL, *cctx = NULL; test_extra_tickets() local
2939 SSL_CTX *sctx = NULL, *cctx = NULL; test_ssl_set_bio() local
3188 SSL_CTX *cctx = NULL, *sctx = NULL; test_set_sigalgs() local
3433 setupearly_data_test(SSL_CTX ** cctx,SSL_CTX ** sctx,SSL ** clientssl,SSL ** serverssl,SSL_SESSION ** sess,int idx,size_t mdsize) setupearly_data_test() argument
3558 SSL_CTX *cctx = NULL, *sctx = NULL; test_early_data_read_write() local
3803 SSL_CTX *cctx = NULL, *sctx = NULL; test_early_data_replay_int() local
3960 SSL_CTX *cctx = NULL, *sctx = NULL; early_data_skip_helper() local
4186 SSL_CTX *cctx = NULL, *sctx = NULL; test_early_data_not_sent() local
4269 SSL_CTX *cctx = NULL, *sctx = NULL; test_early_data_psk() local
4460 SSL_CTX *cctx = NULL, *sctx = NULL; test_early_data_psk_with_all_ciphers() local
4596 SSL_CTX *cctx = NULL, *sctx = NULL; test_early_data_not_expected() local
4656 SSL_CTX *cctx = NULL, *sctx = NULL; test_early_data_tls1_2() local
4740 SSL_CTX *cctx = NULL, *sctx = NULL; test_set_ciphersuite() local
4807 SSL_CTX *cctx = NULL, *sctx = NULL; test_ciphersuite_change() local
4977 SSL_CTX *sctx = NULL, *cctx = NULL; test_key_exchange() local
5289 SSL_CTX *sctx = NULL, *cctx = NULL; test_negotiated_group() local
5449 SSL_CTX *sctx = NULL, *cctx = NULL; test_tls13_ciphersuite() local
5606 SSL_CTX *sctx = NULL, *cctx = NULL; test_tls13_psk() local
5847 SSL_CTX *sctx = NULL, *cctx = NULL; test_tls13_no_dhe_kex() local
5988 SSL_CTX *sctx = NULL, *cctx = NULL; test_stateless() local
6202 SSL_CTX *cctx = NULL, *sctx = NULL, *sctx2 = NULL; test_custom_exts() local
6473 SSL_CTX *sctx = NULL, *cctx = NULL; test_serverinfo_custom() local
6569 SSL_CTX *cctx = NULL, *sctx = NULL, *sctx2 = NULL; test_export_key_mat() local
6767 SSL_CTX *cctx = NULL, *sctx = NULL; test_export_key_mat_early() local
6843 SSL_CTX *cctx = NULL, *sctx = NULL; test_key_update() local
6902 SSL_CTX *cctx = NULL, *sctx = NULL; test_key_update_peer_in_write() local
6997 SSL_CTX *cctx = NULL, *sctx = NULL; test_key_update_peer_in_read() local
7080 SSL_CTX *cctx = NULL, *sctx = NULL; test_key_update_local_in_write() local
7171 SSL_CTX *cctx = NULL, *sctx = NULL; test_key_update_local_in_read() local
7261 SSL_CTX *cctx = NULL, *sctx = NULL; test_ssl_clear() local
7474 SSL_CTX *cctx = NULL, *sctx = NULL; test_pha_key_update() local
7679 SSL_CTX *cctx = NULL, *sctx = NULL; test_srp() local
8101 SSL_CTX *cctx = NULL, *sctx = NULL; test_info_callback() local
8230 SSL_CTX *cctx = NULL, *sctx = NULL; test_ssl_pending() local
8389 SSL_CTX *cctx = NULL, *sctx = NULL; int_test_ssl_get_shared_ciphers() local
8636 SSL_CTX *cctx = NULL, *sctx = NULL; test_ticket_callbacks() local
8797 SSL_CTX *cctx = NULL, *sctx = NULL; test_incorrect_shutdown() local
8856 SSL_CTX *cctx = NULL, *sctx = NULL; test_shutdown() local
9009 SSL_CTX *cctx = NULL, *sctx = NULL; test_async_shutdown() local
9194 SSL_CTX *cctx = NULL, *sctx = NULL, *snictx = NULL; test_cert_cb_int() local
9320 SSL_CTX *cctx = NULL, *sctx = NULL; test_client_cert_cb() local
9377 SSL_CTX *cctx = NULL, *sctx = NULL; test_ca_names_int() local
9529 SSL_CTX *cctx = NULL, *sctx = NULL; test_multiblock_write() local
9734 SSL_CTX *sctx = NULL, *cctx = NULL; test_session_cache_overflow() local
9868 SSL_CTX *cctx = NULL, *sctx = NULL; test_servername() local
10120 SSL_CTX *cctx = NULL, *sctx = NULL; test_sigalgs_available() local
10295 SSL_CTX *cctx = NULL, *sctx = NULL; test_pluggable_group() local
10405 SSL_CTX *cctx = NULL, *sctx = NULL; test_pluggable_signature() local
10514 SSL_CTX *cctx = NULL, *sctx = NULL; test_ssl_dup() local
10600 SSL_CTX *cctx = NULL, *sctx = NULL; test_session_secret_cb() local
10766 SSL_CTX *cctx = NULL, *sctx = NULL; test_set_tmp_dh() local
10875 SSL_CTX *cctx = SSL_CTX_new_ex(libctx, NULL, TLS_client_method()); test_dh_auto() local
10997 SSL_CTX *cctx = NULL, *sctx = NULL, *sctx2 = NULL; test_sni_tls13() local
11051 SSL_CTX *cctx = NULL, *sctx = NULL; test_ticket_lifetime() local
11390 SSL_CONF_CTX *cctx = NULL; test_load_dhfile() local
11423 SSL_CTX *cctx = NULL, *sctx = NULL; test_read_ahead_key_change() local
11523 SSL_CTX *cctx = NULL, *sctx = NULL; test_tls13_record_padding() local
11643 SSL_CTX *cctx = NULL, *sctx = NULL; test_pipelining() local
11858 SSL_CTX *cctx = NULL, *sctx = NULL; test_version() local
11974 SSL_CTX *cctx = NULL, *sctx = NULL; test_rstate_string() local
12058 SSL_CTX *cctx = NULL, *sctx = NULL; test_handshake_retry() local
12140 SSL_CTX *cctx = NULL, *sctx = NULL; test_data_retry() local
12233 SSL_CTX *cctx; global() member
12290 SSL_CTX *sctx = NULL, *cctx = NULL; test_multi_resume() local
12546 SSL_CTX *sctx = NULL, *cctx = NULL; test_npn() local
12644 SSL_CTX *sctx = NULL, *cctx = NULL; test_alpn() local
13009 SSL_CTX *sctx = NULL, *sctx2 = NULL, *cctx = NULL; test_quic_tls() local
13173 SSL_CTX *sctx = NULL, *cctx = NULL; test_quic_tls_early_data() local
13337 SSL_CTX *sctx = NULL, *cctx = NULL; test_no_renegotiation() local
13414 SSL_CTX *sctx = NULL, *cctx = NULL; test_ssl_trace() local
13487 SSL_CTX *sctx = NULL, *cctx = NULL; test_ssl_set_groups_unsupported_keyshare() local
[all...]
H A Dquicapitest.c53 SSL_CTX *cctx = SSL_CTX_new_ex(libctx, NULL, OSSL_QUIC_client_method()); in test_quic_write_read()
70 if (!TEST_ptr(cctx) in test_quic_write_read()
71 || !TEST_true(qtest_create_quic_objects(libctx, cctx, sctx, in test_quic_write_read()
203 SSL_CTX_free(cctx); in test_quic_write_read()
215 SSL_CTX *cctx = SSL_CTX_new_ex(libctx, NULL, OSSL_QUIC_client_method()); in test_fin_only_blocking()
229 if (!TEST_ptr(cctx) in test_fin_only_blocking()
230 || !TEST_true(qtest_create_quic_objects(libctx, cctx, sctx, in test_fin_only_blocking()
279 SSL_CTX_free(cctx); in test_fin_only_blocking()
346 SSL_CTX *cctx = SSL_CTX_new_ex(libctx, NULL, OSSL_QUIC_client_method()); in test_cipher_find()
365 if (!TEST_ptr(cctx)) in test_cipher_find()
52 SSL_CTX *cctx = SSL_CTX_new_ex(libctx, NULL, OSSL_QUIC_client_method()); test_quic_write_read() local
214 SSL_CTX *cctx = SSL_CTX_new_ex(libctx, NULL, OSSL_QUIC_client_method()); test_fin_only_blocking() local
345 SSL_CTX *cctx = SSL_CTX_new_ex(libctx, NULL, OSSL_QUIC_client_method()); test_cipher_find() local
398 SSL_CTX *cctx = SSL_CTX_new_ex(libctx, NULL, OSSL_QUIC_client_method()); test_version() local
435 SSL_CTX *cctx = NULL; test_ssl_trace() local
556 SSL_CTX *cctx = NULL; test_new_token() local
901 SSL_CTX *cctx = SSL_CTX_new_ex(libctx, NULL, OSSL_QUIC_client_method()); test_bio_ssl() local
1039 SSL_CTX *cctx = SSL_CTX_new_ex(libctx, NULL, OSSL_QUIC_client_method()); test_back_pressure() local
1115 SSL_CTX *cctx = SSL_CTX_new_ex(libctx, NULL, OSSL_QUIC_client_method()); test_multiple_dgrams() local
1176 SSL_CTX *cctx; test_non_io_retry() local
1255 SSL_CTX *cctx = SSL_CTX_new_ex(libctx, NULL, OSSL_QUIC_client_method()); test_quic_psk() local
1299 SSL_CTX *cctx = SSL_CTX_new_ex(libctx, NULL, OSSL_QUIC_client_method()); test_client_auth() local
1386 SSL_CTX *cctx = SSL_CTX_new_ex(libctx, NULL, OSSL_QUIC_client_method()); test_alpn() local
1444 SSL_CTX *cctx = SSL_CTX_new_ex(libctx, NULL, OSSL_QUIC_client_method()); test_get_shutdown() local
1551 SSL_CTX *cctx = SSL_CTX_new_ex(libctx, NULL, OSSL_QUIC_client_method()); test_noisy_dgram() local
1657 SSL_CTX *cctx = SSL_CTX_new_ex(libctx, NULL, OSSL_QUIC_client_method()); test_bw_limit() local
2376 SSL_CTX *cctx = SSL_CTX_new_ex(libctx, NULL, OSSL_QUIC_client_method()); test_session_cb() local
2470 SSL_CTX *cctx = SSL_CTX_new_ex(libctx, NULL, OSSL_QUIC_client_method()); test_early_ticks() local
2724 create_quic_ssl_objects(SSL_CTX * sctx,SSL_CTX * cctx,SSL ** lssl,SSL ** cssl) create_quic_ssl_objects() argument
2783 SSL_CTX *cctx = NULL, *sctx = NULL; test_ssl_accept_connection() local
2844 SSL_CTX *cctx = NULL, *sctx = NULL; test_ssl_set_verify() local
2895 SSL_CTX *cctx = NULL, *sctx = NULL; test_client_hello_retry() local
[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()
37 if (!TEST_true(qtest_create_quic_objects(NULL, cctx, NULL, cert, privkey, 0, 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()
107 if (!TEST_true(qtest_create_quic_objects(NULL, cctx, NULL, cert, privkey, 0, 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()
[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()
/freebsd/crypto/heimdal/lib/gssapi/
H A Dtest_context.c114 gss_ctx_id_t *sctx, gss_ctx_id_t *cctx, in loop() argument
161 cctx, in loop()
246 wrapunwrap(gss_ctx_id_t cctx, gss_ctx_id_t sctx, int flags, gss_OID mechoid) in wrapunwrap() argument
256 maj_stat = gss_wrap(&min_stat, cctx, flags, 0, &input_token, in wrapunwrap()
283 wrapunwrap_iov(gss_ctx_id_t cctx, gss_ctx_id_t sctx, int flags, gss_OID mechoid) in wrapunwrap_iov() argument
358 maj_stat = gss_wrap_iov(&min_stat, cctx, dce_style_flag || flags & USE_CONF, 0, &conf_state, in wrapunwrap_iov()
419 getverifymic(gss_ctx_id_t cctx, gss_ctx_id_t sctx, gss_OID mechoid) in getverifymic() argument
428 maj_stat = gss_get_mic(&min_stat, cctx, 0, &input_token, in getverifymic()
506 gss_ctx_id_t cctx, sctx; in main() local
520 cctx = sctx = GSS_C_NO_CONTEXT; in main()
[all …]
/freebsd/usr.bin/mkuzip/
H A Dmkuz_zstd.c49 ZSTD_CCtx *cctx; in mkuz_zstd_init() local
60 cctx = ZSTD_createCCtx(); in mkuz_zstd_init()
61 if (cctx == NULL) in mkuz_zstd_init()
64 rc = ZSTD_CCtx_setParameter(cctx, ZSTD_c_compressionLevel, in mkuz_zstd_init()
70 rc = ZSTD_CCtx_setParameter(cctx, ZSTD_c_checksumFlag, 1); in mkuz_zstd_init()
75 return (cctx); in mkuz_zstd_init()
81 ZSTD_CCtx *cctx; in mkuz_zstd_compress() local
84 cctx = p; in mkuz_zstd_compress()
86 rc = ZSTD_compress2(cctx, oblk->data, oblk->alen, iblk->data, in mkuz_zstd_compress()
/freebsd/contrib/ofed/libbnxtre/
H A Dmain.c114 bool _is_chip_gen_p5(struct bnxt_re_chip_ctx *cctx) in _is_chip_gen_p5() argument
116 return (cctx->chip_num == CHIP_NUM_57508 || in _is_chip_gen_p5()
117 cctx->chip_num == CHIP_NUM_57504 || in _is_chip_gen_p5()
118 cctx->chip_num == CHIP_NUM_57502); in _is_chip_gen_p5()
121 bool _is_chip_a0(struct bnxt_re_chip_ctx *cctx) in _is_chip_a0() argument
123 return !cctx->chip_rev; in _is_chip_a0()
126 bool _is_chip_thor2(struct bnxt_re_chip_ctx *cctx) in _is_chip_thor2() argument
128 return (cctx->chip_num == CHIP_NUM_58818 || in _is_chip_thor2()
129 cctx->chip_num == CHIP_NUM_57608); in _is_chip_thor2()
132 bool _is_chip_gen_p5_thor2(struct bnxt_re_chip_ctx *cctx) in _is_chip_gen_p5_thor2() argument
[all …]
/freebsd/sys/dev/bnxt/bnxt_re/
H A Dqplib_res.h72 #define BNXT_RE_PPP_ENABLED(cctx) ((cctx)->modes.db_push_mode ==\ argument
115 static inline bool _is_chip_p7(struct bnxt_qplib_chip_ctx *cctx) in _is_chip_p7() argument
117 return _is_chip_num_p7(cctx->chip_num); in _is_chip_p7()
121 static inline bool _is_chip_gen_p5(struct bnxt_qplib_chip_ctx *cctx) in _is_chip_gen_p5() argument
123 return (cctx->chip_num == CHIP_NUM_57508 || in _is_chip_gen_p5()
124 cctx->chip_num == CHIP_NUM_57504 || in _is_chip_gen_p5()
125 cctx->chip_num == CHIP_NUM_57502); in _is_chip_gen_p5()
128 static inline bool _is_chip_gen_p5_p7(struct bnxt_qplib_chip_ctx *cctx) in _is_chip_gen_p5_p7() argument
130 return (_is_chip_gen_p5(cctx) || _is_chip_p7(cctx)); in _is_chip_gen_p5_p7()
133 static inline bool _is_wqe_mode_variable(struct bnxt_qplib_chip_ctx *cctx) in _is_wqe_mode_variable() argument
[all …]
/freebsd/sys/contrib/openzfs/module/zstd/lib/
H A Dzstd.h283 ZSTDLIB_API size_t ZSTD_freeCCtx(ZSTD_CCtx* cctx); /* compatible with NULL pointer */
293 ZSTDLIB_API size_t ZSTD_compressCCtx(ZSTD_CCtx* cctx,
571 ZSTDLIB_API size_t ZSTD_CCtx_setParameter(ZSTD_CCtx* cctx, ZSTD_cParameter param, int value);
588 ZSTDLIB_API size_t ZSTD_CCtx_setPledgedSrcSize(ZSTD_CCtx* cctx, unsigned long long pledgedSrcSize);
610 ZSTDLIB_API size_t ZSTD_CCtx_reset(ZSTD_CCtx* cctx, ZSTD_ResetDirective reset);
624 ZSTDLIB_API size_t ZSTD_compress2( ZSTD_CCtx* cctx,
824 ZSTDLIB_API size_t ZSTD_compressStream2( ZSTD_CCtx* cctx,
1013 ZSTDLIB_API size_t ZSTD_compress_usingCDict(ZSTD_CCtx* cctx,
1109 ZSTDLIB_API size_t ZSTD_CCtx_loadDictionary(ZSTD_CCtx* cctx, const void* dict, size_t dictSize);
1123 ZSTDLIB_API size_t ZSTD_CCtx_refCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict);
[all …]
/freebsd/sys/contrib/zstd/lib/
H A Dzstd.h282 ZSTDLIB_API size_t ZSTD_freeCCtx(ZSTD_CCtx* cctx); /* compatible with NULL pointer */
292 ZSTDLIB_API size_t ZSTD_compressCCtx(ZSTD_CCtx* cctx,
570 ZSTDLIB_API size_t ZSTD_CCtx_setParameter(ZSTD_CCtx* cctx, ZSTD_cParameter param, int value);
587 ZSTDLIB_API size_t ZSTD_CCtx_setPledgedSrcSize(ZSTD_CCtx* cctx, unsigned long long pledgedSrcSize);
609 ZSTDLIB_API size_t ZSTD_CCtx_reset(ZSTD_CCtx* cctx, ZSTD_ResetDirective reset);
623 ZSTDLIB_API size_t ZSTD_compress2( ZSTD_CCtx* cctx,
823 ZSTDLIB_API size_t ZSTD_compressStream2( ZSTD_CCtx* cctx,
1012 ZSTDLIB_API size_t ZSTD_compress_usingCDict(ZSTD_CCtx* cctx,
1108 ZSTDLIB_API size_t ZSTD_CCtx_loadDictionary(ZSTD_CCtx* cctx, const void* dict, size_t dictSize);
1122 ZSTDLIB_API size_t ZSTD_CCtx_refCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict);
[all …]
/freebsd/crypto/openssl/demos/bio/
H A Dserver-conf.c31 SSL_CONF_CTX *cctx = NULL; in main() local
58 cctx = SSL_CONF_CTX_new(); in main()
59 SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_SERVER); in main()
60 SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_CERTIFICATE); in main()
61 SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_FILE); in main()
62 SSL_CONF_CTX_set_ssl_ctx(cctx, ctx); in main()
66 rv = SSL_CONF_cmd(cctx, cnf->name, cnf->value); in main()
83 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.c29 SSL_CONF_CTX *cctx; in main() local
38 cctx = SSL_CONF_CTX_new(); in main()
39 SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_SERVER); in main()
40 SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_CERTIFICATE); in main()
41 SSL_CONF_CTX_set_ssl_ctx(cctx, ctx); in main()
45 rv = SSL_CONF_cmd_argv(cctx, &nargs, &args); in main()
74 if (!SSL_CONF_CTX_finish(cctx)) { in main()
/freebsd/crypto/openssh/
H A Dmux.c332 struct mux_session_confirm_ctx *cctx; in mux_master_process_new_session() local
338 cctx = xcalloc(1, sizeof(*cctx)); in mux_master_process_new_session()
339 cctx->term = NULL; in mux_master_process_new_session()
340 cctx->rid = rid; in mux_master_process_new_session()
342 cctx->env = NULL; in mux_master_process_new_session()
345 (r = sshbuf_get_u32(m, &cctx->want_tty)) != 0 || in mux_master_process_new_session()
346 (r = sshbuf_get_u32(m, &cctx->want_x_fwd)) != 0 || in mux_master_process_new_session()
347 (r = sshbuf_get_u32(m, &cctx->want_agent_fwd)) != 0 || in mux_master_process_new_session()
348 (r = sshbuf_get_u32(m, &cctx->want_subsys)) != 0 || in mux_master_process_new_session()
350 (r = sshbuf_get_cstring(m, &cctx->term, NULL)) != 0 || in mux_master_process_new_session()
[all …]
/freebsd/crypto/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,
32 int OSSL_FUNC_cipher_encrypt_skey_init(void *cctx, void *skeydata,
35 int OSSL_FUNC_cipher_encrypt_skey_init(void *cctx, void *skeydata,
38 int OSSL_FUNC_cipher_update(void *cctx, unsigned char *out, size_t *outl,
40 int OSSL_FUNC_cipher_final(void *cctx, unsigned char *out, size_t *outl,
42 int OSSL_FUNC_cipher_cipher(void *cctx, unsigned char *out, size_t *outl,
46 int OSSL_FUNC_cipher_pipeline_encrypt_init(void *cctx, const unsigned char *key,
[all …]
/freebsd/sys/contrib/zstd/lib/deprecated/
H A Dzbuff.h73 ZBUFF_DEPRECATED("use ZSTD_freeCStream") size_t ZBUFF_freeCCtx(ZBUFF_CCtx* cctx);
75 ZBUFF_DEPRECATED("use ZSTD_initCStream") size_t ZBUFF_compressInit(ZBUFF_CCtx* cctx, int …
76 …D_initCStream_usingDict") size_t ZBUFF_compressInitDictionary(ZBUFF_CCtx* cctx, const void* dict, …
78 ZBUFF_DEPRECATED("use ZSTD_compressStream") size_t ZBUFF_compressContinue(ZBUFF_CCtx* cctx, void* d…
79 ZBUFF_DEPRECATED("use ZSTD_flushStream") size_t ZBUFF_compressFlush(ZBUFF_CCtx* cctx, void* dst,…
80 ZBUFF_DEPRECATED("use ZSTD_endStream") size_t ZBUFF_compressEnd(ZBUFF_CCtx* cctx, void* dst, s…

12345