Home
last modified time | relevance | path

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

12345

/src/crypto/openssl/crypto/dh/
H A Ddh_pmeth.c56 DH_PKEY_CTX *dctx; in pkey_dh_init() local
58 if ((dctx = OPENSSL_zalloc(sizeof(*dctx))) == NULL) in pkey_dh_init()
60 dctx->prime_len = 2048; in pkey_dh_init()
61 dctx->subprime_len = -1; in pkey_dh_init()
62 dctx->generator = 2; in pkey_dh_init()
63 dctx->kdf_type = EVP_PKEY_DH_KDF_NONE; in pkey_dh_init()
65 ctx->data = dctx; in pkey_dh_init()
66 ctx->keygen_info = dctx->gentmp; in pkey_dh_init()
74 DH_PKEY_CTX *dctx = ctx->data; in pkey_dh_cleanup() local
76 if (dctx != NULL) { in pkey_dh_cleanup()
[all …]
/src/sys/contrib/openzfs/module/zstd/lib/decompress/
H A Dzstd_decompress.c222 size_t ZSTD_sizeof_DCtx (const ZSTD_DCtx* dctx) in ZSTD_sizeof_DCtx() argument
224 if (dctx==NULL) return 0; /* support sizeof NULL */ in ZSTD_sizeof_DCtx()
225 return sizeof(*dctx) in ZSTD_sizeof_DCtx()
226 + ZSTD_sizeof_DDict(dctx->ddictLocal) in ZSTD_sizeof_DCtx()
227 + dctx->inBuffSize + dctx->outBuffSize; in ZSTD_sizeof_DCtx()
241 static void ZSTD_DCtx_resetParameters(ZSTD_DCtx* dctx) in ZSTD_DCtx_resetParameters() argument
243 assert(dctx->streamStage == zdss_init); in ZSTD_DCtx_resetParameters()
244 dctx->format = ZSTD_f_zstd1; in ZSTD_DCtx_resetParameters()
245 dctx->maxWindowSize = ZSTD_MAXWINDOWSIZE_DEFAULT; in ZSTD_DCtx_resetParameters()
246 dctx->outBufferMode = ZSTD_bm_buffered; in ZSTD_DCtx_resetParameters()
[all …]
H A Dzstd_decompress_block.c55 static size_t ZSTD_blockSizeMax(ZSTD_DCtx const* dctx) in ZSTD_blockSizeMax() argument
57 …size_t const blockSizeMax = dctx->isFrameDecompression ? dctx->fParams.blockSizeMax : ZSTD_BLOCKSI… in ZSTD_blockSizeMax()
81 static void ZSTD_allocateLiteralsBuffer(ZSTD_DCtx* dctx, void* const dst, const size_t dstCapacity,… in ZSTD_allocateLiteralsBuffer() argument
84 size_t const blockSizeMax = ZSTD_blockSizeMax(dctx); in ZSTD_allocateLiteralsBuffer()
86 assert(dctx->isFrameDecompression || streaming == not_streaming); in ZSTD_allocateLiteralsBuffer()
94 dctx->litBuffer = (BYTE*)dst + blockSizeMax + WILDCOPY_OVERLENGTH; in ZSTD_allocateLiteralsBuffer()
95 dctx->litBufferEnd = dctx->litBuffer + litSize; in ZSTD_allocateLiteralsBuffer()
96 dctx->litBufferLocation = ZSTD_in_dst; in ZSTD_allocateLiteralsBuffer()
101 dctx->litBuffer = dctx->litExtraBuffer; in ZSTD_allocateLiteralsBuffer()
102 dctx->litBufferEnd = dctx->litBuffer + litSize; in ZSTD_allocateLiteralsBuffer()
[all …]
H A Dzstd_ddict.c59 void ZSTD_copyDDictParameters(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict) in ZSTD_copyDDictParameters() argument
62 assert(dctx != NULL); in ZSTD_copyDDictParameters()
64 dctx->dictID = ddict->dictID; in ZSTD_copyDDictParameters()
65 dctx->prefixStart = ddict->dictContent; in ZSTD_copyDDictParameters()
66 dctx->virtualStart = ddict->dictContent; in ZSTD_copyDDictParameters()
67 dctx->dictEnd = (const BYTE*)ddict->dictContent + ddict->dictSize; in ZSTD_copyDDictParameters()
68 dctx->previousDstEnd = dctx->dictEnd; in ZSTD_copyDDictParameters()
70 dctx->dictContentBeginForFuzzing = dctx->prefixStart; in ZSTD_copyDDictParameters()
71 dctx->dictContentEndForFuzzing = dctx->previousDstEnd; in ZSTD_copyDDictParameters()
74 dctx->litEntropy = 1; in ZSTD_copyDDictParameters()
[all …]
/src/sys/contrib/zstd/lib/decompress/
H A Dzstd_decompress.c219 size_t ZSTD_sizeof_DCtx (const ZSTD_DCtx* dctx) in ZSTD_sizeof_DCtx() argument
221 if (dctx==NULL) return 0; /* support sizeof NULL */ in ZSTD_sizeof_DCtx()
222 return sizeof(*dctx) in ZSTD_sizeof_DCtx()
223 + ZSTD_sizeof_DDict(dctx->ddictLocal) in ZSTD_sizeof_DCtx()
224 + dctx->inBuffSize + dctx->outBuffSize; in ZSTD_sizeof_DCtx()
238 static void ZSTD_DCtx_resetParameters(ZSTD_DCtx* dctx) in ZSTD_DCtx_resetParameters() argument
240 assert(dctx->streamStage == zdss_init); in ZSTD_DCtx_resetParameters()
241 dctx->format = ZSTD_f_zstd1; in ZSTD_DCtx_resetParameters()
242 dctx->maxWindowSize = ZSTD_MAXWINDOWSIZE_DEFAULT; in ZSTD_DCtx_resetParameters()
243 dctx->outBufferMode = ZSTD_bm_buffered; in ZSTD_DCtx_resetParameters()
[all …]
H A Dzstd_decompress_block.c73 static void ZSTD_allocateLiteralsBuffer(ZSTD_DCtx* dctx, void* const dst, const size_t dstCapacity,… in ZSTD_allocateLiteralsBuffer() argument
79 dctx->litBuffer = (BYTE*)dst + ZSTD_BLOCKSIZE_MAX + WILDCOPY_OVERLENGTH; in ZSTD_allocateLiteralsBuffer()
80 dctx->litBufferEnd = dctx->litBuffer + litSize; in ZSTD_allocateLiteralsBuffer()
81 dctx->litBufferLocation = ZSTD_in_dst; in ZSTD_allocateLiteralsBuffer()
88dctx->litBuffer = (BYTE*)dst + expectedWriteSize - litSize + ZSTD_LITBUFFEREXTRASIZE - WILDCOPY_OV… in ZSTD_allocateLiteralsBuffer()
89 dctx->litBufferEnd = dctx->litBuffer + litSize - ZSTD_LITBUFFEREXTRASIZE; in ZSTD_allocateLiteralsBuffer()
93 dctx->litBuffer = (BYTE*)dst + expectedWriteSize - litSize; in ZSTD_allocateLiteralsBuffer()
94 dctx->litBufferEnd = (BYTE*)dst + expectedWriteSize; in ZSTD_allocateLiteralsBuffer()
96 dctx->litBufferLocation = ZSTD_split; in ZSTD_allocateLiteralsBuffer()
101 dctx->litBuffer = dctx->litExtraBuffer; in ZSTD_allocateLiteralsBuffer()
[all …]
H A Dzstd_ddict.c58 void ZSTD_copyDDictParameters(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict) in ZSTD_copyDDictParameters() argument
61 assert(dctx != NULL); in ZSTD_copyDDictParameters()
63 dctx->dictID = ddict->dictID; in ZSTD_copyDDictParameters()
64 dctx->prefixStart = ddict->dictContent; in ZSTD_copyDDictParameters()
65 dctx->virtualStart = ddict->dictContent; in ZSTD_copyDDictParameters()
66 dctx->dictEnd = (const BYTE*)ddict->dictContent + ddict->dictSize; in ZSTD_copyDDictParameters()
67 dctx->previousDstEnd = dctx->dictEnd; in ZSTD_copyDDictParameters()
69 dctx->dictContentBeginForFuzzing = dctx->prefixStart; in ZSTD_copyDDictParameters()
70 dctx->dictContentEndForFuzzing = dctx->previousDstEnd; in ZSTD_copyDDictParameters()
73 dctx->litEntropy = 1; in ZSTD_copyDDictParameters()
[all …]
/src/crypto/openssl/crypto/ec/
H A Dec_pmeth.c49 EC_PKEY_CTX *dctx; in pkey_ec_init() local
51 if ((dctx = OPENSSL_zalloc(sizeof(*dctx))) == NULL) in pkey_ec_init()
54 dctx->cofactor_mode = -1; in pkey_ec_init()
55 dctx->kdf_type = EVP_PKEY_ECDH_KDF_NONE; in pkey_ec_init()
56 ctx->data = dctx; in pkey_ec_init()
62 EC_PKEY_CTX *dctx, *sctx; in pkey_ec_copy() local
66 dctx = dst->data; in pkey_ec_copy()
68 dctx->gen_group = EC_GROUP_dup(sctx->gen_group); in pkey_ec_copy()
69 if (!dctx->gen_group) in pkey_ec_copy()
72 dctx->md = sctx->md; in pkey_ec_copy()
[all …]
/src/crypto/openssl/crypto/dsa/
H A Ddsa_pmeth.c40 DSA_PKEY_CTX *dctx = OPENSSL_malloc(sizeof(*dctx)); in pkey_dsa_init() local
42 if (dctx == NULL) in pkey_dsa_init()
44 dctx->nbits = 2048; in pkey_dsa_init()
45 dctx->qbits = 224; in pkey_dsa_init()
46 dctx->pmd = NULL; in pkey_dsa_init()
47 dctx->md = NULL; in pkey_dsa_init()
49 ctx->data = dctx; in pkey_dsa_init()
50 ctx->keygen_info = dctx->gentmp; in pkey_dsa_init()
58 DSA_PKEY_CTX *dctx, *sctx; in pkey_dsa_copy() local
63 dctx = dst->data; in pkey_dsa_copy()
[all …]
/src/sys/contrib/zstd/lib/legacy/
H A Dzstd_v07.c82 ZSTDLIBv07_API size_t ZSTDv07_sizeofDCtx(const ZSTDv07_DCtx* dctx);
89 ZSTDLIBv07_API size_t ZSTDv07_decompressBegin(ZSTDv07_DCtx* dctx);
90 ZSTDLIBv07_API size_t ZSTDv07_decompressBegin_usingDict(ZSTDv07_DCtx* dctx, const void* dict, size_…
91 ZSTDLIBv07_API void ZSTDv07_copyDCtx(ZSTDv07_DCtx* dctx, const ZSTDv07_DCtx* preparedDCtx);
93 ZSTDLIBv07_API size_t ZSTDv07_nextSrcSizeToDecompress(ZSTDv07_DCtx* dctx);
94 ZSTDLIBv07_API size_t ZSTDv07_decompressContinue(ZSTDv07_DCtx* dctx, void* dst, size_t dstCapacity,…
175 ZSTDLIBv07_API size_t ZSTDv07_decompressBlock(ZSTDv07_DCtx* dctx, void* dst, size_t dstCapacity, co…
176 ZSTDLIBv07_API size_t ZSTDv07_insertBlock(ZSTDv07_DCtx* dctx, const void* blockStart, size_t blockS…
1081 size_t HUFv07_decompress4X_DCtx (HUFv07_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, …
1082 size_t HUFv07_decompress4X_hufOnly(HUFv07_DTable* dctx, void* dst, size_t dstSize, const void* cSrc…
[all …]
H A Dzstd_legacy.h296 …ZBUFFv04_DCtx* dctx = (prevVersion != newVersion) ? ZBUFFv04_createDCtx() : (ZBUFFv04_DCtx*)*legac… in ZSTD_initLegacyStream() local
297 if (dctx==NULL) return ERROR(memory_allocation); in ZSTD_initLegacyStream()
298 ZBUFFv04_decompressInit(dctx); in ZSTD_initLegacyStream()
299 ZBUFFv04_decompressWithDictionary(dctx, dict, dictSize); in ZSTD_initLegacyStream()
300 *legacyContext = dctx; in ZSTD_initLegacyStream()
307 …ZBUFFv05_DCtx* dctx = (prevVersion != newVersion) ? ZBUFFv05_createDCtx() : (ZBUFFv05_DCtx*)*legac… in ZSTD_initLegacyStream() local
308 if (dctx==NULL) return ERROR(memory_allocation); in ZSTD_initLegacyStream()
309 ZBUFFv05_decompressInitDictionary(dctx, dict, dictSize); in ZSTD_initLegacyStream()
310 *legacyContext = dctx; in ZSTD_initLegacyStream()
317 …ZBUFFv06_DCtx* dctx = (prevVersion != newVersion) ? ZBUFFv06_createDCtx() : (ZBUFFv06_DCtx*)*legac… in ZSTD_initLegacyStream() local
[all …]
H A Dzstd_v04.h62 size_t ZSTDv04_freeDCtx(ZSTDv04_Dctx* dctx);
64 size_t ZSTDv04_decompressDCtx(ZSTDv04_Dctx* dctx,
72 size_t ZSTDv04_resetDCtx(ZSTDv04_Dctx* dctx);
74 size_t ZSTDv04_nextSrcSizeToDecompress(ZSTDv04_Dctx* dctx);
75 size_t ZSTDv04_decompressContinue(ZSTDv04_Dctx* dctx, void* dst, size_t maxDstSize, const void* src…
90 size_t ZBUFFv04_freeDCtx(ZBUFFv04_DCtx* dctx);
92 size_t ZBUFFv04_decompressInit(ZBUFFv04_DCtx* dctx);
93 size_t ZBUFFv04_decompressWithDictionary(ZBUFFv04_DCtx* dctx, const void* dict, size_t dictSize);
95 size_t ZBUFFv04_decompressContinue(ZBUFFv04_DCtx* dctx, void* dst, size_t* maxDstSizePtr, const voi…
H A Dzstd_v06.h74 ZSTDLIBv06_API size_t ZSTDv06_freeDCtx(ZSTDv06_DCtx* dctx); /*!< @return : errorCode */
88 ZSTDLIBv06_API size_t ZSTDv06_decompress_usingDict(ZSTDv06_DCtx* dctx,
101 ZSTDLIBv06_API size_t ZSTDv06_decompressBegin_usingDict(ZSTDv06_DCtx* dctx, const void* dict, size_…
102 ZSTDLIBv06_API void ZSTDv06_copyDCtx(ZSTDv06_DCtx* dctx, const ZSTDv06_DCtx* preparedDCtx);
104 ZSTDLIBv06_API size_t ZSTDv06_nextSrcSizeToDecompress(ZSTDv06_DCtx* dctx);
105 ZSTDLIBv06_API size_t ZSTDv06_decompressContinue(ZSTDv06_DCtx* dctx, void* dst, size_t dstCapacity,…
115 ZSTDLIBv06_API size_t ZBUFFv06_freeDCtx(ZBUFFv06_DCtx* dctx);
117 ZSTDLIBv06_API size_t ZBUFFv06_decompressInit(ZBUFFv06_DCtx* dctx);
118 ZSTDLIBv06_API size_t ZBUFFv06_decompressInitDictionary(ZBUFFv06_DCtx* dctx, const void* dict, size…
120 ZSTDLIBv06_API size_t ZBUFFv06_decompressContinue(ZBUFFv06_DCtx* dctx,
H A Dzstd_v06.c332 ZSTDv06_DCtx* dctx, const ZSTDv06_DCtx* preparedDCtx,
342 ZSTDLIBv06_API size_t ZSTDv06_decompressBegin(ZSTDv06_DCtx* dctx);
401 ZSTDLIBv06_API size_t ZSTDv06_decompressBlock(ZSTDv06_DCtx* dctx, void* dst, size_t dstCapacity, co…
2829 size_t ZSTDv06_decompressBegin(ZSTDv06_DCtx* dctx) in ZSTDv06_decompressBegin() argument
2831 dctx->expected = ZSTDv06_frameHeaderSize_min; in ZSTDv06_decompressBegin()
2832 dctx->stage = ZSTDds_getFrameHeaderSize; in ZSTDv06_decompressBegin()
2833 dctx->previousDstEnd = NULL; in ZSTDv06_decompressBegin()
2834 dctx->base = NULL; in ZSTDv06_decompressBegin()
2835 dctx->vBase = NULL; in ZSTDv06_decompressBegin()
2836 dctx->dictEnd = NULL; in ZSTDv06_decompressBegin()
[all …]
H A Dzstd_v05.h63 size_t ZSTDv05_freeDCtx(ZSTDv05_DCtx* dctx); /*!< @return : errorCode */
77 size_t ZSTDv05_decompress_usingDict(ZSTDv05_DCtx* dctx,
93 size_t ZSTDv05_decompressBegin_usingDict(ZSTDv05_DCtx* dctx, const void* dict, size_t dictSize);
95 size_t ZSTDv05_nextSrcSizeToDecompress(ZSTDv05_DCtx* dctx);
96 size_t ZSTDv05_decompressContinue(ZSTDv05_DCtx* dctx, void* dst, size_t dstCapacity, const void* sr…
104 size_t ZBUFFv05_freeDCtx(ZBUFFv05_DCtx* dctx);
106 size_t ZBUFFv05_decompressInit(ZBUFFv05_DCtx* dctx);
107 size_t ZBUFFv05_decompressInitDictionary(ZBUFFv05_DCtx* dctx, const void* dict, size_t dictSize);
109 size_t ZBUFFv05_decompressContinue(ZBUFFv05_DCtx* dctx,
H A Dzstd_v05.c322 ZSTDv05_DCtx* dctx, const ZSTDv05_DCtx* preparedDCtx,
330 size_t ZSTDv05_decompressBegin(ZSTDv05_DCtx* dctx);
384 size_t ZSTDv05_decompressBlock(ZSTDv05_DCtx* dctx, void* dst, size_t dstCapacity, const void* src, …
2668 size_t ZSTDv05_decompressBegin(ZSTDv05_DCtx* dctx) in ZSTDv05_decompressBegin() argument
2670 dctx->expected = ZSTDv05_frameHeaderSize_min; in ZSTDv05_decompressBegin()
2671 dctx->stage = ZSTDv05ds_getFrameHeaderSize; in ZSTDv05_decompressBegin()
2672 dctx->previousDstEnd = NULL; in ZSTDv05_decompressBegin()
2673 dctx->base = NULL; in ZSTDv05_decompressBegin()
2674 dctx->vBase = NULL; in ZSTDv05_decompressBegin()
2675 dctx->dictEnd = NULL; in ZSTDv05_decompressBegin()
[all …]
H A Dzstd_v07.h76 ZSTDLIBv07_API size_t ZSTDv07_freeDCtx(ZSTDv07_DCtx* dctx); /*!< @return : errorCode */
90 ZSTDLIBv07_API size_t ZSTDv07_decompress_usingDict(ZSTDv07_DCtx* dctx,
109 ZSTDLIBv07_API size_t ZSTDv07_decompress_usingDDict(ZSTDv07_DCtx* dctx,
131 ZSTDLIBv07_API size_t ZBUFFv07_freeDCtx(ZBUFFv07_DCtx* dctx);
133 ZSTDLIBv07_API size_t ZBUFFv07_decompressInit(ZBUFFv07_DCtx* dctx);
134 ZSTDLIBv07_API size_t ZBUFFv07_decompressInitDictionary(ZBUFFv07_DCtx* dctx, const void* dict, size…
136 ZSTDLIBv07_API size_t ZBUFFv07_decompressContinue(ZBUFFv07_DCtx* dctx,
/src/crypto/openssl/providers/implementations/storemgmt/
H A Dwinstore_store.c48 OSSL_DECODER_CTX *dctx; member
184 if (ctx->dctx != NULL) in setup_decoder()
187 ctx->dctx = OSSL_DECODER_CTX_new(); in setup_decoder()
188 if (ctx->dctx == NULL) { in setup_decoder()
193 if (!OSSL_DECODER_CTX_set_input_type(ctx->dctx, "DER")) { in setup_decoder()
199 if (!OSSL_DECODER_CTX_set_input_structure(ctx->dctx, input_structure)) { in setup_decoder()
235 if (!ossl_decoder_ctx_add_decoder_inst(ctx->dctx, in setup_decoder()
243 if (!OSSL_DECODER_CTX_add_extra(ctx->dctx, libctx, ctx->propq)) { in setup_decoder()
248 if (!OSSL_DECODER_CTX_set_construct(ctx->dctx, load_construct)) { in setup_decoder()
253 if (!OSSL_DECODER_CTX_set_cleanup(ctx->dctx, load_cleanup)) { in setup_decoder()
[all …]
/src/crypto/openssl/providers/implementations/ciphers/
H A Dcipher_sm4_gcm.c35 PROV_SM4_GCM_CTX *dctx = NULL; in sm4_gcm_dupctx() local
40 dctx = OPENSSL_memdup(ctx, sizeof(*ctx)); in sm4_gcm_dupctx()
41 if (dctx != NULL && dctx->base.gcm.key != NULL) in sm4_gcm_dupctx()
42 dctx->base.gcm.key = &dctx->ks.ks; in sm4_gcm_dupctx()
44 return dctx; in sm4_gcm_dupctx()
H A Dcipher_sm4_ccm.c34 PROV_SM4_CCM_CTX *dctx = NULL; in sm4_ccm_dupctx() local
39 dctx = OPENSSL_memdup(ctx, sizeof(*ctx)); in sm4_ccm_dupctx()
40 if (dctx != NULL && dctx->base.ccm_ctx.key != NULL) in sm4_ccm_dupctx()
41 dctx->base.ccm_ctx.key = &dctx->ks.ks; in sm4_ccm_dupctx()
43 return dctx; in sm4_ccm_dupctx()
H A Dcipher_aes_gcm.c40 PROV_AES_GCM_CTX *dctx = NULL; in aes_gcm_dupctx() local
48 dctx = OPENSSL_memdup(ctx, sizeof(*ctx)); in aes_gcm_dupctx()
49 if (dctx != NULL && dctx->base.gcm.key != NULL) in aes_gcm_dupctx()
50 dctx->base.gcm.key = &dctx->ks.ks; in aes_gcm_dupctx()
52 return dctx; in aes_gcm_dupctx()
H A Dcipher_aria_gcm.c33 PROV_ARIA_GCM_CTX *dctx = NULL; in aria_gcm_dupctx() local
38 dctx = OPENSSL_memdup(ctx, sizeof(*ctx)); in aria_gcm_dupctx()
39 if (dctx != NULL && dctx->base.gcm.key != NULL) in aria_gcm_dupctx()
40 dctx->base.gcm.key = &dctx->ks.ks; in aria_gcm_dupctx()
42 return dctx; in aria_gcm_dupctx()
H A Dcipher_aria_ccm.c34 PROV_ARIA_CCM_CTX *dctx = NULL; in aria_ccm_dupctx() local
39 dctx = OPENSSL_memdup(ctx, sizeof(*ctx)); in aria_ccm_dupctx()
40 if (dctx != NULL && dctx->base.ccm_ctx.key != NULL) in aria_ccm_dupctx()
41 dctx->base.ccm_ctx.key = &dctx->ks.ks; in aria_ccm_dupctx()
43 return dctx; in aria_ccm_dupctx()
H A Dcipher_des_hw.c22 PROV_DES_CTX *dctx = (PROV_DES_CTX *)ctx; in cipher_hw_des_initkey() local
24 DES_key_schedule *ks = &dctx->dks.ks; in cipher_hw_des_initkey()
26 dctx->dstream.cbc = NULL; in cipher_hw_des_initkey()
31 dctx->dstream.cbc = ctx->enc ? des_t4_cbc_encrypt : des_t4_cbc_decrypt; in cipher_hw_des_initkey()
44 PROV_DES_CTX *dctx = (PROV_DES_CTX *)dst; in cipher_hw_des_copyctx() local
46 *dctx = *sctx; in cipher_hw_des_copyctx()
47 dst->ks = &dctx->dks.ks; in cipher_hw_des_copyctx()
67 PROV_DES_CTX *dctx = (PROV_DES_CTX *)ctx; in cipher_hw_des_cbc_cipher() local
68 DES_key_schedule *key = &(dctx->dks.ks); in cipher_hw_des_cbc_cipher()
70 if (dctx->dstream.cbc != NULL) { in cipher_hw_des_cbc_cipher()
[all …]
/src/crypto/openssl/doc/man3/
H A DOSSL_DECODER_from_bio.pod52 OSSL_DECODER_CTX *dctx;
59 dctx = OSSL_DECODER_CTX_new_for_pkey(&pkey, format, structure,
63 if (dctx == NULL) {
67 OSSL_DECODER_CTX_set_passphrase(dctx, pass, strlen(pass));
68 if (OSSL_DECODER_from_bio(dctx, bio)) {
73 OSSL_DECODER_CTX_free(dctx);
77 OSSL_DECODER_CTX *dctx;
86 dctx = OSSL_DECODER_CTX_new_for_pkey(&pkey, format, structure,
91 if (dctx == NULL) {
95 OSSL_DECODER_CTX_set_passphrase(dctx, pass, strlen(pass));
[all …]

12345