Symbol: OPENSSL_memdup
crypto/openssl/apps/s_server.c
3948
sess->id = OPENSSL_memdup(SSL_SESSION_get_id(session, NULL), sess->idlen);
crypto/openssl/crypto/cms/cms_dh.c
150
dukm = OPENSSL_memdup(ASN1_STRING_get0_data(ukm), dukmlen);
crypto/openssl/crypto/cms/cms_dh.c
302
dukm = OPENSSL_memdup(ASN1_STRING_get0_data(ukm), dukmlen);
crypto/openssl/crypto/cms/cms_rsa.c
103
unsigned char *dup_label = OPENSSL_memdup(label, labellen);
crypto/openssl/crypto/ct/ct_oct.c
104
sct->log_id = OPENSSL_memdup(p, CT_V1_HASHLEN);
crypto/openssl/crypto/ct/ct_oct.c
118
sct->ext = OPENSSL_memdup(p, len2);
crypto/openssl/crypto/ct/ct_oct.c
135
sct->sct = OPENSSL_memdup(p, len);
crypto/openssl/crypto/ct/ct_sct.c
105
sct->log_id = OPENSSL_memdup(log_id, log_id_len);
crypto/openssl/crypto/ct/ct_sct.c
154
sct->ext = OPENSSL_memdup(ext, ext_len);
crypto/openssl/crypto/ct/ct_sct.c
178
sct->sig = OPENSSL_memdup(sig, sig_len);
crypto/openssl/crypto/dh/dh_pmeth.c
105
dctx->kdf_ukm = OPENSSL_memdup(sctx->kdf_ukm, sctx->kdf_ukmlen);
crypto/openssl/crypto/ec/ec_pmeth.c
83
dctx->kdf_ukm = OPENSSL_memdup(sctx->kdf_ukm, sctx->kdf_ukmlen);
crypto/openssl/crypto/ec/ecx_meth.c
235
*ppt = OPENSSL_memdup(pkey->pkey.ecx->pubkey, KEYLEN(pkey));
crypto/openssl/crypto/ec/ecx_meth.c
41
penc = OPENSSL_memdup(ecxkey->pubkey, KEYLEN(pkey));
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
525
dst->cipher_data = OPENSSL_memdup(actx, sizeof(*actx) + Poly1305_ctx_size());
crypto/openssl/crypto/evp/pmeth_lib.c
1504
ctx->cached_parameters.dist_id = OPENSSL_memdup(data, data_len);
crypto/openssl/crypto/ffc/ffc_params.c
193
dst->seed = OPENSSL_memdup(src->seed, src->seedlen);
crypto/openssl/crypto/ffc/ffc_params.c
92
params->seed = OPENSSL_memdup(seed, seedlen);
crypto/openssl/crypto/hmac/hmac_s390x.c
307
dctx->plat.s390x.buf = OPENSSL_memdup(sctx->plat.s390x.buf,
crypto/openssl/crypto/hpke/hpke.c
911
ctx->psk = OPENSSL_memdup(psk, psklen);
crypto/openssl/crypto/hpke/hpke.c
942
ctx->ikme = OPENSSL_memdup(ikme, ikmelen);
crypto/openssl/crypto/hpke/hpke_util.c
484
instrcp = OPENSSL_memdup(suitestr, inplen + 1);
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
692
key->pub_encoding = OPENSSL_memdup(in, in_len);
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
809
&& (key->priv_encoding = OPENSSL_memdup(in, in_len)) == NULL)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
206
if ((ret->pub_encoding = OPENSSL_memdup(src->pub_encoding,
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
221
if ((ret->priv_encoding = OPENSSL_memdup(src->priv_encoding,
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
227
&& (ret->seed = OPENSSL_memdup(src->seed,
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
52
&& (key->priv_encoding = OPENSSL_memdup(sk, sk_len)) == NULL)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
55
&& (key->seed = OPENSSL_memdup(seed, seed_len)) == NULL)
crypto/openssl/crypto/ml_kem/ml_kem.c
1973
|| (ret = OPENSSL_memdup(key, sizeof(*key))) == NULL)
crypto/openssl/crypto/ml_kem/ml_kem.c
1989
ok = add_storage(OPENSSL_memdup(key->t, key->vinfo->puballoc), 0, ret);
crypto/openssl/crypto/ml_kem/ml_kem.c
1994
ok = add_storage(OPENSSL_memdup(key->t, key->vinfo->prvalloc), 1, ret);
crypto/openssl/crypto/objects/obj_lib.c
36
if (o->length > 0 && (r->data = OPENSSL_memdup(o->data, o->length)) == NULL)
crypto/openssl/crypto/passphrase.c
43
data->_.expl_passphrase.passphrase_copy = passphrase_len != 0 ? OPENSSL_memdup(passphrase, passphrase_len)
crypto/openssl/crypto/property/property.c
563
alg = OPENSSL_memdup(alg, sizeof(ALGORITHM));
crypto/openssl/crypto/rsa/rsa_acvp_test_params.c
49
d->data = OPENSSL_memdup(p->data, p->data_size);
crypto/openssl/crypto/rsa/rsa_pmeth.c
106
dctx->oaep_label = OPENSSL_memdup(sctx->oaep_label, sctx->oaep_labellen);
crypto/openssl/crypto/ui/ui_util.c
74
*pptr = OPENSSL_memdup(*pptr, sizeof(struct pem_password_cb_data));
crypto/openssl/crypto/x509/x_pubkey.c
196
tmpbuf = OPENSSL_memdup(in_saved, publen);
crypto/openssl/include/internal/packet.h
463
*data = OPENSSL_memdup(pkt->curr, length);
crypto/openssl/include/openssl/buffer.h
35
#define BUF_memdup(data, size) OPENSSL_memdup(data, size)
crypto/openssl/providers/common/provider_util.c
368
if ((*dest = OPENSSL_memdup(src, src_len)) == NULL)
crypto/openssl/providers/implementations/asymciphers/rsa_enc.c
363
&& (dstctx->oaep_label = OPENSSL_memdup(dstctx->oaep_label, dstctx->oaep_labellen)) == NULL) {
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha.c
345
return OPENSSL_memdup(ctx, sizeof(*ctx));
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha.c
382
return OPENSSL_memdup(ctx, sizeof(*ctx));
crypto/openssl/providers/implementations/ciphers/cipher_aes_ccm.c
46
dupctx = OPENSSL_memdup(provctx, sizeof(*ctx));
crypto/openssl/providers/implementations/ciphers/cipher_aes_gcm.c
48
dctx = OPENSSL_memdup(ctx, sizeof(*ctx));
crypto/openssl/providers/implementations/ciphers/cipher_aes_gcm_siv.c
67
ret = OPENSSL_memdup(in, sizeof(*in));
crypto/openssl/providers/implementations/ciphers/cipher_aes_gcm_siv.c
75
if ((ret->aad = OPENSSL_memdup(in->aad, UP16(ret->aad_len))) == NULL)
crypto/openssl/providers/implementations/ciphers/cipher_aes_wrp.c
78
dctx = OPENSSL_memdup(ctx, sizeof(*ctx));
crypto/openssl/providers/implementations/ciphers/cipher_aes_wrp.c
81
dctx->base.tlsmac = OPENSSL_memdup(dctx->base.tlsmac,
crypto/openssl/providers/implementations/ciphers/cipher_aria_ccm.c
39
dctx = OPENSSL_memdup(ctx, sizeof(*ctx));
crypto/openssl/providers/implementations/ciphers/cipher_aria_gcm.c
38
dctx = OPENSSL_memdup(ctx, sizeof(*ctx));
crypto/openssl/providers/implementations/ciphers/cipher_chacha20.c
74
dupctx = OPENSSL_memdup(ctx, sizeof(*dupctx));
crypto/openssl/providers/implementations/ciphers/cipher_chacha20.c
76
dupctx->base.tlsmac = OPENSSL_memdup(dupctx->base.tlsmac,
crypto/openssl/providers/implementations/ciphers/cipher_chacha20_poly1305.c
69
dctx = OPENSSL_memdup(ctx, sizeof(*ctx));
crypto/openssl/providers/implementations/ciphers/cipher_chacha20_poly1305.c
71
dctx->base.tlsmac = OPENSSL_memdup(dctx->base.tlsmac,
crypto/openssl/providers/implementations/ciphers/cipher_rc4_hmac_md5.c
81
return OPENSSL_memdup(ctx, sizeof(*ctx));
crypto/openssl/providers/implementations/ciphers/cipher_sm4_ccm.c
39
dctx = OPENSSL_memdup(ctx, sizeof(*ctx));
crypto/openssl/providers/implementations/ciphers/cipher_sm4_gcm.c
40
dctx = OPENSSL_memdup(ctx, sizeof(*ctx));
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
1032
key_blob = OPENSSL_memdup(ossl_slh_dsa_key_get_pub(key), key_len);
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
1053
&& ((*pder = OPENSSL_memdup(ossl_slh_dsa_key_get_priv(key), len)) == NULL))
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
792
keyblob = OPENSSL_memdup(ecxkey->pubkey, ecxkey->keylen);
crypto/openssl/providers/implementations/encode_decode/ml_dsa_codecs.c
540
&& (*out = OPENSSL_memdup(pk, params->pk_len)) == NULL)
crypto/openssl/providers/implementations/exchange/dh_exch.c
322
dstctx->kdf_ukm = OPENSSL_memdup(srcctx->kdf_ukm,
crypto/openssl/providers/implementations/exchange/ecdh_exch.c
227
dstctx->kdf_ukm = OPENSSL_memdup(srcctx->kdf_ukm,
crypto/openssl/providers/implementations/keymgmt/dh_kmgmt.c
517
gctx->seed = OPENSSL_memdup(seed, seedlen);
crypto/openssl/providers/implementations/keymgmt/dsa_kmgmt.c
455
gctx->seed = OPENSSL_memdup(seed, seedlen);
crypto/openssl/providers/implementations/keymgmt/ec_kmgmt.c
1061
val = OPENSSL_memdup(p->data, p->data_size); \
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
733
|| (ret = OPENSSL_memdup(key, sizeof(*ret))) == NULL)
crypto/openssl/providers/implementations/signature/dsa_sig.c
637
if ((dstctx = OPENSSL_memdup(srcctx, sizeof(*srcctx))) == NULL)
crypto/openssl/providers/implementations/signature/dsa_sig.c
661
&& ((dstctx->sig = OPENSSL_memdup(srcctx->sig, srcctx->siglen)) == NULL))
crypto/openssl/providers/implementations/signature/ecdsa_sig.c
637
|| (dstctx = OPENSSL_memdup(srcctx, sizeof(*srcctx))) == NULL)
crypto/openssl/providers/implementations/signature/ecdsa_sig.c
662
&& (dstctx->sig = OPENSSL_memdup(srcctx->sig, srcctx->siglen)) == NULL)
crypto/openssl/providers/implementations/signature/ml_dsa_sig.c
95
return OPENSSL_memdup(srcctx, sizeof(*srcctx));
crypto/openssl/providers/implementations/signature/rsa_sig.c
1374
dstctx->sig = OPENSSL_memdup(srcctx->sig, srcctx->siglen);
crypto/openssl/providers/implementations/signature/slh_dsa_sig.c
102
ret = OPENSSL_memdup(src, sizeof(*src));
crypto/openssl/providers/implementations/skeymgmt/generic.c
55
if ((generic->data = OPENSSL_memdup(raw_bytes->data, raw_bytes->data_size)) == NULL)
crypto/openssl/ssl/quic/quic_channel.c
2930
if ((buf = OPENSSL_memdup(retry_token, retry_token_len)) == NULL)
crypto/openssl/ssl/quic/quic_channel.c
3114
dst->reason = r = OPENSSL_memdup(src->reason, l + 1);
crypto/openssl/ssl/quic/quic_txp.c
3176
reason = OPENSSL_memdup(f->reason, reason_len);
crypto/openssl/ssl/record/rec_layer_d1.c
104
rdata->data = rdata->allocdata = OPENSSL_memdup(rec->data, rec->length);
crypto/openssl/ssl/s3_lib.c
4971
c->ctype = OPENSSL_memdup(p, len);
crypto/openssl/ssl/ssl_cert.c
154
rpk->serverinfo = OPENSSL_memdup(cpk->serverinfo, cpk->serverinfo_length);
crypto/openssl/ssl/ssl_cert.c
194
ret->ctype = OPENSSL_memdup(cert->ctype, cert->ctype_len);
crypto/openssl/ssl/ssl_cert_comp.c
86
return OSSL_COMP_CERT_new(OPENSSL_memdup(data, len), len, orig_len, alg);
crypto/openssl/ssl/ssl_lib.c
3728
alpn = OPENSSL_memdup(protos, protos_len);
crypto/openssl/ssl/ssl_lib.c
3762
alpn = OPENSSL_memdup(protos, protos_len);
crypto/openssl/ssl/ssl_lib.c
8233
if (val != NULL && (tmp = OPENSSL_memdup(val, len)) == NULL)
crypto/openssl/ssl/ssl_lib.c
832
s->ext.ecpointformats = OPENSSL_memdup(ctx->ext.ecpointformats,
crypto/openssl/ssl/ssl_lib.c
846
s->ext.supportedgroups = OPENSSL_memdup(ctx->ext.supportedgroups,
crypto/openssl/ssl/ssl_lib.c
861
s->ext.keyshares = OPENSSL_memdup(ctx->ext.keyshares,
crypto/openssl/ssl/ssl_lib.c
876
s->ext.tuples = OPENSSL_memdup(ctx->ext.tuples,
crypto/openssl/ssl/ssl_lib.c
937
s->client_cert_type = OPENSSL_memdup(ctx->client_cert_type,
crypto/openssl/ssl/ssl_lib.c
944
s->server_cert_type = OPENSSL_memdup(ctx->server_cert_type,
crypto/openssl/ssl/ssl_sess.c
1085
s->ext.alpn_selected = OPENSSL_memdup(alpn, len);
crypto/openssl/ssl/ssl_sess.c
1437
ss->ticket_appdata = OPENSSL_memdup(data, len);
crypto/openssl/ssl/ssl_sess.c
233
dest->ext.tick = OPENSSL_memdup(src->ext.tick, src->ext.ticklen);
crypto/openssl/ssl/ssl_sess.c
242
dest->ext.alpn_selected = OPENSSL_memdup(src->ext.alpn_selected,
crypto/openssl/ssl/ssl_sess.c
257
dest->ticket_appdata = OPENSSL_memdup(src->ticket_appdata, src->ticket_appdata_len);
crypto/openssl/ssl/statem/extensions_clnt.c
1746
s->session->ext.alpn_selected = OPENSSL_memdup(s->s3.alpn_selected, s->s3.alpn_selected_len);
crypto/openssl/ssl/statem/extensions_clnt.c
896
s->psksession_id = OPENSSL_memdup(id, idlen);
crypto/openssl/ssl/statem/extensions_cust.c
289
methdst->add_arg = OPENSSL_memdup(methsrc->add_arg,
crypto/openssl/ssl/statem/extensions_cust.c
291
methdst->parse_arg = OPENSSL_memdup(methsrc->parse_arg,
crypto/openssl/ssl/statem/extensions_cust.c
307
dst->meths = OPENSSL_memdup(src->meths,
crypto/openssl/ssl/statem/statem_clnt.c
3068
tmppsk = OPENSSL_memdup(psk, psklen);
crypto/openssl/ssl/statem/statem_srvr.c
2245
s->s3.alpn_selected = OPENSSL_memdup(selected, selected_len);
crypto/openssl/ssl/statem/statem_srvr.c
2277
s->session->ext.alpn_selected = OPENSSL_memdup(selected,
crypto/openssl/ssl/statem/statem_srvr.c
2976
s->s3.tmp.psk = OPENSSL_memdup(psk, psklen);
crypto/openssl/ssl/statem/statem_srvr.c
4283
s->session->ext.alpn_selected = OPENSSL_memdup(s->s3.alpn_selected, s->s3.alpn_selected_len);
crypto/openssl/test/evp_test.c
1336
if ((tls_aad = OPENSSL_memdup(expected->aad[0],
crypto/openssl/test/helpers/ssltestlib.c
557
duppkt->data = OPENSSL_memdup(thispkt->data, thispkt->len);
crypto/openssl/test/ml_dsa_test.c
269
if (!TEST_ptr(pub = OPENSSL_memdup(tst->pub, tst->pub_len)))
crypto/openssl/test/ml_dsa_test.c
528
uint8_t *priv = OPENSSL_memdup(td->priv, td->priv_len);
crypto/openssl/test/quic_multistream_test.c
5022
*hdrout = OPENSSL_memdup(hdrin, sizeof(QUIC_PKT_HDR));
crypto/openssl/test/sslapitest.c
1876
if (!TEST_ptr(copy = OPENSSL_memdup(orespder, sizeof(orespder))))
crypto/openssl/test/sslcorrupttest.c
44
if (!TEST_ptr(copy = OPENSSL_memdup(in, inl)))
crypto/openssl/test/tls-provider.c
1659
keyblob = OPENSSL_memdup(xorxkey->pubkey, retlen = XOR_KEY_SIZE);