Searched refs:dupctx (Results 1 – 19 of 19) 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() local46 dupctx = OPENSSL_memdup(provctx, sizeof(*ctx)); in aes_ccm_dupctx()47 if (dupctx == NULL) in aes_ccm_dupctx()54 dupctx->base.ccm_ctx.key = &dupctx->ccm.ks.ks; in aes_ccm_dupctx()56 return dupctx; in aes_ccm_dupctx()
21 int (*dupctx)(void *src, void *dst); member
70 if (!in->hw->dupctx(in, ret)) { in siv_dupctx()
445 EVP_MD_CTX *cur, *ctx = NULL, *dupctx = NULL; in do_shake_squeeze_dup_test() local465 if (dupctx == NULL && i >= dupoffset) { in do_shake_squeeze_dup_test()466 if (!TEST_ptr(dupctx = EVP_MD_CTX_dup(ctx))) in do_shake_squeeze_dup_test()468 cur = dupctx; in do_shake_squeeze_dup_test()477 EVP_MD_CTX_free(dupctx); in do_shake_squeeze_dup_test()
153 OSSL_FUNC_keyexch_dupctx_fn *dupctx; member189 OSSL_FUNC_signature_dupctx_fn *dupctx; member216 OSSL_FUNC_asym_cipher_dupctx_fn *dupctx; member236 OSSL_FUNC_kem_dupctx_fn *dupctx; member
59 if (src == NULL || src->algctx == NULL || src->meth->dupctx == NULL) in EVP_KDF_CTX_dup()73 dst->algctx = src->meth->dupctx(src->algctx); in EVP_KDF_CTX_dup()
85 if (mac->dupctx != NULL) in evp_mac_from_algorithm()87 mac->dupctx = OSSL_FUNC_mac_dupctx(fns); in evp_mac_from_algorithm()
86 if (kdf->dupctx != NULL) in evp_kdf_from_algorithm()88 kdf->dupctx = OSSL_FUNC_kdf_dupctx(fns); in evp_kdf_from_algorithm()
488 if (pctx->op.kex.exchange->dupctx != NULL) in EVP_PKEY_CTX_dup()490 = pctx->op.kex.exchange->dupctx(pctx->op.kex.algctx); in EVP_PKEY_CTX_dup()509 if (pctx->op.sig.signature->dupctx != NULL) in EVP_PKEY_CTX_dup()511 = pctx->op.sig.signature->dupctx(pctx->op.sig.algctx); in EVP_PKEY_CTX_dup()530 if (pctx->op.ciph.cipher->dupctx != NULL) in EVP_PKEY_CTX_dup()532 = pctx->op.ciph.cipher->dupctx(pctx->op.ciph.algctx); in EVP_PKEY_CTX_dup()551 if (pctx->op.encap.kem->dupctx != NULL) in EVP_PKEY_CTX_dup()553 = pctx->op.encap.kem->dupctx(pctx->op.encap.algctx); in EVP_PKEY_CTX_dup()
360 if (kem->dupctx != NULL) in evp_kem_from_algorithm()362 kem->dupctx = OSSL_FUNC_kem_dupctx(fns); in evp_kem_from_algorithm()
395 if (cipher->dupctx != NULL) in evp_asym_cipher_from_algorithm()397 cipher->dupctx = OSSL_FUNC_asym_cipher_dupctx(fns); in evp_asym_cipher_from_algorithm()
88 if (exchange->dupctx != NULL) in evp_keyexch_from_algorithm()90 exchange->dupctx = OSSL_FUNC_keyexch_dupctx(fns); in evp_keyexch_from_algorithm()
615 if (in->digest->dupctx == NULL) { in EVP_MD_CTX_copy_ex()644 out->algctx = in->digest->dupctx(in->algctx); in EVP_MD_CTX_copy_ex()1089 if (md->dupctx == NULL) in evp_md_from_algorithm()1090 md->dupctx = OSSL_FUNC_digest_dupctx(fns); in evp_md_from_algorithm()
68 dst->algctx = src->meth->dupctx(src->algctx); in EVP_MAC_CTX_dup()
1467 if (in->cipher->dupctx == NULL) { in EVP_CIPHER_CTX_copy()1482 out->algctx = in->cipher->dupctx(in->algctx); in EVP_CIPHER_CTX_copy()1638 if (cipher->dupctx != NULL) in evp_cipher_from_algorithm()1640 cipher->dupctx = OSSL_FUNC_cipher_dupctx(fns); in evp_cipher_from_algorithm()
203 if (signature->dupctx != NULL) in evp_signature_from_algorithm()205 signature->dupctx = OSSL_FUNC_signature_dupctx(fns); in evp_signature_from_algorithm()
218 OSSL_FUNC_mac_dupctx_fn *dupctx; member239 OSSL_FUNC_kdf_dupctx_fn *dupctx; member289 OSSL_FUNC_digest_dupctx_fn *dupctx; member345 OSSL_FUNC_cipher_dupctx_fn *dupctx; member
121 This function is optional, and dupctx will be used if there is no EVP_MD_CTX_copy_ex
Completed in 62 milliseconds