ecc: Consolidate encoding a point for Montgomery curve.
* cipher/ecc-common.h (_gcry_ecc_mont_encodepoint): New. * cipher/ecc-misc.c (_gcry_ecc_mont_encodepoint): New. * cipher/ecc.c (ecc_generate): Use _gcry_ecc_mont_encodepoint. (ecc_encrypt_raw, ecc_decrypt_raw, _gcry_pk_ecc_get_sexp): Likewise.
- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>