gpg: Fix batch generation of ECC keys.
* g10/keygen.c (get_parameter_algo): Map ECC algorithm strings directly.
Interactive generation of the keys uses the OpenPGP algorithms numbers
but batch generation allows the use of strings.
- Reported-by: Gaetan Bisson.
- Signed-off-by: Werner Koch <wk@gnupg.org>