Searched refs:dupkey (Results 1 – 8 of 8) sorted by relevance
/openssl/crypto/dh/ |
H A D | dh_backend.c | 141 DH *dupkey = NULL; in ossl_dh_dup() local 147 if ((dupkey = ossl_dh_new_ex(dh->libctx)) == NULL) in ossl_dh_dup() 150 dupkey->length = DH_get_length(dh); in ossl_dh_dup() 152 && !ossl_ffc_params_copy(&dupkey->params, &dh->params)) in ossl_dh_dup() 155 dupkey->flags = dh->flags; in ossl_dh_dup() 159 || !dh_bn_dup_check(&dupkey->pub_key, dh->pub_key))) in ossl_dh_dup() 164 || !dh_bn_dup_check(&dupkey->priv_key, dh->priv_key))) in ossl_dh_dup() 169 &dupkey->ex_data, &dh->ex_data)) in ossl_dh_dup() 173 return dupkey; in ossl_dh_dup() 176 DH_free(dupkey); in ossl_dh_dup()
|
H A D | dh_ameth.c | 545 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()
|
/openssl/crypto/rsa/ |
H A D | rsa_backend.c | 473 RSA *dupkey = NULL; in ossl_rsa_dup() local 487 if (!rsa_bn_dup_check(&dupkey->n, rsa->n)) in ossl_rsa_dup() 489 if (!rsa_bn_dup_check(&dupkey->e, rsa->e)) in ossl_rsa_dup() 496 if (!rsa_bn_dup_check(&dupkey->d, rsa->d)) in ossl_rsa_dup() 512 dupkey->version = rsa->version; in ossl_rsa_dup() 513 dupkey->flags = rsa->flags; in ossl_rsa_dup() 515 dupkey->pss_params = rsa->pss_params; in ossl_rsa_dup() 522 if (dupkey->prime_infos == NULL) in ossl_rsa_dup() 550 if (dupkey->pss->maskHash == NULL) in ossl_rsa_dup() 559 return dupkey; in ossl_rsa_dup() [all …]
|
H A D | rsa_ameth.c | 950 RSA *dupkey = NULL; in rsa_pkey_copy() local 954 dupkey = ossl_rsa_dup(rsa, OSSL_KEYMGMT_SELECT_ALL); in rsa_pkey_copy() 955 if (dupkey == NULL) in rsa_pkey_copy() 959 ret = EVP_PKEY_assign(to, from->type, dupkey); in rsa_pkey_copy() 961 RSA_free(dupkey); in rsa_pkey_copy()
|
/openssl/crypto/dsa/ |
H A D | dsa_backend.c | 84 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()
|
H A D | dsa_ameth.c | 502 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()
|
/openssl/crypto/ec/ |
H A D | ec_ameth.c | 633 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()
|
H A D | ecx_meth.c | 407 ECX_KEY *ecx = from->pkey.ecx, *dupkey = NULL; in ecx_pkey_copy() local 411 dupkey = ossl_ecx_key_dup(ecx, OSSL_KEYMGMT_SELECT_ALL); in ecx_pkey_copy() 412 if (dupkey == NULL) in ecx_pkey_copy() 416 ret = EVP_PKEY_assign(to, from->type, dupkey); in ecx_pkey_copy() 418 ossl_ecx_key_free(dupkey); in ecx_pkey_copy()
|
Completed in 28 milliseconds