Searched refs:dupctx (Results 1 – 17 of 17) sorted by relevance
71 PROV_CHACHA20_CTX *dupctx = NULL; in chacha20_dupctx() local74 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()
39 PROV_AES_CCM_CTX *dupctx = NULL; in aes_ccm_dupctx() local43 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()
21 int (*dupctx)(void *src, void *dst); member
72 if (!in->hw->dupctx(in, ret)) { in siv_dupctx()
149 OSSL_FUNC_keyexch_dupctx_fn *dupctx; member180 OSSL_FUNC_signature_dupctx_fn *dupctx; member205 OSSL_FUNC_asym_cipher_dupctx_fn *dupctx; member226 OSSL_FUNC_kem_dupctx_fn *dupctx; member
59 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()
87 if (kdf->dupctx != NULL) in evp_kdf_from_algorithm()89 kdf->dupctx = OSSL_FUNC_kdf_dupctx(fns); in evp_kdf_from_algorithm()
88 if (mac->dupctx != NULL) in evp_mac_from_algorithm()90 mac->dupctx = OSSL_FUNC_mac_dupctx(fns); in evp_mac_from_algorithm()
316 if (kem->dupctx != NULL) in evp_kem_from_algorithm()318 kem->dupctx = OSSL_FUNC_kem_dupctx(fns); in evp_kem_from_algorithm()
514 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()
546 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()
382 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()
93 if (exchange->dupctx != NULL) in evp_keyexch_from_algorithm()95 exchange->dupctx = OSSL_FUNC_keyexch_dupctx(fns); in evp_keyexch_from_algorithm()
1419 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()
168 if (signature->dupctx != NULL) in evp_signature_from_algorithm() 170 signature->dupctx = OSSL_FUNC_signature_dupctx(fns); in evp_signature_from_algorithm() 268 * apply to the "md_params" functions. The dupctx function is optional. in evp_signature_from_algorithm()
71 dst->algctx = src->meth->dupctx(src->algctx); in EVP_MAC_CTX_dup()
209 OSSL_FUNC_mac_dupctx_fn *dupctx; member231 OSSL_FUNC_kdf_dupctx_fn *dupctx; member280 OSSL_FUNC_digest_dupctx_fn *dupctx; member337 OSSL_FUNC_cipher_dupctx_fn *dupctx; member