ecc: More clean-up for Ed25519 and Curve25519.
* cipher/ecc-eddsa.c (_gcry_ecc_eddsa_ensure_compact): Fix calc for bytes. * cipher/ecc.c (ecc_encrypt_raw): Use public key as opaque byte-string with "/q" for both cases, since it is always fixed size with a prefix. (compute_keygrip): Likewise. Fix hard-coded value of 256 for Ed25519. Handle Curve25519 differently.
- Fixes-commit: e93f4c21c59756604440ad8cbf27e67d29c99ffd
- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>