gpg:ecc: Use the common function of gnupg_get_ecc_params.
* g10/pkglue.c (do_encrypt_kem): From ECC_OID, determine the CURVE by openpgp_oid_to_curve, and then use gnupg_get_ecc_params to get ECC parameters. (do_encrypt_ecdh): Likewise.
- GnuPG-bug-id: T7698
- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>