Home
last modified time | relevance | path

Searched refs:dupkey (Results 1 – 17 of 17) sorted by relevance

/third_party/node/deps/openssl/openssl/crypto/rsa/
Drsa_backend.c337 RSA *dupkey = NULL; in ossl_rsa_dup() local
346 if ((dupkey = ossl_rsa_new_with_ctx(rsa->libctx)) == NULL) in ossl_rsa_dup()
351 if (!rsa_bn_dup_check(&dupkey->n, rsa->n)) in ossl_rsa_dup()
353 if (!rsa_bn_dup_check(&dupkey->e, rsa->e)) in ossl_rsa_dup()
360 if (!rsa_bn_dup_check(&dupkey->d, rsa->d)) in ossl_rsa_dup()
364 if (!rsa_bn_dup_check(&dupkey->p, rsa->p)) in ossl_rsa_dup()
366 if (!rsa_bn_dup_check(&dupkey->q, rsa->q)) in ossl_rsa_dup()
368 if (!rsa_bn_dup_check(&dupkey->dmp1, rsa->dmp1)) in ossl_rsa_dup()
370 if (!rsa_bn_dup_check(&dupkey->dmq1, rsa->dmq1)) in ossl_rsa_dup()
372 if (!rsa_bn_dup_check(&dupkey->iqmp, rsa->iqmp)) in ossl_rsa_dup()
[all …]
Drsa_ameth.c929 RSA *dupkey = NULL; in rsa_pkey_copy() local
933 dupkey = ossl_rsa_dup(rsa, OSSL_KEYMGMT_SELECT_ALL); in rsa_pkey_copy()
934 if (dupkey == NULL) in rsa_pkey_copy()
938 ret = EVP_PKEY_assign(to, from->type, dupkey); in rsa_pkey_copy()
940 RSA_free(dupkey); in rsa_pkey_copy()
/third_party/openssl/crypto/rsa/
Drsa_backend.c349 RSA *dupkey = NULL; in ossl_rsa_dup() local
358 if ((dupkey = ossl_rsa_new_with_ctx(rsa->libctx)) == NULL) in ossl_rsa_dup()
363 if (!rsa_bn_dup_check(&dupkey->n, rsa->n)) in ossl_rsa_dup()
365 if (!rsa_bn_dup_check(&dupkey->e, rsa->e)) in ossl_rsa_dup()
372 if (!rsa_bn_dup_check(&dupkey->d, rsa->d)) in ossl_rsa_dup()
376 if (!rsa_bn_dup_check(&dupkey->p, rsa->p)) in ossl_rsa_dup()
378 if (!rsa_bn_dup_check(&dupkey->q, rsa->q)) in ossl_rsa_dup()
380 if (!rsa_bn_dup_check(&dupkey->dmp1, rsa->dmp1)) in ossl_rsa_dup()
382 if (!rsa_bn_dup_check(&dupkey->dmq1, rsa->dmq1)) in ossl_rsa_dup()
384 if (!rsa_bn_dup_check(&dupkey->iqmp, rsa->iqmp)) in ossl_rsa_dup()
[all …]
Drsa_ameth.c894 RSA *dupkey = NULL; in rsa_pkey_copy() local
898 dupkey = ossl_rsa_dup(rsa, OSSL_KEYMGMT_SELECT_ALL); in rsa_pkey_copy()
899 if (dupkey == NULL) in rsa_pkey_copy()
903 ret = EVP_PKEY_assign(to, from->type, dupkey); in rsa_pkey_copy()
905 RSA_free(dupkey); in rsa_pkey_copy()
/third_party/openssl/crypto/dh/
Ddh_backend.c147 DH *dupkey = NULL; in ossl_dh_dup() local
153 if ((dupkey = ossl_dh_new_ex(dh->libctx)) == NULL) in ossl_dh_dup()
156 dupkey->length = DH_get_length(dh); in ossl_dh_dup()
158 && !ossl_ffc_params_copy(&dupkey->params, &dh->params)) in ossl_dh_dup()
161 dupkey->flags = dh->flags; in ossl_dh_dup()
165 || !dh_bn_dup_check(&dupkey->pub_key, dh->pub_key))) in ossl_dh_dup()
170 || !dh_bn_dup_check(&dupkey->priv_key, dh->priv_key))) in ossl_dh_dup()
175 &dupkey->ex_data, &dh->ex_data)) in ossl_dh_dup()
179 return dupkey; in ossl_dh_dup()
182 DH_free(dupkey); in ossl_dh_dup()
Ddh_ameth.c545 DH *dupkey = NULL; in dh_pkey_copy() local
549 dupkey = ossl_dh_dup(dh, OSSL_KEYMGMT_SELECT_ALL); in dh_pkey_copy()
550 if (dupkey == NULL) in dh_pkey_copy()
554 ret = EVP_PKEY_assign(to, from->type, dupkey); in dh_pkey_copy()
556 DH_free(dupkey); in dh_pkey_copy()
/third_party/node/deps/openssl/openssl/crypto/dh/
Ddh_backend.c147 DH *dupkey = NULL; in ossl_dh_dup() local
153 if ((dupkey = ossl_dh_new_ex(dh->libctx)) == NULL) in ossl_dh_dup()
156 dupkey->length = DH_get_length(dh); in ossl_dh_dup()
158 && !ossl_ffc_params_copy(&dupkey->params, &dh->params)) in ossl_dh_dup()
161 dupkey->flags = dh->flags; in ossl_dh_dup()
165 || !dh_bn_dup_check(&dupkey->pub_key, dh->pub_key))) in ossl_dh_dup()
170 || !dh_bn_dup_check(&dupkey->priv_key, dh->priv_key))) in ossl_dh_dup()
175 &dupkey->ex_data, &dh->ex_data)) in ossl_dh_dup()
179 return dupkey; in ossl_dh_dup()
182 DH_free(dupkey); in ossl_dh_dup()
Ddh_ameth.c545 DH *dupkey = NULL; in dh_pkey_copy() local
549 dupkey = ossl_dh_dup(dh, OSSL_KEYMGMT_SELECT_ALL); in dh_pkey_copy()
550 if (dupkey == NULL) in dh_pkey_copy()
554 ret = EVP_PKEY_assign(to, from->type, dupkey); in dh_pkey_copy()
556 DH_free(dupkey); in dh_pkey_copy()
/third_party/node/deps/openssl/openssl/crypto/dsa/
Ddsa_backend.c84 DSA *dupkey = NULL; in ossl_dsa_dup() local
90 if ((dupkey = ossl_dsa_new(dsa->libctx)) == NULL) in ossl_dsa_dup()
94 && !ossl_ffc_params_copy(&dupkey->params, &dsa->params)) in ossl_dsa_dup()
97 dupkey->flags = dsa->flags; in ossl_dsa_dup()
101 || !dsa_bn_dup_check(&dupkey->pub_key, dsa->pub_key))) in ossl_dsa_dup()
106 || !dsa_bn_dup_check(&dupkey->priv_key, dsa->priv_key))) in ossl_dsa_dup()
111 &dupkey->ex_data, &dsa->ex_data)) in ossl_dsa_dup()
115 return dupkey; in ossl_dsa_dup()
118 DSA_free(dupkey); in ossl_dsa_dup()
Ddsa_ameth.c502 DSA *dupkey = NULL; in dsa_pkey_copy() local
506 dupkey = ossl_dsa_dup(dsa, OSSL_KEYMGMT_SELECT_ALL); in dsa_pkey_copy()
507 if (dupkey == NULL) in dsa_pkey_copy()
511 ret = EVP_PKEY_assign_DSA(to, dupkey); in dsa_pkey_copy()
513 DSA_free(dupkey); in dsa_pkey_copy()
/third_party/openssl/crypto/dsa/
Ddsa_backend.c84 DSA *dupkey = NULL; in ossl_dsa_dup() local
90 if ((dupkey = ossl_dsa_new(dsa->libctx)) == NULL) in ossl_dsa_dup()
94 && !ossl_ffc_params_copy(&dupkey->params, &dsa->params)) in ossl_dsa_dup()
97 dupkey->flags = dsa->flags; in ossl_dsa_dup()
101 || !dsa_bn_dup_check(&dupkey->pub_key, dsa->pub_key))) in ossl_dsa_dup()
106 || !dsa_bn_dup_check(&dupkey->priv_key, dsa->priv_key))) in ossl_dsa_dup()
111 &dupkey->ex_data, &dsa->ex_data)) in ossl_dsa_dup()
115 return dupkey; in ossl_dsa_dup()
118 DSA_free(dupkey); in ossl_dsa_dup()
Ddsa_ameth.c502 DSA *dupkey = NULL; in dsa_pkey_copy() local
506 dupkey = ossl_dsa_dup(dsa, OSSL_KEYMGMT_SELECT_ALL); in dsa_pkey_copy()
507 if (dupkey == NULL) in dsa_pkey_copy()
511 ret = EVP_PKEY_assign_DSA(to, dupkey); in dsa_pkey_copy()
513 DSA_free(dupkey); in dsa_pkey_copy()
/third_party/openssl/crypto/ec/
Dec_ameth.c633 EC_KEY *dupkey = NULL; in ec_pkey_copy() local
637 dupkey = EC_KEY_dup(eckey); in ec_pkey_copy()
638 if (dupkey == NULL) in ec_pkey_copy()
645 ret = EVP_PKEY_assign_EC_KEY(to, dupkey); in ec_pkey_copy()
647 EC_KEY_free(dupkey); in ec_pkey_copy()
Decx_meth.c409 ECX_KEY *ecx = from->pkey.ecx, *dupkey = NULL; in ecx_pkey_copy() local
413 dupkey = ossl_ecx_key_dup(ecx, OSSL_KEYMGMT_SELECT_ALL); in ecx_pkey_copy()
414 if (dupkey == NULL) in ecx_pkey_copy()
418 ret = EVP_PKEY_assign(to, from->type, dupkey); in ecx_pkey_copy()
420 ossl_ecx_key_free(dupkey); in ecx_pkey_copy()
/third_party/node/deps/openssl/openssl/crypto/ec/
Dec_ameth.c633 EC_KEY *dupkey = NULL; in ec_pkey_copy() local
637 dupkey = EC_KEY_dup(eckey); in ec_pkey_copy()
638 if (dupkey == NULL) in ec_pkey_copy()
645 ret = EVP_PKEY_assign_EC_KEY(to, dupkey); in ec_pkey_copy()
647 EC_KEY_free(dupkey); in ec_pkey_copy()
Decx_meth.c409 ECX_KEY *ecx = from->pkey.ecx, *dupkey = NULL; in ecx_pkey_copy() local
413 dupkey = ossl_ecx_key_dup(ecx, OSSL_KEYMGMT_SELECT_ALL); in ecx_pkey_copy()
414 if (dupkey == NULL) in ecx_pkey_copy()
418 ret = EVP_PKEY_assign(to, from->type, dupkey); in ecx_pkey_copy()
420 ossl_ecx_key_free(dupkey); in ecx_pkey_copy()
/third_party/mesa3d/src/broadcom/vulkan/
Dv3dv_meta_copy.c1934 uint8_t *dupkey = malloc(V3DV_META_TEXEL_BUFFER_COPY_CACHE_KEY_SIZE); in get_copy_texel_buffer_pipeline() local
1935 memcpy(dupkey, key, V3DV_META_TEXEL_BUFFER_COPY_CACHE_KEY_SIZE); in get_copy_texel_buffer_pipeline()
1937 dupkey, *pipeline); in get_copy_texel_buffer_pipeline()