Home GnuPG

ecc: Correctly return an error.

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

Provenance
gniibeAuthored on Jun 24 2019, 4:15 AM
Parents
rC6934711d572e: tests: Fix the Curve25519 test.
Branches
Unknown
Tags
Unknown