Home
last modified time | relevance | path

Searched refs:dctx (Results 1 – 25 of 59) sorted by relevance

123

/freebsd-12.1/crypto/openssl/crypto/dh/
H A Ddh_pmeth.c51 DH_PKEY_CTX *dctx; in pkey_dh_init() local
53 if ((dctx = OPENSSL_zalloc(sizeof(*dctx))) == NULL) { in pkey_dh_init()
59 dctx->generator = 2; in pkey_dh_init()
62 ctx->data = dctx; in pkey_dh_init()
72 if (dctx != NULL) { in pkey_dh_cleanup()
86 dctx = dst->data; in pkey_dh_copy()
92 dctx->md = sctx->md; in pkey_dh_copy()
128 dctx->pad = p1; in pkey_dh_ctrl()
438 if (dctx->pad) in pkey_dh_derive()
452 if (!dctx->kdf_outlen || !dctx->kdf_oid) in pkey_dh_derive()
[all …]
/freebsd-12.1/crypto/openssl/crypto/ec/
H A Dec_pmeth.c43 EC_PKEY_CTX *dctx; in pkey_ec_init() local
45 if ((dctx = OPENSSL_zalloc(sizeof(*dctx))) == NULL) { in pkey_ec_init()
52 ctx->data = dctx; in pkey_ec_init()
62 dctx = dst->data; in pkey_ec_copy()
68 dctx->md = sctx->md; in pkey_ec_copy()
91 if (dctx != NULL) { in pkey_ec_cleanup()
123 type = (dctx->md != NULL) ? EVP_MD_type(dctx->md) : NID_sha1; in pkey_ec_sign()
141 if (dctx->md) in pkey_ec_verify()
164 eckey = dctx->co_key ? dctx->co_key : ctx->pkey->pkey.ec; in pkey_ec_derive()
213 dctx->kdf_ukm, dctx->kdf_ukmlen, dctx->kdf_md)) in pkey_ec_kdf_derive()
[all …]
/freebsd-12.1/sys/contrib/zstd/lib/decompress/
H A Dzstd_decompress.c167 + dctx->inBuffSize + dctx->outBuffSize; in ZSTD_sizeof_DCtx()
207 dctx->inBuff = (char*)(dctx+1); in ZSTD_initStaticDCtx()
497 if (dctx->fParams.dictID && (dctx->dictID != dctx->fParams.dictID)) in ZSTD_decodeFrameHeader()
2161 dctx->dictEnd = dctx->previousDstEnd; in ZSTD_refDictContent()
2253 dctx->litEntropy = dctx->fseEntropy = 1; in ZSTD_decompress_insertDictionary()
2275 dctx->LLTptr = dctx->entropy.LLTable; in ZSTD_decompressBegin()
2276 dctx->MLTptr = dctx->entropy.MLTable; in ZSTD_decompressBegin()
2277 dctx->OFTptr = dctx->entropy.OFTable; in ZSTD_decompressBegin()
2278 dctx->HUFptr = dctx->entropy.hufTable; in ZSTD_decompressBegin()
2578 dctx->ddict = dctx->ddictLocal; in ZSTD_DCtx_loadDictionary_advanced()
[all …]
/freebsd-12.1/crypto/openssl/crypto/dsa/
H A Ddsa_pmeth.c34 DSA_PKEY_CTX *dctx = OPENSSL_malloc(sizeof(*dctx)); in pkey_dsa_init() local
36 if (dctx == NULL) in pkey_dsa_init()
38 dctx->nbits = 2048; in pkey_dsa_init()
39 dctx->qbits = 224; in pkey_dsa_init()
40 dctx->pmd = NULL; in pkey_dsa_init()
41 dctx->md = NULL; in pkey_dsa_init()
43 ctx->data = dctx; in pkey_dsa_init()
57 dctx = dst->data; in pkey_dsa_copy()
80 if (dctx->md != NULL && tbslen != (size_t)EVP_MD_size(dctx->md)) in pkey_dsa_sign()
99 if (dctx->md != NULL && tbslen != (size_t)EVP_MD_size(dctx->md)) in pkey_dsa_verify()
[all …]
/freebsd-12.1/sys/contrib/zstd/lib/legacy/
H A Dzstd_v07.c2969 dctx->litEntropy = dctx->fseEntropy = 0; in ZSTDv07_decompressBegin()
3000 dctx->customMem.customFree(dctx->customMem.opaque, dctx); in ZSTDv07_freeDCtx()
3237 …if (dctx->fParams.dictID && (dctx->dictID != dctx->fParams.dictID)) return ERROR(dictionary_wrong); in ZSTDv07_decodeFrameHeader()
3321 dctx->litPtr = dctx->litBuffer; in ZSTDv07_decodeLiteralsBlock()
3344 dctx->litPtr = dctx->litBuffer; in ZSTDv07_decodeLiteralsBlock()
3369 dctx->litPtr = dctx->litBuffer; in ZSTDv07_decodeLiteralsBlock()
3398 dctx->litPtr = dctx->litBuffer; in ZSTDv07_decodeLiteralsBlock()
3726 dctx->dictEnd = dctx->previousDstEnd; in ZSTDv07_checkContinuity()
3977 result = ZSTDv07_decodeFrameHeader(dctx, dctx->headerBuffer, dctx->headerSize); in ZSTDv07_decompressContinue()
4049 dctx->dictEnd = dctx->previousDstEnd; in ZSTDv07_refDictContent()
[all …]
H A Dzstd_legacy.h263 if (dctx==NULL) return ERROR(memory_allocation); in ZSTD_initLegacyStream()
264 ZBUFFv04_decompressInit(dctx); in ZSTD_initLegacyStream()
265 ZBUFFv04_decompressWithDictionary(dctx, dict, dictSize); in ZSTD_initLegacyStream()
266 *legacyContext = dctx; in ZSTD_initLegacyStream()
274 if (dctx==NULL) return ERROR(memory_allocation); in ZSTD_initLegacyStream()
275 ZBUFFv05_decompressInitDictionary(dctx, dict, dictSize); in ZSTD_initLegacyStream()
276 *legacyContext = dctx; in ZSTD_initLegacyStream()
284 if (dctx==NULL) return ERROR(memory_allocation); in ZSTD_initLegacyStream()
286 *legacyContext = dctx; in ZSTD_initLegacyStream()
294 if (dctx==NULL) return ERROR(memory_allocation); in ZSTD_initLegacyStream()
[all …]
H A Dzstd_v04.h57 size_t ZSTDv04_freeDCtx(ZSTDv04_Dctx* dctx);
59 size_t ZSTDv04_decompressDCtx(ZSTDv04_Dctx* dctx,
67 size_t ZSTDv04_resetDCtx(ZSTDv04_Dctx* dctx);
69 size_t ZSTDv04_nextSrcSizeToDecompress(ZSTDv04_Dctx* dctx);
70 size_t ZSTDv04_decompressContinue(ZSTDv04_Dctx* dctx, void* dst, size_t maxDstSize, const void* src…
85 size_t ZBUFFv04_freeDCtx(ZBUFFv04_DCtx* dctx);
87 size_t ZBUFFv04_decompressInit(ZBUFFv04_DCtx* dctx);
88 size_t ZBUFFv04_decompressWithDictionary(ZBUFFv04_DCtx* dctx, const void* dict, size_t dictSize);
90 size_t ZBUFFv04_decompressContinue(ZBUFFv04_DCtx* dctx, void* dst, size_t* maxDstSizePtr, const voi…
H A Dzstd_v06.h69 ZSTDLIBv06_API size_t ZSTDv06_freeDCtx(ZSTDv06_DCtx* dctx); /*!< @return : errorCode */
83 ZSTDLIBv06_API size_t ZSTDv06_decompress_usingDict(ZSTDv06_DCtx* dctx,
96 ZSTDLIBv06_API size_t ZSTDv06_decompressBegin_usingDict(ZSTDv06_DCtx* dctx, const void* dict, size_…
97 ZSTDLIBv06_API void ZSTDv06_copyDCtx(ZSTDv06_DCtx* dctx, const ZSTDv06_DCtx* preparedDCtx);
99 ZSTDLIBv06_API size_t ZSTDv06_nextSrcSizeToDecompress(ZSTDv06_DCtx* dctx);
100 ZSTDLIBv06_API size_t ZSTDv06_decompressContinue(ZSTDv06_DCtx* dctx, void* dst, size_t dstCapacity,…
110 ZSTDLIBv06_API size_t ZBUFFv06_freeDCtx(ZBUFFv06_DCtx* dctx);
112 ZSTDLIBv06_API size_t ZBUFFv06_decompressInit(ZBUFFv06_DCtx* dctx);
113 ZSTDLIBv06_API size_t ZBUFFv06_decompressInitDictionary(ZBUFFv06_DCtx* dctx, const void* dict, size…
115 ZSTDLIBv06_API size_t ZBUFFv06_decompressContinue(ZBUFFv06_DCtx* dctx,
H A Dzstd_v06.c2846 return dctx; in ZSTDv06_createDCtx()
2851 free(dctx); in ZSTDv06_freeDCtx()
3096 dctx->litPtr = dctx->litBuffer; in ZSTDv06_decodeLiteralsBlock()
3118 dctx->litPtr = dctx->litBuffer; in ZSTDv06_decodeLiteralsBlock()
3143 dctx->litPtr = dctx->litBuffer; in ZSTDv06_decodeLiteralsBlock()
3172 dctx->litPtr = dctx->litBuffer; in ZSTDv06_decodeLiteralsBlock()
3515 dctx->dictEnd = dctx->previousDstEnd; in ZSTDv06_checkContinuity()
3516 …dctx->vBase = (const char*)dst - ((const char*)(dctx->previousDstEnd) - (const char*)(dctx->base)); in ZSTDv06_checkContinuity()
3721 result = ZSTDv06_decodeFrameHeader(dctx, dctx->headerBuffer, dctx->headerSize); in ZSTDv06_decompressContinue()
3773 dctx->dictEnd = dctx->previousDstEnd; in ZSTDv06_refDictContent()
[all …]
H A Dzstd_v05.c2681 return dctx; in ZSTDv05_createDCtx()
2686 free(dctx); in ZSTDv05_freeDCtx()
2901 dctx->litPtr = dctx->litBuffer; in ZSTDv05_decodeLiteralsBlock()
2925 dctx->litPtr = dctx->litBuffer; in ZSTDv05_decodeLiteralsBlock()
2951 dctx->litPtr = dctx->litBuffer; in ZSTDv05_decodeLiteralsBlock()
2981 dctx->litPtr = dctx->litBuffer; in ZSTDv05_decodeLiteralsBlock()
3364 dctx->dictEnd = dctx->previousDstEnd; in ZSTDv05_checkContinuity()
3365 …dctx->vBase = (const char*)dst - ((const char*)(dctx->previousDstEnd) - (const char*)(dctx->base)); in ZSTDv05_checkContinuity()
3566 …{ size_t const result = ZSTDv05_decodeFrameHeader_Part2(dctx, dctx->headerBuffer, dctx->headerSi… in ZSTDv05_decompressContinue()
3623 dctx->dictEnd = dctx->previousDstEnd; in ZSTDv05_refDictContent()
[all …]
H A Dzstd_v05.h58 size_t ZSTDv05_freeDCtx(ZSTDv05_DCtx* dctx); /*!< @return : errorCode */
72 size_t ZSTDv05_decompress_usingDict(ZSTDv05_DCtx* dctx,
88 size_t ZSTDv05_decompressBegin_usingDict(ZSTDv05_DCtx* dctx, const void* dict, size_t dictSize);
90 size_t ZSTDv05_nextSrcSizeToDecompress(ZSTDv05_DCtx* dctx);
91 size_t ZSTDv05_decompressContinue(ZSTDv05_DCtx* dctx, void* dst, size_t dstCapacity, const void* sr…
99 size_t ZBUFFv05_freeDCtx(ZBUFFv05_DCtx* dctx);
101 size_t ZBUFFv05_decompressInit(ZBUFFv05_DCtx* dctx);
102 size_t ZBUFFv05_decompressInitDictionary(ZBUFFv05_DCtx* dctx, const void* dict, size_t dictSize);
104 size_t ZBUFFv05_decompressContinue(ZBUFFv05_DCtx* dctx,
H A Dzstd_v07.h71 ZSTDLIBv07_API size_t ZSTDv07_freeDCtx(ZSTDv07_DCtx* dctx); /*!< @return : errorCode */
85 ZSTDLIBv07_API size_t ZSTDv07_decompress_usingDict(ZSTDv07_DCtx* dctx,
104 ZSTDLIBv07_API size_t ZSTDv07_decompress_usingDDict(ZSTDv07_DCtx* dctx,
126 ZSTDLIBv07_API size_t ZBUFFv07_freeDCtx(ZBUFFv07_DCtx* dctx);
128 ZSTDLIBv07_API size_t ZBUFFv07_decompressInit(ZBUFFv07_DCtx* dctx);
129 ZSTDLIBv07_API size_t ZBUFFv07_decompressInitDictionary(ZBUFFv07_DCtx* dctx, const void* dict, size…
131 ZSTDLIBv07_API size_t ZBUFFv07_decompressContinue(ZBUFFv07_DCtx* dctx,
H A Dzstd_v04.c2581 return dctx; in ZSTD_createDCtx()
2586 free(dctx); in ZSTD_freeDCtx()
2699 dctx->litPtr = dctx->litBuffer; in ZSTD_decodeLiteralsBlock()
2701 memset(dctx->litBuffer + dctx->litSize, 0, 8); in ZSTD_decodeLiteralsBlock()
2711 dctx->litPtr = dctx->litBuffer; in ZSTD_decodeLiteralsBlock()
2713 memset(dctx->litBuffer + dctx->litSize, 0, 8); in ZSTD_decodeLiteralsBlock()
2725 dctx->litPtr = dctx->litBuffer; in ZSTD_decodeLiteralsBlock()
3076 dctx->dictEnd = dctx->previousDstEnd; in ZSTD_checkContinuity()
3077 …dctx->vBase = (const char*)dst - ((const char*)(dctx->previousDstEnd) - (const char*)(dctx->base)); in ZSTD_checkContinuity()
3634 ZSTD_DCtx dctx; in ZSTDv04_decompress()
[all …]
H A Dzstd_v03.h57 size_t ZSTDv03_freeDCtx(ZSTDv03_Dctx* dctx);
66 size_t ZSTDv03_resetDCtx(ZSTDv03_Dctx* dctx);
68 size_t ZSTDv03_nextSrcSizeToDecompress(ZSTDv03_Dctx* dctx);
69 size_t ZSTDv03_decompressContinue(ZSTDv03_Dctx* dctx, void* dst, size_t maxDstSize, const void* src…
H A Dzstd_v01.h57 size_t ZSTDv01_freeDCtx(ZSTDv01_Dctx* dctx);
66 size_t ZSTDv01_resetDCtx(ZSTDv01_Dctx* dctx);
68 size_t ZSTDv01_nextSrcSizeToDecompress(ZSTDv01_Dctx* dctx);
69 size_t ZSTDv01_decompressContinue(ZSTDv01_Dctx* dctx, void* dst, size_t maxDstSize, const void* src…
/freebsd-12.1/sys/contrib/zstd/tests/fuzz/
H A Dblock_decompress.c23 static ZSTD_DCtx *dctx = NULL; variable
40 if (!dctx) { in LLVMFuzzerTestOneInput()
41 dctx = ZSTD_createDCtx(); in LLVMFuzzerTestOneInput()
42 FUZZ_ASSERT(dctx); in LLVMFuzzerTestOneInput()
44 ZSTD_decompressBegin(dctx); in LLVMFuzzerTestOneInput()
45 ZSTD_decompressBlock(dctx, rBuf, neededBufSize, src, size); in LLVMFuzzerTestOneInput()
48 ZSTD_freeDCtx(dctx); dctx = NULL; in LLVMFuzzerTestOneInput()
H A Dsimple_decompress.c21 static ZSTD_DCtx *dctx = NULL; variable
39 if (!dctx) { in LLVMFuzzerTestOneInput()
40 dctx = ZSTD_createDCtx(); in LLVMFuzzerTestOneInput()
41 FUZZ_ASSERT(dctx); in LLVMFuzzerTestOneInput()
43 ZSTD_decompressDCtx(dctx, rBuf, neededBufSize, src, size); in LLVMFuzzerTestOneInput()
46 ZSTD_freeDCtx(dctx); dctx = NULL; in LLVMFuzzerTestOneInput()
H A Dblock_round_trip.c27 static ZSTD_DCtx *dctx = NULL; variable
49 ZSTD_decompressBegin(dctx); in roundTripTest()
50 return ZSTD_decompressBlock(dctx, result, resultCapacity, compressed, ret); in roundTripTest()
75 if (!dctx) { in LLVMFuzzerTestOneInput()
76 dctx = ZSTD_createDCtx(); in LLVMFuzzerTestOneInput()
77 FUZZ_ASSERT(dctx); in LLVMFuzzerTestOneInput()
89 ZSTD_freeDCtx(dctx); dctx = NULL; in LLVMFuzzerTestOneInput()
H A Dsimple_round_trip.c27 static ZSTD_DCtx *dctx = NULL; variable
55 return ZSTD_decompressDCtx(dctx, result, resultCapacity, compressed, cSize); in roundTripTest()
78 if (!dctx) { in LLVMFuzzerTestOneInput()
79 dctx = ZSTD_createDCtx(); in LLVMFuzzerTestOneInput()
80 FUZZ_ASSERT(dctx); in LLVMFuzzerTestOneInput()
92 ZSTD_freeDCtx(dctx); dctx = NULL; in LLVMFuzzerTestOneInput()
H A Dstream_round_trip.c25 static ZSTD_DCtx *dctx = NULL; variable
143 if (!dctx) { in LLVMFuzzerTestOneInput()
144 dctx = ZSTD_createDCtx(); in LLVMFuzzerTestOneInput()
145 FUZZ_ASSERT(dctx); in LLVMFuzzerTestOneInput()
151 ZSTD_decompressDCtx(dctx, rBuf, neededBufSize, cBuf, cSize); in LLVMFuzzerTestOneInput()
159 ZSTD_freeDCtx(dctx); dctx = NULL; in LLVMFuzzerTestOneInput()
/freebsd-12.1/crypto/openssl/crypto/sm2/
H A Dsm2_pmeth.c59 SM2_PKEY_CTX *dctx, *sctx; in pkey_sm2_copy() local
64 dctx = dst->data; in pkey_sm2_copy()
67 if (dctx->gen_group == NULL) { in pkey_sm2_copy()
74 if (dctx->id == NULL) { in pkey_sm2_copy()
81 dctx->id_len = sctx->id_len; in pkey_sm2_copy()
82 dctx->id_set = sctx->id_set; in pkey_sm2_copy()
83 dctx->md = sctx->md; in pkey_sm2_copy()
132 SM2_PKEY_CTX *dctx = ctx->data; in pkey_sm2_encrypt() local
133 const EVP_MD *md = (dctx->md == NULL) ? EVP_sm3() : dctx->md; in pkey_sm2_encrypt()
150 SM2_PKEY_CTX *dctx = ctx->data; in pkey_sm2_decrypt() local
[all …]
/freebsd-12.1/sys/contrib/zstd/lib/common/
H A Dhuf.h178 size_t HUF_decompress4X_DCtx (HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t…
179 size_t HUF_decompress4X_hufOnly(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size…
181 size_t HUF_decompress4X2_DCtx(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t…
182 size_t HUF_decompress4X2_DCtx_wksp(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, s…
183 size_t HUF_decompress4X4_DCtx(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t…
304 size_t HUF_decompress1X_DCtx (HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t…
305 size_t HUF_decompress1X_DCtx_wksp (HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, s…
306 size_t HUF_decompress1X2_DCtx(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t…
308 size_t HUF_decompress1X4_DCtx(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t…
319 size_t HUF_decompress1X2_DCtx_wksp_bmi2(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cS…
[all …]
/freebsd-12.1/sys/contrib/zstd/lib/
H A Dzstd.h166 ZSTDLIB_API size_t ZSTD_freeDCtx(ZSTD_DCtx* dctx);
193 ZSTDLIB_API size_t ZSTD_decompress_usingDict(ZSTD_DCtx* dctx,
241 ZSTDLIB_API size_t ZSTD_decompress_usingDDict(ZSTD_DCtx* dctx,
497 ZSTDLIB_API size_t ZSTD_sizeof_DCtx(const ZSTD_DCtx* dctx);
886 ZSTDLIB_API size_t ZSTD_decompressBegin(ZSTD_DCtx* dctx);
890 ZSTDLIB_API size_t ZSTD_nextSrcSizeToDecompress(ZSTD_DCtx* dctx);
896 ZSTDLIB_API ZSTD_nextInputType_e ZSTD_nextInputType(ZSTD_DCtx* dctx);
1318 ZSTDLIB_API size_t ZSTD_DCtx_setFormat(ZSTD_DCtx* dctx, ZSTD_format_e format);
1328 ZSTDLIB_API size_t ZSTD_decompress_generic(ZSTD_DCtx* dctx,
1341 ZSTD_DCtx* dctx,
[all …]
/freebsd-12.1/contrib/ntp/sntp/
H A Dmain.c62 struct dns_ctx * dctx; member
451 struct dns_ctx * dctx; in sntp_name_resolved() local
462 dctx = context; in sntp_name_resolved()
468 dctx->name); in sntp_name_resolved()
517 spkt->dctx = dctx; in sntp_name_resolved()
536 struct dns_ctx * dctx, in queue_xmt() argument
558 match->dctx->name)) in queue_xmt()
561 match->dctx->name, in queue_xmt()
562 spkt->dctx->name); in queue_xmt()
663 struct dns_ctx *dctx = xctx->spkt->dctx; in xmt() local
[all …]
/freebsd-12.1/crypto/openssl/crypto/hmac/
H A Dhmac.c194 int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx) in HMAC_CTX_copy() argument
196 if (!hmac_ctx_alloc_mds(dctx)) in HMAC_CTX_copy()
198 if (!EVP_MD_CTX_copy_ex(dctx->i_ctx, sctx->i_ctx)) in HMAC_CTX_copy()
200 if (!EVP_MD_CTX_copy_ex(dctx->o_ctx, sctx->o_ctx)) in HMAC_CTX_copy()
202 if (!EVP_MD_CTX_copy_ex(dctx->md_ctx, sctx->md_ctx)) in HMAC_CTX_copy()
204 memcpy(dctx->key, sctx->key, HMAC_MAX_MD_CBLOCK_SIZE); in HMAC_CTX_copy()
205 dctx->key_length = sctx->key_length; in HMAC_CTX_copy()
206 dctx->md = sctx->md; in HMAC_CTX_copy()
209 hmac_ctx_cleanup(dctx); in HMAC_CTX_copy()

123