Lines Matching refs:src
597 EC_KEY *ossl_ec_key_dup(const EC_KEY *src, int selection) in ossl_ec_key_dup() argument
601 if (src == NULL) { in ossl_ec_key_dup()
606 if ((ret = ossl_ec_key_new_method_int(src->libctx, src->propq, in ossl_ec_key_dup()
607 src->engine)) == NULL) in ossl_ec_key_dup()
611 if (src->group != NULL in ossl_ec_key_dup()
613 ret->group = ossl_ec_group_new_ex(src->libctx, src->propq, in ossl_ec_key_dup()
614 src->group->meth); in ossl_ec_key_dup()
616 || !EC_GROUP_copy(ret->group, src->group)) in ossl_ec_key_dup()
619 if (src->meth != NULL) in ossl_ec_key_dup()
620 ret->meth = src->meth; in ossl_ec_key_dup()
624 if (src->pub_key != NULL in ossl_ec_key_dup()
631 || !EC_POINT_copy(ret->pub_key, src->pub_key)) in ossl_ec_key_dup()
636 if (src->priv_key != NULL in ossl_ec_key_dup()
642 if (ret->priv_key == NULL || !BN_copy(ret->priv_key, src->priv_key)) in ossl_ec_key_dup()
645 && ret->group->meth->keycopy(ret, src) == 0) in ossl_ec_key_dup()
651 ret->enc_flag = src->enc_flag; in ossl_ec_key_dup()
652 ret->conv_form = src->conv_form; in ossl_ec_key_dup()
655 ret->version = src->version; in ossl_ec_key_dup()
656 ret->flags = src->flags; in ossl_ec_key_dup()
660 &ret->ex_data, &src->ex_data)) in ossl_ec_key_dup()
668 if (ret->meth->copy(ret, src) == 0) in ossl_ec_key_dup()