ecc: Correctly return an error.

Authored by gniibe on Mon, Jun 24, 4:15 AM.

Description

ecc: Correctly return an error.

* cipher/ecc-ecdh.c (_gcry_ecc_get_algo_keylen): Return 0 for
unknow algorithm.
(_gcry_ecc_mul_point): Return GPG_ERR_UNSUPPORTED_ALGORITHM for
GCRY_ECC_CURVE448 for now.
Return GPG_ERR_UNKNOWN_ALGORITHM, otherwise.
  • Suggested-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Committed
gniibeMon, Jun 24, 4:15 AM
Parents
rC6934711d572e: tests: Fix the Curve25519 test.
Branches
Unknown
Tags
Unknown