Lines Matching refs:dupkey
349 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()
388 dupkey->version = rsa->version; in ossl_rsa_dup()
389 dupkey->flags = rsa->flags; in ossl_rsa_dup()
391 dupkey->pss_params = rsa->pss_params; in ossl_rsa_dup()
397 dupkey->prime_infos = sk_RSA_PRIME_INFO_new_reserve(NULL, pnum); in ossl_rsa_dup()
398 if (dupkey->prime_infos == NULL) in ossl_rsa_dup()
409 (void)sk_RSA_PRIME_INFO_push(dupkey->prime_infos, duppinfo); in ossl_rsa_dup()
419 if (!ossl_rsa_multip_calc_product(dupkey)) in ossl_rsa_dup()
424 dupkey->pss = RSA_PSS_PARAMS_dup(rsa->pss); in ossl_rsa_dup()
426 && dupkey->pss->maskGenAlgorithm == NULL) { in ossl_rsa_dup()
427 dupkey->pss->maskHash = ossl_x509_algor_mgf1_decode(rsa->pss->maskGenAlgorithm); in ossl_rsa_dup()
428 if (dupkey->pss->maskHash == NULL) in ossl_rsa_dup()
433 &dupkey->ex_data, &rsa->ex_data)) in ossl_rsa_dup()
437 return dupkey; in ossl_rsa_dup()
440 RSA_free(dupkey); in ossl_rsa_dup()