/freebsd/crypto/openssl/ssl/ |
H A D | ssl_conf.c | 181 for (i = 0, tbl = cctx->tbl; i < cctx->ntbl; i++, tbl++) { in ssl_set_option_list() 192 if (cctx->ssl) in cmd_SignatureAlgorithms() 204 if (cctx->ssl) in cmd_ClientSignatureAlgorithms() 357 return min_max_proto(cctx, value, cctx->min_version); in cmd_MinProtocol() 369 return min_max_proto(cctx, value, cctx->max_version); in cmd_MaxProtocol() 589 SSL_CTX *sslctx = (cctx->ssl != NULL) ? cctx->ssl->ctx : cctx->ctx; in cmd_DHParameters() 592 if (cctx->ctx != NULL || cctx->ssl != NULL) { in cmd_DHParameters() 815 strncmp(*pcmd, cctx->prefix, cctx->prefixlen)) in ssl_conf_cmd_skip_prefix() 1002 SSL_set0_CA_list(cctx->ssl, cctx->canames); in SSL_CONF_CTX_finish() 1004 SSL_CTX_set0_CA_list(cctx->ctx, cctx->canames); in SSL_CONF_CTX_finish() [all …]
|
H A D | ssl_mcnf.c | 25 SSL_CONF_CTX *cctx = NULL; in ssl_do_config() local 48 cctx = SSL_CONF_CTX_new(); in ssl_do_config() 49 if (cctx == NULL) in ssl_do_config() 56 SSL_CONF_CTX_set_ssl(cctx, s); in ssl_do_config() 60 SSL_CONF_CTX_set_ssl_ctx(cctx, ctx); in ssl_do_config() 67 SSL_CONF_CTX_set_flags(cctx, flags); in ssl_do_config() 75 rv = SSL_CONF_cmd(cctx, cmdstr, arg); in ssl_do_config() 79 if (!SSL_CONF_CTX_finish(cctx)) in ssl_do_config() 83 SSL_CONF_CTX_free(cctx); in ssl_do_config()
|
/freebsd/crypto/openssl/crypto/evp/ |
H A D | e_aria.c | 525 CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L, in aria_ccm_init_key() 531 cctx->str = NULL; in aria_ccm_init_key() 536 cctx->iv_set = 1; in aria_ccm_init_key() 549 cctx->L = 8; in aria_ccm_ctrl() 550 cctx->M = 12; in aria_ccm_ctrl() 584 return cctx->M; in aria_ccm_ctrl() 600 cctx->L = arg; in aria_ccm_ctrl() 611 cctx->M = arg; in aria_ccm_ctrl() 629 if (cctx->ccm.key != &cctx->ks) in aria_ccm_ctrl() 696 if (!cctx->key_set) in aria_ccm_cipher() [all …]
|
H A D | e_aes.c | 323 CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L, in aesni_ccm_init_key() 678 CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L, in aes_t4_ccm_init_key() 985 s390x_km(in, len, out, cctx->fc, &cctx->km.param); in s390x_aes_ecb_cipher() 1026 s390x_kmo(in, len, out, cctx->fc, &cctx->kmo.param); in s390x_aes_ofb_cipher() 1033 s390x_km(cctx->kmo.param.cv, 16, cctx->kmo.param.cv, cctx->fc, in s390x_aes_ofb_cipher() 1093 s390x_kmf(in, len, out, cctx->fc, &cctx->kmf.param); in s390x_aes_cfb_cipher() 1143 s390x_kmf(in, len, out, cctx->fc, &cctx->kmf.param); in s390x_aes_cfb8_cipher() 3362 if (cctx->ccm.key != &cctx->ks) in aes_ccm_ctrl() 3389 CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L, in aes_ccm_init_key() 3401 CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L, in aes_ccm_init_key() [all …]
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/ |
H A D | zstd_compress.c | 72 memset(cctx, 0, sizeof(*cctx)); in ZSTD_initCCtx() 114 return cctx; in ZSTD_initStaticCCtx() 122 ZSTD_free(cctx->localDict.dictBuffer, cctx->customMem); in ZSTD_clearAllDicts() 124 memset(&cctx->localDict, 0, sizeof(cctx->localDict)); in ZSTD_clearAllDicts() 125 memset(&cctx->prefixDict, 0, sizeof(cctx->prefixDict)); in ZSTD_clearAllDicts() 142 ZSTDMT_freeCCtx(cctx->mtctx); cctx->mtctx = NULL; in ZSTD_freeCCtxContent() 144 ZSTD_cwksp_free(&cctx->workspace, cctx->customMem); in ZSTD_freeCCtxContent() 156 ZSTD_free(cctx, cctx->customMem); in ZSTD_freeCCtx() 168 (void)cctx; in ZSTD_sizeof_mtctx() 178 return (cctx->workspace.workspace == cctx ? 0 : sizeof(*cctx)) in ZSTD_sizeof_CCtx() [all …]
|
/freebsd/sys/contrib/zstd/lib/compress/ |
H A D | zstd_compress.c | 100 ZSTD_memset(cctx, 0, sizeof(*cctx)); in ZSTD_initCCtx() 142 return cctx; in ZSTD_initStaticCCtx() 170 ZSTDMT_freeCCtx(cctx->mtctx); cctx->mtctx = NULL; in ZSTD_freeCCtxContent() 172 ZSTD_cwksp_free(&cctx->workspace, cctx->customMem); in ZSTD_freeCCtxContent() 184 ZSTD_customFree(cctx, cctx->customMem); in ZSTD_freeCCtx() 196 (void)cctx; in ZSTD_sizeof_mtctx() 206 return (cctx->workspace.workspace == cctx ? 0 : sizeof(*cctx)) in ZSTD_sizeof_CCtx() 4642 trace.cctx = cctx; in ZSTD_CCtx_trace() 5557 if (cctx->cdict && !cctx->localDict.cdict) { in ZSTD_CCtx_init_compressStream2() 5601 cctx->dictID = cctx->cdict ? cctx->cdict->dictID : 0; in ZSTD_CCtx_init_compressStream2() [all …]
|
/freebsd/crypto/openssl/crypto/cmac/ |
H A D | cmac.c | 25 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() 140 if (EVP_CIPHER_CTX_get0_cipher(ctx->cctx) == NULL) in CMAC_Init() 194 if (EVP_Cipher(ctx->cctx, ctx->tbl, data, bl) <= 0) in CMAC_Update() [all …]
|
/freebsd/crypto/heimdal/lib/gssapi/ |
H A D | test_context.c | 161 cctx, in loop() 506 gss_ctx_id_t cctx, sctx; in main() local 520 cctx = sctx = GSS_C_NO_CONTEXT; in main() 660 &cctx, in main() 721 cctx, in main() 841 wrapunwrap(cctx, sctx, 0, actual_mech); in main() 842 wrapunwrap(cctx, sctx, 1, actual_mech); in main() 884 getverifymic(cctx, sctx, actual_mech); in main() 885 getverifymic(cctx, sctx, actual_mech); in main() 886 getverifymic(sctx, cctx, actual_mech); in main() [all …]
|
/freebsd/crypto/openssl/test/ |
H A D | dtlstest.c | 73 SSL_CTX *sctx = NULL, *cctx = NULL; in test_dtls_unprocessed() local 92 || !TEST_true(SSL_CTX_set_cipher_list(cctx, in test_dtls_unprocessed() 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() 474 SSL_CTX *sctx = NULL, *cctx = NULL; in test_swap_records() local [all …]
|
H A D | sslapitest.c | 422 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() 834 SSL_CTX_free(cctx); in test_no_ems() 944 SSL_CTX_free(cctx); in test_ccs_change_cipher() 1052 SSL_CTX_free(cctx); in execute_test_large_message() 1284 SSL_CTX_free(cctx); in execute_test_ktls() 1415 SSL_CTX_free(cctx); in execute_test_ktls_sendfile() 1680 SSL_CTX_free(cctx); in test_large_app_data() [all …]
|
H A D | fatalerrtest.c | 21 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/usr.bin/mkuzip/ |
H A D | mkuz_zstd.c | 49 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/sys/dev/bnxt/bnxt_re/ |
H A D | qplib_res.h | 72 #define BNXT_RE_PPP_ENABLED(cctx) ((cctx)->modes.db_push_mode ==\ argument 124 cctx->chip_num == CHIP_NUM_57504 || in _is_chip_gen_p5() 125 cctx->chip_num == CHIP_NUM_57502); in _is_chip_gen_p5() 130 return (_is_chip_gen_p5(cctx) || _is_chip_p7(cctx)); in _is_chip_gen_p5_p7() 151 return cctx->modes.dbr_pacing; in bnxt_qplib_dbr_pacing_en() 156 return cctx->modes.dbr_pacing_ext; in bnxt_qplib_dbr_pacing_ext_en() 161 return cctx->modes.dbr_primary_pf; in bnxt_qplib_dbr_pacing_is_primary_pf() 167 cctx->modes.dbr_primary_pf = val; in bnxt_qplib_dbr_pacing_set_primary_pf() 419 struct bnxt_qplib_chip_ctx *cctx; member 760 if (_is_chip_gen_p5_p7(cctx)) in bnxt_qplib_ring_nq_db() [all …]
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/ |
H A D | zstd.h | 197 ZSTDLIB_API size_t ZSTD_freeCCtx(ZSTD_CCtx* cctx); 207 ZSTDLIB_API size_t ZSTD_compressCCtx(ZSTD_CCtx* cctx, 496 ZSTDLIB_API size_t ZSTD_compress2( ZSTD_CCtx* cctx, 682 ZSTDLIB_API size_t ZSTD_compressStream2( ZSTD_CCtx* cctx, 839 ZSTDLIB_API size_t ZSTD_compress_usingCDict(ZSTD_CCtx* cctx, 955 ZSTDLIB_API size_t ZSTD_CCtx_refPrefix(ZSTD_CCtx* cctx, 1010 ZSTDLIB_API size_t ZSTD_sizeof_CCtx(const ZSTD_CCtx* cctx); 1434 ZSTDLIB_API size_t ZSTD_compress_advanced(ZSTD_CCtx* cctx, 1589 ZSTD_CCtx* cctx, const ZSTD_CCtx_params* params); 1598 ZSTD_CCtx* cctx, [all …]
|
/freebsd/crypto/openssl/demos/bio/ |
H A D | client-conf.c | 21 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() 112 SSL_CONF_CTX_free(cctx); in main()
|
H A D | server-conf.c | 30 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 D | client-arg.c | 20 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() 104 SSL_CONF_CTX_free(cctx); in main()
|
H A D | server-arg.c | 28 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()
|
/freebsd/sys/contrib/zstd/lib/ |
H A D | zstd.h | 214 ZSTDLIB_API size_t ZSTD_compressCCtx(ZSTD_CCtx* cctx, 522 ZSTDLIB_API size_t ZSTD_compress2( ZSTD_CCtx* cctx, 713 ZSTDLIB_API size_t ZSTD_compressStream2( ZSTD_CCtx* cctx, 871 ZSTDLIB_API size_t ZSTD_compress_usingCDict(ZSTD_CCtx* cctx, 994 ZSTDLIB_API size_t ZSTD_CCtx_refPrefix(ZSTD_CCtx* cctx, 1056 ZSTDLIB_API size_t ZSTD_sizeof_CCtx(const ZSTD_CCtx* cctx); 1678 size_t ZSTD_compress_advanced(ZSTD_CCtx* cctx, 1689 size_t ZSTD_compress_usingCDict_advanced(ZSTD_CCtx* cctx, 2022 ZSTD_CCtx* cctx, const ZSTD_CCtx_params* params); 2031 ZSTD_CCtx* cctx, [all …]
|
/freebsd/sys/contrib/zstd/examples/ |
H A D | multiple_streaming_compression.c | 28 ZSTD_CCtx* cctx; member 38 ress.cctx = ZSTD_createCCtx(); in createResources_orDie() 39 CHECK(ress.cctx != NULL, "ZSTD_createCCtx() failed!"); in createResources_orDie() 45 CHECK_ZSTD( ZSTD_CCtx_setParameter(ress.cctx, ZSTD_c_compressionLevel, cLevel) ); in createResources_orDie() 46 CHECK_ZSTD( ZSTD_CCtx_setParameter(ress.cctx, ZSTD_c_checksumFlag, 1) ); in createResources_orDie() 52 ZSTD_freeCCtx(ress.cctx); in freeResources() 67 CHECK_ZSTD( ZSTD_CCtx_reset(ress.cctx, ZSTD_reset_session_only) ); in compressFile_orDie() 82 size_t const remaining = ZSTD_compressStream2(ress.cctx, &output, &input, mode); in compressFile_orDie()
|
H A D | streaming_compression.c | 37 ZSTD_CCtx* const cctx = ZSTD_createCCtx(); in compressFile_orDie() local 38 CHECK(cctx != NULL, "ZSTD_createCCtx() failed!"); in compressFile_orDie() 43 CHECK_ZSTD( ZSTD_CCtx_setParameter(cctx, ZSTD_c_compressionLevel, cLevel) ); in compressFile_orDie() 44 CHECK_ZSTD( ZSTD_CCtx_setParameter(cctx, ZSTD_c_checksumFlag, 1) ); in compressFile_orDie() 45 ZSTD_CCtx_setParameter(cctx, ZSTD_c_nbWorkers, nbThreads); in compressFile_orDie() 72 size_t const remaining = ZSTD_compressStream2(cctx, &output , &input, mode); in compressFile_orDie() 89 ZSTD_freeCCtx(cctx); in compressFile_orDie()
|
H A D | streaming_memory_usage.c | 84 ZSTD_CCtx* const cctx = ZSTD_createCCtx(); in main() local 85 CHECK(cctx != NULL, "ZSTD_createCCtx() failed!"); in main() 86 CHECK_ZSTD( ZSTD_CCtx_setParametersUsingCCtxParams(cctx, cctxParams) ); in main() 91 CHECK_ZSTD( ZSTD_compressStream(cctx, &outBuff, &inBuff) ); in main() 92 size_t const remaining = ZSTD_endStream(cctx, &outBuff); in main() 116 size_t const cstreamSize = ZSTD_sizeof_CStream(cctx); in main() 132 ZSTD_freeCCtx(cctx); in main()
|
H A D | streaming_compression_thread_pool.c | 48 ZSTD_CCtx* const cctx = ZSTD_createCCtx(); in compressFile_orDie() local 49 CHECK(cctx != NULL, "ZSTD_createCCtx() failed!"); in compressFile_orDie() 52 size_t r = ZSTD_CCtx_refThreadPool(cctx, args->pool); in compressFile_orDie() 59 CHECK_ZSTD( ZSTD_CCtx_setParameter(cctx, ZSTD_c_compressionLevel, args->cLevel) ); in compressFile_orDie() 60 CHECK_ZSTD( ZSTD_CCtx_setParameter(cctx, ZSTD_c_checksumFlag, 1) ); in compressFile_orDie() 61 ZSTD_CCtx_setParameter(cctx, ZSTD_c_nbWorkers, nbThreads); in compressFile_orDie() 88 size_t const remaining = ZSTD_compressStream2(cctx, &output , &input, mode); in compressFile_orDie() 107 ZSTD_freeCCtx(cctx); in compressFile_orDie()
|
/freebsd/crypto/openssh/ |
H A D | mux.c | 343 cctx = xcalloc(1, sizeof(*cctx)); in mux_master_process_new_session() 363 free(cctx); in mux_master_process_new_session() 376 cctx->env = xreallocarray(cctx->env, env_len + 2, in mux_master_process_new_session() 389 cctx->want_tty, cctx->want_x_fwd, cctx->want_agent_fwd, in mux_master_process_new_session() 390 cctx->want_subsys, cctx->term, cmd, env_len); in mux_master_process_new_session() 410 free(cctx); in mux_master_process_new_session() 436 free(cctx); in mux_master_process_new_session() 1046 cctx = xcalloc(1, sizeof(*cctx)); in mux_master_process_stdio_fwd() 1099 free(cctx); in mux_stdio_confirm() 1408 cctx->term, &cctx->tio, c->rfd, cctx->cmd, cctx->env); in mux_session_confirm() [all …]
|
/freebsd/sys/contrib/zstd/lib/deprecated/ |
H A D | zbuff.h | 73 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…
|