/third_party/node/deps/openssl/openssl/providers/implementations/signature/ |
D | sm2_sig.c | 341 PROV_SM2_CTX *dstctx; in sm2sig_dupctx() local 343 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in sm2sig_dupctx() 344 if (dstctx == NULL) in sm2sig_dupctx() 347 *dstctx = *srcctx; in sm2sig_dupctx() 348 dstctx->ec = NULL; in sm2sig_dupctx() 349 dstctx->propq = NULL; in sm2sig_dupctx() 350 dstctx->md = NULL; in sm2sig_dupctx() 351 dstctx->mdctx = NULL; in sm2sig_dupctx() 352 dstctx->id = NULL; in sm2sig_dupctx() 356 dstctx->ec = srcctx->ec; in sm2sig_dupctx() [all …]
|
D | mac_legacy_sig.c | 177 PROV_MAC_CTX *dstctx; in mac_dupctx() local 182 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in mac_dupctx() 183 if (dstctx == NULL) in mac_dupctx() 186 *dstctx = *srcctx; in mac_dupctx() 187 dstctx->propq = NULL; in mac_dupctx() 188 dstctx->key = NULL; in mac_dupctx() 189 dstctx->macctx = NULL; in mac_dupctx() 191 if (srcctx->propq != NULL && (dstctx->propq = OPENSSL_strdup(srcctx->propq)) == NULL) in mac_dupctx() 196 dstctx->key = srcctx->key; in mac_dupctx() 199 dstctx->macctx = EVP_MAC_CTX_dup(srcctx->macctx); in mac_dupctx() [all …]
|
D | dsa_sig.c | 403 PROV_DSA_CTX *dstctx; in dsa_dupctx() local 408 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in dsa_dupctx() 409 if (dstctx == NULL) in dsa_dupctx() 412 *dstctx = *srcctx; in dsa_dupctx() 413 dstctx->dsa = NULL; in dsa_dupctx() 414 dstctx->md = NULL; in dsa_dupctx() 415 dstctx->mdctx = NULL; in dsa_dupctx() 416 dstctx->propq = NULL; in dsa_dupctx() 420 dstctx->dsa = srcctx->dsa; in dsa_dupctx() 424 dstctx->md = srcctx->md; in dsa_dupctx() [all …]
|
D | ecdsa_sig.c | 393 PROV_ECDSA_CTX *dstctx; in ecdsa_dupctx() local 398 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in ecdsa_dupctx() 399 if (dstctx == NULL) in ecdsa_dupctx() 402 *dstctx = *srcctx; in ecdsa_dupctx() 403 dstctx->ec = NULL; in ecdsa_dupctx() 404 dstctx->md = NULL; in ecdsa_dupctx() 405 dstctx->mdctx = NULL; in ecdsa_dupctx() 406 dstctx->propq = NULL; in ecdsa_dupctx() 413 dstctx->ec = srcctx->ec; in ecdsa_dupctx() 417 dstctx->md = srcctx->md; in ecdsa_dupctx() [all …]
|
D | rsa_sig.c | 986 PROV_RSA_CTX *dstctx; in rsa_dupctx() local 991 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in rsa_dupctx() 992 if (dstctx == NULL) { in rsa_dupctx() 997 *dstctx = *srcctx; in rsa_dupctx() 998 dstctx->rsa = NULL; in rsa_dupctx() 999 dstctx->md = NULL; in rsa_dupctx() 1000 dstctx->mgf1_md = NULL; in rsa_dupctx() 1001 dstctx->mdctx = NULL; in rsa_dupctx() 1002 dstctx->tbuf = NULL; in rsa_dupctx() 1003 dstctx->propq = NULL; in rsa_dupctx() [all …]
|
D | eddsa_sig.c | 281 PROV_EDDSA_CTX *dstctx; in eddsa_dupctx() local 286 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in eddsa_dupctx() 287 if (dstctx == NULL) in eddsa_dupctx() 290 *dstctx = *srcctx; in eddsa_dupctx() 291 dstctx->key = NULL; in eddsa_dupctx() 297 dstctx->key = srcctx->key; in eddsa_dupctx() 299 return dstctx; in eddsa_dupctx() 301 eddsa_freectx(dstctx); in eddsa_dupctx()
|
/third_party/openssl/providers/implementations/exchange/ |
D | ecx_exch.c | 197 PROV_ECX_CTX *dstctx; in ecx_dupctx() local 202 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in ecx_dupctx() 203 if (dstctx == NULL) { in ecx_dupctx() 208 *dstctx = *srcctx; in ecx_dupctx() 209 if (dstctx->key != NULL && !ossl_ecx_key_up_ref(dstctx->key)) { in ecx_dupctx() 211 OPENSSL_free(dstctx); in ecx_dupctx() 215 if (dstctx->peerkey != NULL && !ossl_ecx_key_up_ref(dstctx->peerkey)) { in ecx_dupctx() 217 ossl_ecx_key_free(dstctx->key); in ecx_dupctx() 218 OPENSSL_free(dstctx); in ecx_dupctx() 222 return dstctx; in ecx_dupctx()
|
D | kdf_exch.c | 140 PROV_KDF_CTX *dstctx; in kdf_dupctx() local 145 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in kdf_dupctx() 146 if (dstctx == NULL) in kdf_dupctx() 149 *dstctx = *srcctx; in kdf_dupctx() 151 dstctx->kdfctx = EVP_KDF_CTX_dup(srcctx->kdfctx); in kdf_dupctx() 152 if (dstctx->kdfctx == NULL) { in kdf_dupctx() 153 OPENSSL_free(dstctx); in kdf_dupctx() 156 if (!ossl_kdf_data_up_ref(dstctx->kdfdata)) { in kdf_dupctx() 157 EVP_KDF_CTX_free(dstctx->kdfctx); in kdf_dupctx() 158 OPENSSL_free(dstctx); in kdf_dupctx() [all …]
|
D | dh_exch.c | 258 PROV_DH_CTX *dstctx; in dh_dupctx() local 263 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in dh_dupctx() 264 if (dstctx == NULL) in dh_dupctx() 267 *dstctx = *srcctx; in dh_dupctx() 268 dstctx->dh = NULL; in dh_dupctx() 269 dstctx->dhpeer = NULL; in dh_dupctx() 270 dstctx->kdf_md = NULL; in dh_dupctx() 271 dstctx->kdf_ukm = NULL; in dh_dupctx() 272 dstctx->kdf_cekalg = NULL; in dh_dupctx() 277 dstctx->dh = srcctx->dh; in dh_dupctx() [all …]
|
D | ecdh_exch.c | 177 PROV_ECDH_CTX *dstctx; in ecdh_dupctx() local 182 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in ecdh_dupctx() 183 if (dstctx == NULL) in ecdh_dupctx() 186 *dstctx = *srcctx; in ecdh_dupctx() 190 dstctx->k= NULL; in ecdh_dupctx() 191 dstctx->peerk = NULL; in ecdh_dupctx() 192 dstctx->kdf_md = NULL; in ecdh_dupctx() 193 dstctx->kdf_ukm = NULL; in ecdh_dupctx() 200 dstctx->k = srcctx->k; in ecdh_dupctx() 205 dstctx->peerk = srcctx->peerk; in ecdh_dupctx() [all …]
|
/third_party/node/deps/openssl/openssl/providers/implementations/exchange/ |
D | ecx_exch.c | 197 PROV_ECX_CTX *dstctx; in ecx_dupctx() local 202 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in ecx_dupctx() 203 if (dstctx == NULL) { in ecx_dupctx() 208 *dstctx = *srcctx; in ecx_dupctx() 209 if (dstctx->key != NULL && !ossl_ecx_key_up_ref(dstctx->key)) { in ecx_dupctx() 211 OPENSSL_free(dstctx); in ecx_dupctx() 215 if (dstctx->peerkey != NULL && !ossl_ecx_key_up_ref(dstctx->peerkey)) { in ecx_dupctx() 217 ossl_ecx_key_free(dstctx->key); in ecx_dupctx() 218 OPENSSL_free(dstctx); in ecx_dupctx() 222 return dstctx; in ecx_dupctx()
|
D | kdf_exch.c | 140 PROV_KDF_CTX *dstctx; in kdf_dupctx() local 145 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in kdf_dupctx() 146 if (dstctx == NULL) in kdf_dupctx() 149 *dstctx = *srcctx; in kdf_dupctx() 151 dstctx->kdfctx = EVP_KDF_CTX_dup(srcctx->kdfctx); in kdf_dupctx() 152 if (dstctx->kdfctx == NULL) { in kdf_dupctx() 153 OPENSSL_free(dstctx); in kdf_dupctx() 156 if (!ossl_kdf_data_up_ref(dstctx->kdfdata)) { in kdf_dupctx() 157 EVP_KDF_CTX_free(dstctx->kdfctx); in kdf_dupctx() 158 OPENSSL_free(dstctx); in kdf_dupctx() [all …]
|
D | dh_exch.c | 258 PROV_DH_CTX *dstctx; in dh_dupctx() local 263 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in dh_dupctx() 264 if (dstctx == NULL) in dh_dupctx() 267 *dstctx = *srcctx; in dh_dupctx() 268 dstctx->dh = NULL; in dh_dupctx() 269 dstctx->dhpeer = NULL; in dh_dupctx() 270 dstctx->kdf_md = NULL; in dh_dupctx() 271 dstctx->kdf_ukm = NULL; in dh_dupctx() 272 dstctx->kdf_cekalg = NULL; in dh_dupctx() 277 dstctx->dh = srcctx->dh; in dh_dupctx() [all …]
|
D | ecdh_exch.c | 177 PROV_ECDH_CTX *dstctx; in ecdh_dupctx() local 182 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in ecdh_dupctx() 183 if (dstctx == NULL) in ecdh_dupctx() 186 *dstctx = *srcctx; in ecdh_dupctx() 190 dstctx->k= NULL; in ecdh_dupctx() 191 dstctx->peerk = NULL; in ecdh_dupctx() 192 dstctx->kdf_md = NULL; in ecdh_dupctx() 193 dstctx->kdf_ukm = NULL; in ecdh_dupctx() 200 dstctx->k = srcctx->k; in ecdh_dupctx() 205 dstctx->peerk = srcctx->peerk; in ecdh_dupctx() [all …]
|
/third_party/node/deps/openssl/openssl/providers/implementations/asymciphers/ |
D | sm2_enc.c | 134 PROV_SM2_CTX *dstctx; in sm2_dupctx() local 136 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in sm2_dupctx() 137 if (dstctx == NULL) in sm2_dupctx() 140 *dstctx = *srcctx; in sm2_dupctx() 141 memset(&dstctx->md, 0, sizeof(dstctx->md)); in sm2_dupctx() 143 if (dstctx->key != NULL && !EC_KEY_up_ref(dstctx->key)) { in sm2_dupctx() 144 OPENSSL_free(dstctx); in sm2_dupctx() 148 if (!ossl_prov_digest_copy(&dstctx->md, &srcctx->md)) { in sm2_dupctx() 149 sm2_freectx(dstctx); in sm2_dupctx() 153 return dstctx; in sm2_dupctx()
|
D | rsa_enc.c | 303 PROV_RSA_CTX *dstctx; in rsa_dupctx() local 308 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in rsa_dupctx() 309 if (dstctx == NULL) in rsa_dupctx() 312 *dstctx = *srcctx; in rsa_dupctx() 313 if (dstctx->rsa != NULL && !RSA_up_ref(dstctx->rsa)) { in rsa_dupctx() 314 OPENSSL_free(dstctx); in rsa_dupctx() 318 if (dstctx->oaep_md != NULL && !EVP_MD_up_ref(dstctx->oaep_md)) { in rsa_dupctx() 319 RSA_free(dstctx->rsa); in rsa_dupctx() 320 OPENSSL_free(dstctx); in rsa_dupctx() 324 if (dstctx->mgf1_md != NULL && !EVP_MD_up_ref(dstctx->mgf1_md)) { in rsa_dupctx() [all …]
|
/third_party/openssl/providers/implementations/asymciphers/ |
D | sm2_enc.c | 134 PROV_SM2_CTX *dstctx; in sm2_dupctx() local 136 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in sm2_dupctx() 137 if (dstctx == NULL) in sm2_dupctx() 140 *dstctx = *srcctx; in sm2_dupctx() 141 memset(&dstctx->md, 0, sizeof(dstctx->md)); in sm2_dupctx() 143 if (dstctx->key != NULL && !EC_KEY_up_ref(dstctx->key)) { in sm2_dupctx() 144 OPENSSL_free(dstctx); in sm2_dupctx() 148 if (!ossl_prov_digest_copy(&dstctx->md, &srcctx->md)) { in sm2_dupctx() 149 sm2_freectx(dstctx); in sm2_dupctx() 153 return dstctx; in sm2_dupctx()
|
D | rsa_enc.c | 303 PROV_RSA_CTX *dstctx; in rsa_dupctx() local 308 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in rsa_dupctx() 309 if (dstctx == NULL) in rsa_dupctx() 312 *dstctx = *srcctx; in rsa_dupctx() 313 if (dstctx->rsa != NULL && !RSA_up_ref(dstctx->rsa)) { in rsa_dupctx() 314 OPENSSL_free(dstctx); in rsa_dupctx() 318 if (dstctx->oaep_md != NULL && !EVP_MD_up_ref(dstctx->oaep_md)) { in rsa_dupctx() 319 RSA_free(dstctx->rsa); in rsa_dupctx() 320 OPENSSL_free(dstctx); in rsa_dupctx() 324 if (dstctx->mgf1_md != NULL && !EVP_MD_up_ref(dstctx->mgf1_md)) { in rsa_dupctx() [all …]
|
/third_party/openssl/providers/implementations/signature/ |
D | mac_legacy_sig.c | 177 PROV_MAC_CTX *dstctx; in mac_dupctx() local 182 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in mac_dupctx() 183 if (dstctx == NULL) in mac_dupctx() 186 *dstctx = *srcctx; in mac_dupctx() 187 dstctx->propq = NULL; in mac_dupctx() 188 dstctx->key = NULL; in mac_dupctx() 189 dstctx->macctx = NULL; in mac_dupctx() 191 if (srcctx->propq != NULL && (dstctx->propq = OPENSSL_strdup(srcctx->propq)) == NULL) in mac_dupctx() 196 dstctx->key = srcctx->key; in mac_dupctx() 199 dstctx->macctx = EVP_MAC_CTX_dup(srcctx->macctx); in mac_dupctx() [all …]
|
D | sm2_sig.c | 340 PROV_SM2_CTX *dstctx; in sm2sig_dupctx() local 342 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in sm2sig_dupctx() 343 if (dstctx == NULL) in sm2sig_dupctx() 346 *dstctx = *srcctx; in sm2sig_dupctx() 347 dstctx->ec = NULL; in sm2sig_dupctx() 348 dstctx->md = NULL; in sm2sig_dupctx() 349 dstctx->mdctx = NULL; in sm2sig_dupctx() 353 dstctx->ec = srcctx->ec; in sm2sig_dupctx() 357 dstctx->md = srcctx->md; in sm2sig_dupctx() 360 dstctx->mdctx = EVP_MD_CTX_new(); in sm2sig_dupctx() [all …]
|
D | dsa_sig.c | 403 PROV_DSA_CTX *dstctx; in dsa_dupctx() local 408 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in dsa_dupctx() 409 if (dstctx == NULL) in dsa_dupctx() 412 *dstctx = *srcctx; in dsa_dupctx() 413 dstctx->dsa = NULL; in dsa_dupctx() 414 dstctx->md = NULL; in dsa_dupctx() 415 dstctx->mdctx = NULL; in dsa_dupctx() 416 dstctx->propq = NULL; in dsa_dupctx() 420 dstctx->dsa = srcctx->dsa; in dsa_dupctx() 424 dstctx->md = srcctx->md; in dsa_dupctx() [all …]
|
D | ecdsa_sig.c | 393 PROV_ECDSA_CTX *dstctx; in ecdsa_dupctx() local 398 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in ecdsa_dupctx() 399 if (dstctx == NULL) in ecdsa_dupctx() 402 *dstctx = *srcctx; in ecdsa_dupctx() 403 dstctx->ec = NULL; in ecdsa_dupctx() 404 dstctx->md = NULL; in ecdsa_dupctx() 405 dstctx->mdctx = NULL; in ecdsa_dupctx() 406 dstctx->propq = NULL; in ecdsa_dupctx() 413 dstctx->ec = srcctx->ec; in ecdsa_dupctx() 417 dstctx->md = srcctx->md; in ecdsa_dupctx() [all …]
|
D | eddsa_sig.c | 281 PROV_EDDSA_CTX *dstctx; in eddsa_dupctx() local 286 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in eddsa_dupctx() 287 if (dstctx == NULL) in eddsa_dupctx() 290 *dstctx = *srcctx; in eddsa_dupctx() 291 dstctx->key = NULL; in eddsa_dupctx() 297 dstctx->key = srcctx->key; in eddsa_dupctx() 299 return dstctx; in eddsa_dupctx() 301 eddsa_freectx(dstctx); in eddsa_dupctx()
|
/third_party/openssl/providers/implementations/kem/ |
D | rsa_kem.c | 106 PROV_RSA_CTX *dstctx; in rsakem_dupctx() local 108 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in rsakem_dupctx() 109 if (dstctx == NULL) in rsakem_dupctx() 112 *dstctx = *srcctx; in rsakem_dupctx() 113 if (dstctx->rsa != NULL && !RSA_up_ref(dstctx->rsa)) { in rsakem_dupctx() 114 OPENSSL_free(dstctx); in rsakem_dupctx() 117 return dstctx; in rsakem_dupctx()
|
/third_party/node/deps/openssl/openssl/providers/implementations/kem/ |
D | rsa_kem.c | 106 PROV_RSA_CTX *dstctx; in rsakem_dupctx() local 108 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in rsakem_dupctx() 109 if (dstctx == NULL) in rsakem_dupctx() 112 *dstctx = *srcctx; in rsakem_dupctx() 113 if (dstctx->rsa != NULL && !RSA_up_ref(dstctx->rsa)) { in rsakem_dupctx() 114 OPENSSL_free(dstctx); in rsakem_dupctx() 117 return dstctx; in rsakem_dupctx()
|