ecc: Add flags "noparam" and "comp".
authorWerner Koch <wk@gnupg.org>
Fri, 25 Oct 2013 13:44:03 +0000 (15:44 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 29 Oct 2013 13:38:53 +0000 (14:38 +0100)
commitba892a0a874c8b2a83dbf0940608cd7e2911ce01
tree05d693e86d52f336aa9142c8176fb5a88a3b59cb
parent1faa61845f180bd47e037e400dde2d864ee83c89
ecc: Add flags "noparam" and "comp".

* src/cipher.h (PUBKEY_FLAG_NOPARAM, PUBKEY_FLAG_COMP): New.
* cipher/pubkey-util.c (_gcry_pk_util_parse_flaglist): Parse new flags
and change code for possible faster parsing.
* cipher/ecc.c (ecc_generate): Implement the "noparam" flag.
(ecc_sign): Ditto.
(ecc_verify): Ditto.
* tests/keygen.c (check_ecc_keys): Use the "noparam" flag.

* cipher/ecc.c (ecc_generate): Fix parsing of the deprecated
transient-flag parameter.
(ecc_verify): Do not make Q optional in the extract-param call.
--

Note that the "comp" flag has not yet any effect.

Signed-off-by: Werner Koch <wk@gnupg.org>
cipher/ecc.c
cipher/pubkey-util.c
doc/gcrypt.texi
src/cipher.h
tests/keygen.c