| /freebsd-12.1/crypto/openssl/ssl/ |
| H A D | ssl_conf.c | 175 for (i = 0, tbl = cctx->tbl; i < cctx->ntbl; i++, tbl++) { in ssl_set_option_list() 186 if (cctx->ssl) in cmd_SignatureAlgorithms() 198 if (cctx->ssl) in cmd_ClientSignatureAlgorithms() 352 return min_max_proto(cctx, value, cctx->min_version); in cmd_MinProtocol() 364 return min_max_proto(cctx, value, cctx->max_version); in cmd_MaxProtocol() 534 if (cctx->ctx || cctx->ssl) { in cmd_DHParameters() 725 strncmp(*pcmd, cctx->prefix, cctx->prefixlen)) in ssl_conf_cmd_skip_prefix() 728 strncasecmp(*pcmd, cctx->prefix, cctx->prefixlen)) in ssl_conf_cmd_skip_prefix() 906 SSL_set0_CA_list(cctx->ssl, cctx->canames); in SSL_CONF_CTX_finish() 908 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 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()
|
| /freebsd-12.1/crypto/openssl/crypto/evp/ |
| H A D | e_aria.c | 515 CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L, in aria_ccm_init_key() 521 cctx->str = NULL; in aria_ccm_init_key() 526 cctx->iv_set = 1; in aria_ccm_init_key() 539 cctx->L = 8; in aria_ccm_ctrl() 540 cctx->M = 12; in aria_ccm_ctrl() 570 return cctx->M; in aria_ccm_ctrl() 590 cctx->L = arg; in aria_ccm_ctrl() 601 cctx->M = arg; in aria_ccm_ctrl() 619 if (cctx->ccm.key != &cctx->ks) in aria_ccm_ctrl() 685 if (!cctx->key_set) in aria_ccm_cipher() [all …]
|
| H A D | e_aes.c | 447 CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L, in aesni_ccm_init_key() 885 CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L, in aes_t4_ccm_init_key() 1206 s390x_km(in, len, out, cctx->fc, &cctx->km.param); in s390x_aes_ecb_cipher() 1255 s390x_kmo(in, len, out, cctx->fc, &cctx->kmo.param); in s390x_aes_ofb_cipher() 1262 s390x_km(cctx->kmo.param.cv, 16, cctx->kmo.param.cv, cctx->fc, in s390x_aes_ofb_cipher() 1329 s390x_kmf(in, len, out, cctx->fc, &cctx->kmf.param); in s390x_aes_cfb_cipher() 1382 s390x_kmf(in, len, out, cctx->fc, &cctx->kmf.param); in s390x_aes_cfb8_cipher() 3593 if (cctx->ccm.key != &cctx->ks) in aes_ccm_ctrl() 3619 CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L, in aes_ccm_init_key() 3630 CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L, in aes_ccm_init_key() [all …]
|
| /freebsd-12.1/sys/contrib/zstd/tests/fuzz/ |
| H A D | zstd_helpers.c | 18 FUZZ_ZASSERT(ZSTD_CCtx_setParameter(cctx, param, value)); in set() 24 set(cctx, param, value); in setRand() 64 set(cctx, ZSTD_p_windowLog, cParams.windowLog); in FUZZ_setRandomParameters() 65 set(cctx, ZSTD_p_hashLog, cParams.hashLog); in FUZZ_setRandomParameters() 66 set(cctx, ZSTD_p_chainLog, cParams.chainLog); in FUZZ_setRandomParameters() 67 set(cctx, ZSTD_p_searchLog, cParams.searchLog); in FUZZ_setRandomParameters() 68 set(cctx, ZSTD_p_minMatch, cParams.searchLength); in FUZZ_setRandomParameters() 72 setRand(cctx, ZSTD_p_contentSizeFlag, 0, 1, state); in FUZZ_setRandomParameters() 73 setRand(cctx, ZSTD_p_checksumFlag, 0, 1, state); in FUZZ_setRandomParameters() 74 setRand(cctx, ZSTD_p_dictIDFlag, 0, 1, state); in FUZZ_setRandomParameters() [all …]
|
| H A D | stream_round_trip.c | 24 ZSTD_CCtx *cctx = NULL; variable 59 ZSTD_CCtx_reset(cctx); in compress() 60 FUZZ_setRandomParameters(cctx, srcSize, &seed); in compress() 75 ZSTD_compress_generic(cctx, &out, &in, ZSTD_e_flush); in compress() 83 ZSTD_compress_generic(cctx, &out, &in, ZSTD_e_end); in compress() 87 ZSTD_CCtx_reset(cctx); in compress() 90 FUZZ_setRandomParameters(cctx, remaining, &seed); in compress() 139 if (!cctx) { in LLVMFuzzerTestOneInput() 140 cctx = ZSTD_createCCtx(); in LLVMFuzzerTestOneInput() 141 FUZZ_ASSERT(cctx); in LLVMFuzzerTestOneInput() [all …]
|
| H A D | simple_round_trip.c | 26 static ZSTD_CCtx *cctx = NULL; variable 43 ZSTD_CCtx_reset(cctx); in roundTripTest() 44 FUZZ_setRandomParameters(cctx, srcSize, &seed); in roundTripTest() 45 err = ZSTD_compress_generic(cctx, &out, &in, ZSTD_e_end); in roundTripTest() 52 cctx, compressed, compressedCapacity, src, srcSize, cLevel); in roundTripTest() 74 if (!cctx) { in LLVMFuzzerTestOneInput() 75 cctx = ZSTD_createCCtx(); in LLVMFuzzerTestOneInput() 76 FUZZ_ASSERT(cctx); in LLVMFuzzerTestOneInput() 91 ZSTD_freeCCtx(cctx); cctx = NULL; in LLVMFuzzerTestOneInput()
|
| H A D | block_round_trip.c | 26 static ZSTD_CCtx *cctx = NULL; variable 39 size_t ret = ZSTD_compressBegin_advanced(cctx, NULL, 0, params, srcSize); in roundTripTest() 42 ret = ZSTD_compressBlock(cctx, compressed, compressedCapacity, src, srcSize); in roundTripTest() 71 if (!cctx) { in LLVMFuzzerTestOneInput() 72 cctx = ZSTD_createCCtx(); in LLVMFuzzerTestOneInput() 73 FUZZ_ASSERT(cctx); in LLVMFuzzerTestOneInput() 88 ZSTD_freeCCtx(cctx); cctx = NULL; in LLVMFuzzerTestOneInput()
|
| /freebsd-12.1/sys/contrib/zstd/lib/compress/ |
| H A D | zstd_compress.c | 89 cctx->workSpace = (void*)(cctx+1); in ZSTD_initStaticCCtx() 96 cctx->blockState.nextCBlock = cctx->blockState.prevCBlock + 1; in ZSTD_initStaticCCtx() 102 return cctx; in ZSTD_initStaticCCtx() 109 ZSTD_free(cctx->workSpace, cctx->customMem); cctx->workSpace = NULL; in ZSTD_freeCCtx() 110 ZSTD_freeCDict(cctx->cdictLocal); cctx->cdictLocal = NULL; in ZSTD_freeCCtx() 112 ZSTDMT_freeCCtx(cctx->mtctx); cctx->mtctx = NULL; in ZSTD_freeCCtx() 114 ZSTD_free(cctx, cctx->customMem); in ZSTD_freeCCtx() 124 (void) cctx; in ZSTD_sizeof_mtctx() 133 return sizeof(*cctx) + cctx->workSpaceSize in ZSTD_sizeof_CCtx() 523 cctx->cdict = cctx->cdictLocal; in ZSTD_CCtx_loadDictionary_advanced() [all …]
|
| H A D | zstdmt_compress.c | 323 ZSTD_CCtx* cctx[1]; /* variable size */ member 352 cctxPool->cctx[0] = ZSTD_createCCtx_advanced(cMem); in ZSTDMT_createCCtxPool() 382 { ZSTD_CCtx* const cctx = cctxPool->cctx[cctxPool->availCCtx]; in ZSTDMT_getCCtx() local 384 return cctx; in ZSTDMT_getCCtx() 396 pool->cctx[pool->availCCtx++] = cctx; in ZSTDMT_releaseCCtx() 400 ZSTD_freeCCtx(cctx); in ZSTDMT_releaseCCtx() 601 ZSTD_CCtx* const cctx = ZSTDMT_getCCtx(job->cctxPool); in ZSTDMT_compressionJob() local 613 if (cctx==NULL) { in ZSTDMT_compressionJob() 654 ZSTD_invalidateRepCodes(cctx); in ZSTDMT_compressionJob() 704 ZSTDMT_releaseCCtx(job->cctxPool, cctx); in ZSTDMT_compressionJob() [all …]
|
| /freebsd-12.1/crypto/openssl/crypto/cmac/ |
| H A D | cmac.c | 19 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() 124 if (!EVP_CIPHER_CTX_cipher(ctx->cctx)) in CMAC_Init() 154 bl = EVP_CIPHER_CTX_block_size(ctx->cctx); in CMAC_Update() [all …]
|
| /freebsd-12.1/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-12.1/sys/contrib/zstd/tests/ |
| H A D | fuzzer.c | 195 ZSTD_freeCCtx(cctx); in FUZ_mallocTests() 320 ZSTD_freeCCtx(cctx); in basicUnitTests() 376 ZSTD_freeCCtx(cctx); in basicUnitTests() 393 ZSTD_freeCCtx(cctx); in basicUnitTests() 408 ZSTD_freeCCtx(cctx); in basicUnitTests() 940 ZSTD_freeCCtx(cctx); in basicUnitTests() 993 ZSTD_freeCCtx(cctx); in basicUnitTests() 1024 ZSTD_freeCCtx(cctx); in basicUnitTests() 1100 ZSTD_freeCCtx(cctx); in basicUnitTests() 1145 ZSTD_freeCCtx(cctx); in basicUnitTests() [all …]
|
| H A D | roundTripCrash.c | 85 ZSTD_CCtx* const cctx = ZSTD_createCCtx(); in cctxParamRoundTripTest() local 102 CHECK_Z( ZSTD_CCtx_setParametersUsingCCtxParams(cctx, cctxParams) ); in cctxParamRoundTripTest() 104 CHECK_Z (ZSTD_compress_generic(cctx, &outBuffer, &inBuffer, ZSTD_e_end) ); in cctxParamRoundTripTest() 107 ZSTD_freeCCtx(cctx); in cctxParamRoundTripTest()
|
| /freebsd-12.1/sys/contrib/zstd/lib/ |
| H A D | zstd.h | 149 ZSTDLIB_API size_t ZSTD_freeCCtx(ZSTD_CCtx* cctx); 221 ZSTDLIB_API size_t ZSTD_compress_usingCDict(ZSTD_CCtx* cctx, 496 ZSTDLIB_API size_t ZSTD_sizeof_CCtx(const ZSTD_CCtx* cctx); 644 ZSTDLIB_API size_t ZSTD_compress_advanced (ZSTD_CCtx* cctx, 652 ZSTDLIB_API size_t ZSTD_compress_usingCDict_advanced(ZSTD_CCtx* cctx, 736 ZSTD_frameProgression ZSTD_getFrameProgression(const ZSTD_CCtx* cctx); 1139 ZSTDLIB_API void ZSTD_CCtx_reset(ZSTD_CCtx* cctx); 1170 ZSTDLIB_API size_t ZSTD_compress_generic (ZSTD_CCtx* cctx, 1184 ZSTD_CCtx* cctx, 1246 ZSTD_CCtx* cctx, const ZSTD_CCtx_params* params); [all …]
|
| /freebsd-12.1/crypto/openssh/ |
| H A D | mux.c | 357 cctx = xcalloc(1, sizeof(*cctx)); in process_mux_new_session() 377 free(cctx); in process_mux_new_session() 390 cctx->env = xreallocarray(cctx->env, env_len + 2, in process_mux_new_session() 403 cctx->want_tty, cctx->want_x_fwd, cctx->want_agent_fwd, in process_mux_new_session() 404 cctx->want_subsys, cctx->term, cmd, env_len); in process_mux_new_session() 425 free(cctx); in process_mux_new_session() 451 free(cctx); in process_mux_new_session() 1058 cctx = xcalloc(1, sizeof(*cctx)); in process_mux_stdio_fwd() 1111 free(cctx); in mux_stdio_confirm() 1425 cctx->term, &cctx->tio, c->rfd, cctx->cmd, cctx->env); in mux_session_confirm() [all …]
|
| H A D | channels.c | 4111 for (; cctx->ai; cctx->ai = cctx->ai->ai_next) { 4121 if (getnameinfo(cctx->ai->ai_addr, cctx->ai->ai_addrlen, 4131 if ((sock = socket(cctx->ai->ai_family, cctx->ai->ai_socktype, 4155 cctx->ai = cctx->ai->ai_next; 4164 free(cctx->host); 4165 if (cctx->aitop) { 4171 memset(cctx, 0, sizeof(*cctx)); 4232 cctx->ai = cctx->aitop; 4252 memset(&cctx, 0, sizeof(cctx)); 4365 memset(&cctx, 0, sizeof(cctx)); [all …]
|
| /freebsd-12.1/sys/contrib/zstd/lib/deprecated/ |
| H A D | zbuff.h | 72 ZBUFF_DEPRECATED("use ZSTD_freeCStream") size_t ZBUFF_freeCCtx(ZBUFF_CCtx* cctx); 74 ZBUFF_DEPRECATED("use ZSTD_initCStream") size_t ZBUFF_compressInit(ZBUFF_CCtx* cctx, int … 75 …D_initCStream_usingDict") size_t ZBUFF_compressInitDictionary(ZBUFF_CCtx* cctx, const void* dict, … 77 ZBUFF_DEPRECATED("use ZSTD_compressStream") size_t ZBUFF_compressContinue(ZBUFF_CCtx* cctx, void* d… 78 ZBUFF_DEPRECATED("use ZSTD_flushStream") size_t ZBUFF_compressFlush(ZBUFF_CCtx* cctx, void* dst,… 79 ZBUFF_DEPRECATED("use ZSTD_endStream") size_t ZBUFF_compressEnd(ZBUFF_CCtx* cctx, void* dst, s…
|
| /freebsd-12.1/crypto/openssl/doc/man3/ |
| H A D | SSL_CONF_CTX_set_ssl_ctx.pod | 11 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
|
| H A D | SSL_CONF_CTX_set_flags.pod | 11 unsigned int SSL_CONF_CTX_set_flags(SSL_CONF_CTX *cctx, unsigned int flags); 12 unsigned int SSL_CONF_CTX_clear_flags(SSL_CONF_CTX *cctx, unsigned int flags); 16 The function SSL_CONF_CTX_set_flags() sets B<flags> in the context B<cctx>. 18 The function SSL_CONF_CTX_clear_flags() clears B<flags> in the context B<cctx>.
|
| H A D | SSL_CONF_CTX_new.pod | 12 void SSL_CONF_CTX_free(SSL_CONF_CTX *cctx); 19 The function SSL_CONF_CTX_free() frees up the context B<cctx>. 20 If B<cctx> is NULL nothing is done.
|
| /freebsd-12.1/crypto/heimdal/kcm/ |
| H A D | connect.c | 42 heim_sipc_call cctx) in kcm_service() argument 60 (*complete)(cctx, EINVAL, NULL); in kcm_service() 71 (*complete)(cctx, EINVAL, NULL); in kcm_service() 82 (*complete)(cctx, ret, &rep); in kcm_service()
|
| /freebsd-12.1/crypto/openssl/crypto/pem/ |
| H A D | pvkfmt.c | 684 EVP_CIPHER_CTX *cctx = EVP_CIPHER_CTX_new(); in do_PVK_body() local 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() 726 if (!EVP_DecryptUpdate(cctx, q, &enctmplen, p, inlen)) 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() 807 if (cctx == NULL) in i2b_PVK() 847 if (!EVP_DecryptUpdate(cctx, p, &enctmplen, p, pklen - 8)) in i2b_PVK() 853 EVP_CIPHER_CTX_free(cctx); in i2b_PVK() [all …]
|
| /freebsd-12.1/sys/crypto/ccp/ |
| H A D | ccp_hardware.c | 458 struct ccp_completion_ctx *cctx; in ccp_intr_handle_error() local 522 cctx->callback_fn(qp, cctx->session, cctx->callback_arg, errno); in ccp_intr_handle_error() 523 cctx->callback_fn = NULL; in ccp_intr_handle_error() 568 cctx->callback_fn(qp, cctx->session, in ccp_intr_run_completions() 569 cctx->callback_arg, 0); in ccp_intr_run_completions() 570 cctx->callback_fn = NULL; in ccp_intr_run_completions() 878 if (cctx != NULL) in ccp_passthrough() 879 memcpy(&qp->completions_ring[qp->cq_tail], cctx, sizeof(*cctx)); in ccp_passthrough() 1288 cctx); in ccp_do_hmac() 1452 sizeof(*cctx)); in ccp_do_xts() [all …]
|
| /freebsd-12.1/sys/contrib/zstd/programs/ |
| H A D | fileio.c | 416 ZSTD_CStream* cctx; member 426 ress.cctx = ZSTD_createCCtx(); in FIO_createCResources() 427 if (ress.cctx == NULL) in FIO_createCResources() 443 CHECK( ZSTD_CCtx_setParameter(ress.cctx, ZSTD_p_dictIDFlag, g_dictIDFlag) ); in FIO_createCResources() 449 CHECK( ZSTD_CCtx_setParameter(ress.cctx, ZSTD_p_ldmHashLog, g_ldmHashLog) ); in FIO_createCResources() 450 CHECK( ZSTD_CCtx_setParameter(ress.cctx, ZSTD_p_ldmMinMatch, g_ldmMinMatch) ); in FIO_createCResources() 468 CHECK( ZSTD_CCtx_setParameter(ress.cctx, ZSTD_p_nbWorkers, g_nbWorkers) ); in FIO_createCResources() 472 CHECK( ZSTD_CCtx_loadDictionary(ress.cctx, dictBuffer, dictBuffSize) ); in FIO_createCResources() 485 ZSTD_freeCStream(ress.cctx); /* never fails */ in FIO_freeCResources() 756 ZSTD_CCtx_setPledgedSrcSize(ress.cctx, fileSize); in FIO_compressZstdFrame() [all …]
|