Home
last modified time | relevance | path

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

/openssl/providers/implementations/ciphers/
H A 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()
H A Dcipher_aes_ccm.c39 PROV_AES_CCM_CTX *dupctx = NULL; in aes_ccm_dupctx() local
46 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()
H A Dcipher_aes_siv.h21 int (*dupctx)(void *src, void *dst); member
H A Dcipher_aes_siv.c70 if (!in->hw->dupctx(in, ret)) { in siv_dupctx()
/openssl/test/
H A Devp_xof_test.c445 EVP_MD_CTX *cur, *ctx = NULL, *dupctx = NULL; in do_shake_squeeze_dup_test() local
465 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()
/openssl/crypto/evp/
H A Devp_local.h153 OSSL_FUNC_keyexch_dupctx_fn *dupctx; member
189 OSSL_FUNC_signature_dupctx_fn *dupctx; member
216 OSSL_FUNC_asym_cipher_dupctx_fn *dupctx; member
236 OSSL_FUNC_kem_dupctx_fn *dupctx; member
H A Dkdf_lib.c59 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()
H A Dmac_meth.c85 if (mac->dupctx != NULL) in evp_mac_from_algorithm()
87 mac->dupctx = OSSL_FUNC_mac_dupctx(fns); in evp_mac_from_algorithm()
H A Dkdf_meth.c86 if (kdf->dupctx != NULL) in evp_kdf_from_algorithm()
88 kdf->dupctx = OSSL_FUNC_kdf_dupctx(fns); in evp_kdf_from_algorithm()
H A Dpmeth_lib.c488 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()
H A Dkem.c360 if (kem->dupctx != NULL) in evp_kem_from_algorithm()
362 kem->dupctx = OSSL_FUNC_kem_dupctx(fns); in evp_kem_from_algorithm()
H A Dasymcipher.c395 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()
H A Dexchange.c88 if (exchange->dupctx != NULL) in evp_keyexch_from_algorithm()
90 exchange->dupctx = OSSL_FUNC_keyexch_dupctx(fns); in evp_keyexch_from_algorithm()
H A Ddigest.c615 if (in->digest->dupctx == NULL) { in EVP_MD_CTX_copy_ex()
633 out->algctx = in->digest->dupctx(in->algctx); in EVP_MD_CTX_copy_ex()
1077 if (md->dupctx == NULL) in evp_md_from_algorithm()
1078 md->dupctx = OSSL_FUNC_digest_dupctx(fns); in evp_md_from_algorithm()
H A Dmac_lib.c68 dst->algctx = src->meth->dupctx(src->algctx); in EVP_MAC_CTX_dup()
H A Devp_enc.c1467 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()
H A Dsignature.c203 if (signature->dupctx != NULL) in evp_signature_from_algorithm()
205 signature->dupctx = OSSL_FUNC_signature_dupctx(fns); in evp_signature_from_algorithm()
/openssl/include/crypto/
H A Devp.h218 OSSL_FUNC_mac_dupctx_fn *dupctx; member
239 OSSL_FUNC_kdf_dupctx_fn *dupctx; member
288 OSSL_FUNC_digest_dupctx_fn *dupctx; member
344 OSSL_FUNC_cipher_dupctx_fn *dupctx; member

Completed in 58 milliseconds