ecc: More clean-up for Ed25519 and Curve25519.

Authored by gniibe on Oct 9 2019, 10:29 AM.

Description

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.

Details

Committed
gniibeOct 9 2019, 10:29 AM
Parents
rCd66a4856eb0c: ecc: Fix hard-coded value for 25519 to allow other modern curves.
Branches
Unknown
Tags
Unknown