ecc: Support use of Ed25519 with ECDSA.
authorWerner Koch <wk@gnupg.org>
Tue, 15 Oct 2013 07:08:31 +0000 (09:08 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 15 Oct 2013 07:08:31 +0000 (09:08 +0200)
commit537969fbbb1104b8305a7edb331b7666d54eff2c
tree2e70f17203462a2f7e14ec0d3da35532482670f9
parentd3a605d7827b8a73ef844e9e5183590bd6b1389a
ecc:  Support use of Ed25519 with ECDSA.

* src/cipher.h (PUBKEY_FLAG_ECDSA): New.
* cipher/pubkey-util.c (_gcry_pk_util_parse_flaglist): Add flag "ecdsa".
* cipher/ecc.c (verify_ecdsa, verify_eddsa): Remove some debug output.
(ecc_generate, ecc_sign, ecc_verify): Support Ed25519 with ECDSA.
* tests/keygen.c (check_ecc_keys): Create such a test key.
* tests/pubkey.c (fail, info, data_from_hex, extract_cmp_data): New.
Take from dsa-6979.c
(check_ed25519ecdsa_sample_key): new.
(main): Call new test.

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