Home
last modified time | relevance | path

Searched refs:srcctx (Results 1 – 25 of 27) sorted by relevance

12

/third_party/node/deps/openssl/openssl/providers/implementations/exchange/
Ddh_exch.c257 PROV_DH_CTX *srcctx = (PROV_DH_CTX *)vpdhctx; in dh_dupctx() local
263 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in dh_dupctx()
267 *dstctx = *srcctx; in dh_dupctx()
274 if (srcctx->dh != NULL && !DH_up_ref(srcctx->dh)) in dh_dupctx()
277 dstctx->dh = srcctx->dh; in dh_dupctx()
279 if (srcctx->dhpeer != NULL && !DH_up_ref(srcctx->dhpeer)) in dh_dupctx()
282 dstctx->dhpeer = srcctx->dhpeer; in dh_dupctx()
284 if (srcctx->kdf_md != NULL && !EVP_MD_up_ref(srcctx->kdf_md)) in dh_dupctx()
287 dstctx->kdf_md = srcctx->kdf_md; in dh_dupctx()
290 if (srcctx->kdf_ukm != NULL && srcctx->kdf_ukmlen > 0) { in dh_dupctx()
[all …]
Decdh_exch.c176 PROV_ECDH_CTX *srcctx = (PROV_ECDH_CTX *)vpecdhctx; in ecdh_dupctx() local
182 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in ecdh_dupctx()
186 *dstctx = *srcctx; in ecdh_dupctx()
197 if (srcctx->k != NULL && !EC_KEY_up_ref(srcctx->k)) in ecdh_dupctx()
200 dstctx->k = srcctx->k; in ecdh_dupctx()
202 if (srcctx->peerk != NULL && !EC_KEY_up_ref(srcctx->peerk)) in ecdh_dupctx()
205 dstctx->peerk = srcctx->peerk; in ecdh_dupctx()
207 if (srcctx->kdf_md != NULL && !EVP_MD_up_ref(srcctx->kdf_md)) in ecdh_dupctx()
210 dstctx->kdf_md = srcctx->kdf_md; in ecdh_dupctx()
213 if (srcctx->kdf_ukm != NULL && srcctx->kdf_ukmlen > 0) { in ecdh_dupctx()
[all …]
Dkdf_exch.c139 PROV_KDF_CTX *srcctx = (PROV_KDF_CTX *)vpkdfctx; in kdf_dupctx() local
145 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in kdf_dupctx()
149 *dstctx = *srcctx; in kdf_dupctx()
151 dstctx->kdfctx = EVP_KDF_CTX_dup(srcctx->kdfctx); in kdf_dupctx()
Decx_exch.c196 PROV_ECX_CTX *srcctx = (PROV_ECX_CTX *)vecxctx; in ecx_dupctx() local
202 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in ecx_dupctx()
208 *dstctx = *srcctx; in ecx_dupctx()
/third_party/openssl/providers/implementations/exchange/
Ddh_exch.c257 PROV_DH_CTX *srcctx = (PROV_DH_CTX *)vpdhctx; in dh_dupctx() local
263 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in dh_dupctx()
267 *dstctx = *srcctx; in dh_dupctx()
274 if (srcctx->dh != NULL && !DH_up_ref(srcctx->dh)) in dh_dupctx()
277 dstctx->dh = srcctx->dh; in dh_dupctx()
279 if (srcctx->dhpeer != NULL && !DH_up_ref(srcctx->dhpeer)) in dh_dupctx()
282 dstctx->dhpeer = srcctx->dhpeer; in dh_dupctx()
284 if (srcctx->kdf_md != NULL && !EVP_MD_up_ref(srcctx->kdf_md)) in dh_dupctx()
287 dstctx->kdf_md = srcctx->kdf_md; in dh_dupctx()
290 if (srcctx->kdf_ukm != NULL && srcctx->kdf_ukmlen > 0) { in dh_dupctx()
[all …]
Decdh_exch.c176 PROV_ECDH_CTX *srcctx = (PROV_ECDH_CTX *)vpecdhctx; in ecdh_dupctx() local
182 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in ecdh_dupctx()
186 *dstctx = *srcctx; in ecdh_dupctx()
197 if (srcctx->k != NULL && !EC_KEY_up_ref(srcctx->k)) in ecdh_dupctx()
200 dstctx->k = srcctx->k; in ecdh_dupctx()
202 if (srcctx->peerk != NULL && !EC_KEY_up_ref(srcctx->peerk)) in ecdh_dupctx()
205 dstctx->peerk = srcctx->peerk; in ecdh_dupctx()
207 if (srcctx->kdf_md != NULL && !EVP_MD_up_ref(srcctx->kdf_md)) in ecdh_dupctx()
210 dstctx->kdf_md = srcctx->kdf_md; in ecdh_dupctx()
213 if (srcctx->kdf_ukm != NULL && srcctx->kdf_ukmlen > 0) { in ecdh_dupctx()
[all …]
Dkdf_exch.c139 PROV_KDF_CTX *srcctx = (PROV_KDF_CTX *)vpkdfctx; in kdf_dupctx() local
145 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in kdf_dupctx()
149 *dstctx = *srcctx; in kdf_dupctx()
151 dstctx->kdfctx = EVP_KDF_CTX_dup(srcctx->kdfctx); in kdf_dupctx()
Decx_exch.c196 PROV_ECX_CTX *srcctx = (PROV_ECX_CTX *)vecxctx; in ecx_dupctx() local
202 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in ecx_dupctx()
208 *dstctx = *srcctx; in ecx_dupctx()
/third_party/node/deps/openssl/openssl/providers/implementations/signature/
Dsm2_sig.c340 PROV_SM2_CTX *srcctx = (PROV_SM2_CTX *)vpsm2ctx; in sm2sig_dupctx() local
343 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in sm2sig_dupctx()
347 *dstctx = *srcctx; in sm2sig_dupctx()
354 if (srcctx->ec != NULL && !EC_KEY_up_ref(srcctx->ec)) in sm2sig_dupctx()
356 dstctx->ec = srcctx->ec; in sm2sig_dupctx()
358 if (srcctx->propq != NULL) { in sm2sig_dupctx()
359 dstctx->propq = OPENSSL_strdup(srcctx->propq); in sm2sig_dupctx()
364 if (srcctx->md != NULL && !EVP_MD_up_ref(srcctx->md)) in sm2sig_dupctx()
366 dstctx->md = srcctx->md; in sm2sig_dupctx()
368 if (srcctx->mdctx != NULL) { in sm2sig_dupctx()
[all …]
Dmac_legacy_sig.c176 PROV_MAC_CTX *srcctx = (PROV_MAC_CTX *)vpmacctx; in mac_dupctx() local
182 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in mac_dupctx()
186 *dstctx = *srcctx; in mac_dupctx()
191 if (srcctx->propq != NULL && (dstctx->propq = OPENSSL_strdup(srcctx->propq)) == NULL) in mac_dupctx()
194 if (srcctx->key != NULL && !ossl_mac_key_up_ref(srcctx->key)) in mac_dupctx()
196 dstctx->key = srcctx->key; in mac_dupctx()
198 if (srcctx->macctx != NULL) { in mac_dupctx()
199 dstctx->macctx = EVP_MAC_CTX_dup(srcctx->macctx); in mac_dupctx()
Decdsa_sig.c392 PROV_ECDSA_CTX *srcctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_dupctx() local
398 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in ecdsa_dupctx()
402 *dstctx = *srcctx; in ecdsa_dupctx()
408 if (srcctx->ec != NULL && !EC_KEY_up_ref(srcctx->ec)) in ecdsa_dupctx()
411 if (srcctx->kinv != NULL || srcctx->r != NULL) in ecdsa_dupctx()
413 dstctx->ec = srcctx->ec; in ecdsa_dupctx()
415 if (srcctx->md != NULL && !EVP_MD_up_ref(srcctx->md)) in ecdsa_dupctx()
417 dstctx->md = srcctx->md; in ecdsa_dupctx()
419 if (srcctx->mdctx != NULL) { in ecdsa_dupctx()
422 || !EVP_MD_CTX_copy_ex(dstctx->mdctx, srcctx->mdctx)) in ecdsa_dupctx()
[all …]
Ddsa_sig.c402 PROV_DSA_CTX *srcctx = (PROV_DSA_CTX *)vpdsactx; in dsa_dupctx() local
408 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in dsa_dupctx()
412 *dstctx = *srcctx; in dsa_dupctx()
418 if (srcctx->dsa != NULL && !DSA_up_ref(srcctx->dsa)) in dsa_dupctx()
420 dstctx->dsa = srcctx->dsa; in dsa_dupctx()
422 if (srcctx->md != NULL && !EVP_MD_up_ref(srcctx->md)) in dsa_dupctx()
424 dstctx->md = srcctx->md; in dsa_dupctx()
426 if (srcctx->mdctx != NULL) { in dsa_dupctx()
429 || !EVP_MD_CTX_copy_ex(dstctx->mdctx, srcctx->mdctx)) in dsa_dupctx()
432 if (srcctx->propq != NULL) { in dsa_dupctx()
[all …]
Drsa_sig.c985 PROV_RSA_CTX *srcctx = (PROV_RSA_CTX *)vprsactx; in rsa_dupctx() local
991 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in rsa_dupctx()
997 *dstctx = *srcctx; in rsa_dupctx()
1005 if (srcctx->rsa != NULL && !RSA_up_ref(srcctx->rsa)) in rsa_dupctx()
1007 dstctx->rsa = srcctx->rsa; in rsa_dupctx()
1009 if (srcctx->md != NULL && !EVP_MD_up_ref(srcctx->md)) in rsa_dupctx()
1011 dstctx->md = srcctx->md; in rsa_dupctx()
1013 if (srcctx->mgf1_md != NULL && !EVP_MD_up_ref(srcctx->mgf1_md)) in rsa_dupctx()
1015 dstctx->mgf1_md = srcctx->mgf1_md; in rsa_dupctx()
1017 if (srcctx->mdctx != NULL) { in rsa_dupctx()
[all …]
Deddsa_sig.c280 PROV_EDDSA_CTX *srcctx = (PROV_EDDSA_CTX *)vpeddsactx; in eddsa_dupctx() local
286 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in eddsa_dupctx()
290 *dstctx = *srcctx; in eddsa_dupctx()
293 if (srcctx->key != NULL && !ossl_ecx_key_up_ref(srcctx->key)) { in eddsa_dupctx()
297 dstctx->key = srcctx->key; in eddsa_dupctx()
/third_party/openssl/providers/implementations/signature/
Dsm2_sig.c339 PROV_SM2_CTX *srcctx = (PROV_SM2_CTX *)vpsm2ctx; in sm2sig_dupctx() local
342 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in sm2sig_dupctx()
346 *dstctx = *srcctx; in sm2sig_dupctx()
351 if (srcctx->ec != NULL && !EC_KEY_up_ref(srcctx->ec)) in sm2sig_dupctx()
353 dstctx->ec = srcctx->ec; in sm2sig_dupctx()
355 if (srcctx->md != NULL && !EVP_MD_up_ref(srcctx->md)) in sm2sig_dupctx()
357 dstctx->md = srcctx->md; in sm2sig_dupctx()
359 if (srcctx->mdctx != NULL) { in sm2sig_dupctx()
362 || !EVP_MD_CTX_copy_ex(dstctx->mdctx, srcctx->mdctx)) in sm2sig_dupctx()
366 if (srcctx->id != NULL) { in sm2sig_dupctx()
[all …]
Dmac_legacy_sig.c176 PROV_MAC_CTX *srcctx = (PROV_MAC_CTX *)vpmacctx; in mac_dupctx() local
182 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in mac_dupctx()
186 *dstctx = *srcctx; in mac_dupctx()
191 if (srcctx->propq != NULL && (dstctx->propq = OPENSSL_strdup(srcctx->propq)) == NULL) in mac_dupctx()
194 if (srcctx->key != NULL && !ossl_mac_key_up_ref(srcctx->key)) in mac_dupctx()
196 dstctx->key = srcctx->key; in mac_dupctx()
198 if (srcctx->macctx != NULL) { in mac_dupctx()
199 dstctx->macctx = EVP_MAC_CTX_dup(srcctx->macctx); in mac_dupctx()
Decdsa_sig.c392 PROV_ECDSA_CTX *srcctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_dupctx() local
398 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in ecdsa_dupctx()
402 *dstctx = *srcctx; in ecdsa_dupctx()
408 if (srcctx->ec != NULL && !EC_KEY_up_ref(srcctx->ec)) in ecdsa_dupctx()
411 if (srcctx->kinv != NULL || srcctx->r != NULL) in ecdsa_dupctx()
413 dstctx->ec = srcctx->ec; in ecdsa_dupctx()
415 if (srcctx->md != NULL && !EVP_MD_up_ref(srcctx->md)) in ecdsa_dupctx()
417 dstctx->md = srcctx->md; in ecdsa_dupctx()
419 if (srcctx->mdctx != NULL) { in ecdsa_dupctx()
422 || !EVP_MD_CTX_copy_ex(dstctx->mdctx, srcctx->mdctx)) in ecdsa_dupctx()
[all …]
Ddsa_sig.c402 PROV_DSA_CTX *srcctx = (PROV_DSA_CTX *)vpdsactx; in dsa_dupctx() local
408 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in dsa_dupctx()
412 *dstctx = *srcctx; in dsa_dupctx()
418 if (srcctx->dsa != NULL && !DSA_up_ref(srcctx->dsa)) in dsa_dupctx()
420 dstctx->dsa = srcctx->dsa; in dsa_dupctx()
422 if (srcctx->md != NULL && !EVP_MD_up_ref(srcctx->md)) in dsa_dupctx()
424 dstctx->md = srcctx->md; in dsa_dupctx()
426 if (srcctx->mdctx != NULL) { in dsa_dupctx()
429 || !EVP_MD_CTX_copy_ex(dstctx->mdctx, srcctx->mdctx)) in dsa_dupctx()
432 if (srcctx->propq != NULL) { in dsa_dupctx()
[all …]
Drsa_sig.c985 PROV_RSA_CTX *srcctx = (PROV_RSA_CTX *)vprsactx; in rsa_dupctx() local
991 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in rsa_dupctx()
997 *dstctx = *srcctx; in rsa_dupctx()
1004 if (srcctx->rsa != NULL && !RSA_up_ref(srcctx->rsa)) in rsa_dupctx()
1006 dstctx->rsa = srcctx->rsa; in rsa_dupctx()
1008 if (srcctx->md != NULL && !EVP_MD_up_ref(srcctx->md)) in rsa_dupctx()
1010 dstctx->md = srcctx->md; in rsa_dupctx()
1012 if (srcctx->mgf1_md != NULL && !EVP_MD_up_ref(srcctx->mgf1_md)) in rsa_dupctx()
1014 dstctx->mgf1_md = srcctx->mgf1_md; in rsa_dupctx()
1016 if (srcctx->mdctx != NULL) { in rsa_dupctx()
[all …]
Deddsa_sig.c280 PROV_EDDSA_CTX *srcctx = (PROV_EDDSA_CTX *)vpeddsactx; in eddsa_dupctx() local
286 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in eddsa_dupctx()
290 *dstctx = *srcctx; in eddsa_dupctx()
293 if (srcctx->key != NULL && !ossl_ecx_key_up_ref(srcctx->key)) { in eddsa_dupctx()
297 dstctx->key = srcctx->key; in eddsa_dupctx()
/third_party/node/deps/openssl/openssl/providers/implementations/asymciphers/
Dsm2_enc.c133 PROV_SM2_CTX *srcctx = (PROV_SM2_CTX *)vpsm2ctx; in sm2_dupctx() local
136 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in sm2_dupctx()
140 *dstctx = *srcctx; in sm2_dupctx()
148 if (!ossl_prov_digest_copy(&dstctx->md, &srcctx->md)) { in sm2_dupctx()
/third_party/openssl/providers/implementations/asymciphers/
Dsm2_enc.c133 PROV_SM2_CTX *srcctx = (PROV_SM2_CTX *)vpsm2ctx; in sm2_dupctx() local
136 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in sm2_dupctx()
140 *dstctx = *srcctx; in sm2_dupctx()
148 if (!ossl_prov_digest_copy(&dstctx->md, &srcctx->md)) { in sm2_dupctx()
Drsa_enc.c302 PROV_RSA_CTX *srcctx = (PROV_RSA_CTX *)vprsactx; in rsa_dupctx() local
308 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in rsa_dupctx()
312 *dstctx = *srcctx; in rsa_dupctx()
/third_party/openssl/providers/implementations/kem/
Drsa_kem.c105 PROV_RSA_CTX *srcctx = (PROV_RSA_CTX *)vprsactx; in rsakem_dupctx() local
108 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in rsakem_dupctx()
112 *dstctx = *srcctx; in rsakem_dupctx()
/third_party/node/deps/openssl/openssl/providers/implementations/kem/
Drsa_kem.c105 PROV_RSA_CTX *srcctx = (PROV_RSA_CTX *)vprsactx; in rsakem_dupctx() local
108 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in rsakem_dupctx()
112 *dstctx = *srcctx; in rsakem_dupctx()

12