Home
last modified time | relevance | path

Searched refs:dupctx (Results 1 – 25 of 32) sorted by relevance

12

/third_party/node/deps/openssl/openssl/providers/implementations/ciphers/
Dcipher_chacha20.c71 PROV_CHACHA20_CTX *dupctx = NULL; in chacha20_dupctx() local
74 dupctx = OPENSSL_memdup(ctx, sizeof(*dupctx)); in chacha20_dupctx()
75 if (dupctx != NULL && dupctx->base.tlsmac != NULL && dupctx->base.alloced) { in chacha20_dupctx()
76 dupctx->base.tlsmac = OPENSSL_memdup(dupctx->base.tlsmac, in chacha20_dupctx()
77 dupctx->base.tlsmacsize); in chacha20_dupctx()
78 if (dupctx->base.tlsmac == NULL) { in chacha20_dupctx()
79 OPENSSL_free(dupctx); in chacha20_dupctx()
80 dupctx = NULL; in chacha20_dupctx()
84 return dupctx; in chacha20_dupctx()
Dcipher_aes_ccm.c39 PROV_AES_CCM_CTX *dupctx = NULL; in aes_ccm_dupctx() local
43 dupctx = OPENSSL_memdup(provctx, sizeof(*ctx)); in aes_ccm_dupctx()
44 if (dupctx == NULL) in aes_ccm_dupctx()
51 dupctx->base.ccm_ctx.key = &dupctx->ccm.ks.ks; in aes_ccm_dupctx()
53 return dupctx; in aes_ccm_dupctx()
Dcipher_aes_siv.h21 int (*dupctx)(void *src, void *dst); member
/third_party/openssl/crypto/evp/
Devp_local.h149 OSSL_FUNC_keyexch_dupctx_fn *dupctx; member
180 OSSL_FUNC_signature_dupctx_fn *dupctx; member
205 OSSL_FUNC_asym_cipher_dupctx_fn *dupctx; member
226 OSSL_FUNC_kem_dupctx_fn *dupctx; member
Dkdf_lib.c59 if (src == NULL || src->algctx == NULL || src->meth->dupctx == NULL) in EVP_KDF_CTX_dup()
75 dst->algctx = src->meth->dupctx(src->algctx); in EVP_KDF_CTX_dup()
Dkdf_meth.c87 if (kdf->dupctx != NULL) in evp_kdf_from_algorithm()
89 kdf->dupctx = OSSL_FUNC_kdf_dupctx(fns); in evp_kdf_from_algorithm()
Dmac_meth.c88 if (mac->dupctx != NULL) in evp_mac_from_algorithm()
90 mac->dupctx = OSSL_FUNC_mac_dupctx(fns); in evp_mac_from_algorithm()
Dpmeth_lib.c513 if (pctx->op.kex.exchange->dupctx != NULL) in EVP_PKEY_CTX_dup()
515 = pctx->op.kex.exchange->dupctx(pctx->op.kex.algctx); in EVP_PKEY_CTX_dup()
534 if (pctx->op.sig.signature->dupctx != NULL) in EVP_PKEY_CTX_dup()
536 = pctx->op.sig.signature->dupctx(pctx->op.sig.algctx); in EVP_PKEY_CTX_dup()
555 if (pctx->op.ciph.cipher->dupctx != NULL) in EVP_PKEY_CTX_dup()
557 = pctx->op.ciph.cipher->dupctx(pctx->op.ciph.algctx); in EVP_PKEY_CTX_dup()
576 if (pctx->op.encap.kem->dupctx != NULL) in EVP_PKEY_CTX_dup()
578 = pctx->op.encap.kem->dupctx(pctx->op.encap.algctx); in EVP_PKEY_CTX_dup()
Dkem.c316 if (kem->dupctx != NULL) in evp_kem_from_algorithm()
318 kem->dupctx = OSSL_FUNC_kem_dupctx(fns); in evp_kem_from_algorithm()
Ddigest.c546 if (in->digest->dupctx == NULL) { in EVP_MD_CTX_copy_ex()
564 out->algctx = in->digest->dupctx(in->algctx); in EVP_MD_CTX_copy_ex()
1003 if (md->dupctx == NULL) in evp_md_from_algorithm()
1004 md->dupctx = OSSL_FUNC_digest_dupctx(fns); in evp_md_from_algorithm()
Dasymcipher.c382 if (cipher->dupctx != NULL) in evp_asym_cipher_from_algorithm()
384 cipher->dupctx = OSSL_FUNC_asym_cipher_dupctx(fns); in evp_asym_cipher_from_algorithm()
Dexchange.c93 if (exchange->dupctx != NULL) in evp_keyexch_from_algorithm()
95 exchange->dupctx = OSSL_FUNC_keyexch_dupctx(fns); in evp_keyexch_from_algorithm()
/third_party/node/deps/openssl/openssl/crypto/evp/
Devp_local.h149 OSSL_FUNC_keyexch_dupctx_fn *dupctx; member
180 OSSL_FUNC_signature_dupctx_fn *dupctx; member
205 OSSL_FUNC_asym_cipher_dupctx_fn *dupctx; member
226 OSSL_FUNC_kem_dupctx_fn *dupctx; member
Dkdf_lib.c59 if (src == NULL || src->algctx == NULL || src->meth->dupctx == NULL) in EVP_KDF_CTX_dup()
75 dst->algctx = src->meth->dupctx(src->algctx); in EVP_KDF_CTX_dup()
Dkdf_meth.c87 if (kdf->dupctx != NULL) in evp_kdf_from_algorithm()
89 kdf->dupctx = OSSL_FUNC_kdf_dupctx(fns); in evp_kdf_from_algorithm()
Dmac_meth.c88 if (mac->dupctx != NULL) in evp_mac_from_algorithm()
90 mac->dupctx = OSSL_FUNC_mac_dupctx(fns); in evp_mac_from_algorithm()
Dpmeth_lib.c514 if (pctx->op.kex.exchange->dupctx != NULL) in EVP_PKEY_CTX_dup()
516 = pctx->op.kex.exchange->dupctx(pctx->op.kex.algctx); in EVP_PKEY_CTX_dup()
535 if (pctx->op.sig.signature->dupctx != NULL) in EVP_PKEY_CTX_dup()
537 = pctx->op.sig.signature->dupctx(pctx->op.sig.algctx); in EVP_PKEY_CTX_dup()
556 if (pctx->op.ciph.cipher->dupctx != NULL) in EVP_PKEY_CTX_dup()
558 = pctx->op.ciph.cipher->dupctx(pctx->op.ciph.algctx); in EVP_PKEY_CTX_dup()
577 if (pctx->op.encap.kem->dupctx != NULL) in EVP_PKEY_CTX_dup()
579 = pctx->op.encap.kem->dupctx(pctx->op.encap.algctx); in EVP_PKEY_CTX_dup()
Dkem.c316 if (kem->dupctx != NULL) in evp_kem_from_algorithm()
318 kem->dupctx = OSSL_FUNC_kem_dupctx(fns); in evp_kem_from_algorithm()
Ddigest.c546 if (in->digest->dupctx == NULL) { in EVP_MD_CTX_copy_ex()
564 out->algctx = in->digest->dupctx(in->algctx); in EVP_MD_CTX_copy_ex()
1003 if (md->dupctx == NULL) in evp_md_from_algorithm()
1004 md->dupctx = OSSL_FUNC_digest_dupctx(fns); in evp_md_from_algorithm()
Dexchange.c93 if (exchange->dupctx != NULL) in evp_keyexch_from_algorithm()
95 exchange->dupctx = OSSL_FUNC_keyexch_dupctx(fns); in evp_keyexch_from_algorithm()
Dasymcipher.c382 if (cipher->dupctx != NULL) in evp_asym_cipher_from_algorithm()
384 cipher->dupctx = OSSL_FUNC_asym_cipher_dupctx(fns); in evp_asym_cipher_from_algorithm()
Devp_enc.c1419 if (in->cipher->dupctx == NULL) { in EVP_CIPHER_CTX_copy()
1434 out->algctx = in->cipher->dupctx(in->algctx); in EVP_CIPHER_CTX_copy()
1595 if (cipher->dupctx != NULL) in evp_cipher_from_algorithm()
1597 cipher->dupctx = OSSL_FUNC_cipher_dupctx(fns); in evp_cipher_from_algorithm()
/third_party/openssl/providers/implementations/ciphers/
Dcipher_aes_siv.h21 int (*dupctx)(void *src, void *dst); member
/third_party/node/deps/openssl/openssl/include/crypto/
Devp.h209 OSSL_FUNC_mac_dupctx_fn *dupctx; member
231 OSSL_FUNC_kdf_dupctx_fn *dupctx; member
280 OSSL_FUNC_digest_dupctx_fn *dupctx; member
337 OSSL_FUNC_cipher_dupctx_fn *dupctx; member
/third_party/openssl/include/crypto/
Devp.h209 OSSL_FUNC_mac_dupctx_fn *dupctx; member
231 OSSL_FUNC_kdf_dupctx_fn *dupctx; member
280 OSSL_FUNC_digest_dupctx_fn *dupctx; member
337 OSSL_FUNC_cipher_dupctx_fn *dupctx; member

12