1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-05-31 22:18:03 +02:00
gnupg/sm
Werner Koch b7f8dec632 gpg: Use only OpenPGP public key algo ids and add the EdDSA algo id.
* common/sexputil.c (get_pk_algo_from_canon_sexp): Change to return a
string.
* g10/keygen.c (check_keygrip): Adjust for change.
* sm/certreqgen-ui.c (check_keygrip): Likewise.

* agent/pksign.c (do_encode_dsa): Remove bogus map_pk_openpgp_to_gcry.

* g10/misc.c (map_pk_openpgp_to_gcry): Remove.
(openpgp_pk_test_algo): Change to a wrapper for openpgp_pk_test_algo2.
(openpgp_pk_test_algo2): Rewrite.
(openpgp_pk_algo_usage, pubkey_nbits): Add support for EdDSA.
(openpgp_pk_algo_name): Rewrite to remove need for gcry calls.
(pubkey_get_npkey, pubkey_get_nskey): Ditto.
(pubkey_get_nsig, pubkey_get_nenc): Ditto.
* g10/keygen.c(do_create_from_keygrip):  Support EdDSA.
(common_gen, gen_ecc, ask_keysize, generate_keypair): Ditto.
* g10/build-packet.c (do_key): Ditto.
* g10/export.c (transfer_format_to_openpgp): Ditto.
* g10/getkey.c (cache_public_key): Ditto.
* g10/import.c (transfer_secret_keys): Ditto.
* g10/keylist.c (list_keyblock_print, list_keyblock_colon): Ditto.
* g10/mainproc.c (proc_pubkey_enc): Ditto.
* g10/parse-packet.c (parse_key): Ditto,
* g10/sign.c (hash_for, sign_file, make_keysig_packet): Ditto.
* g10/keyserver.c (print_keyrec): Use openpgp_pk_algo_name.
* g10/pkglue.c (pk_verify, pk_encrypt, pk_check_secret_key): Use only
OpenPGP algo ids and support EdDSA.
* g10/pubkey-enc.c (get_it): Use only OpenPGP algo ids.
* g10/seskey.c (encode_md_value): Ditto.
--

This patch separates Libgcrypt and OpenPGP public key algorithms ids
and in most cases completely removes the Libgcrypt ones.  This is
useful because for Libgcrypt we specify the algorithm in the
S-expressions and the public key ids are not anymore needed.

This patch also adds some support for PUBKEY_ALGO_EDDSA which will
eventually be used instead of merging EdDSA with ECDSA.  As of now an
experimental algorithm id is used but the plan is to write an I-D so
that we can get a new id from the IETF.  Note that EdDSA (Ed25519)
does not yet work and that more changes are required.

The ECC support is still broken right now.  Needs to be fixed.

Signed-off-by: Werner Koch <wk@gnupg.org>
2014-01-30 18:48:37 +01:00
..
base64.c Fix faulty gcc warnings 2011-03-03 12:40:54 +01:00
call-agent.c Use has_leading_keyword in the assuan callbacks. 2013-02-22 10:56:13 +01:00
call-dirmngr.c Use has_leading_keyword in the assuan callbacks. 2013-02-22 10:56:13 +01:00
certchain.c Fix typos spotted during translations 2012-08-24 09:44:33 +02:00
certcheck.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
certdump.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
certlist.c Fix typos spotted during translations 2012-08-24 09:44:33 +02:00
certreqgen-ui.c gpg: Use only OpenPGP public key algo ids and add the EdDSA algo id. 2014-01-30 18:48:37 +01:00
certreqgen.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
decrypt.c Fix typos spotted during translations 2012-08-24 09:44:33 +02:00
delete.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
encrypt.c Fix typos spotted during translations 2012-08-24 09:44:33 +02:00
export.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
fingerprint.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
gpgsm-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
gpgsm.c Make use of the *_NAME etc macros. 2013-11-18 14:09:47 +01:00
gpgsm.h gpgsm: Add new validation model "steed". 2011-12-07 16:15:15 +01:00
import.c Fix regression in gpg's mail address parsing. 2011-04-25 23:59:25 +02:00
keydb.c sm: Remove cruft from source files. 2013-06-27 11:40:12 +02:00
keydb.h sm: Remove cruft from source files. 2013-06-27 11:40:12 +02:00
keylist.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
Makefile.am w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
minip12.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
minip12.h Implement export of pkcs#12 objects using a direct agent connection. 2010-06-21 10:01:24 +00:00
misc.c Do not use a broken ttyname. 2012-11-20 19:03:49 +01:00
qualified.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
server.c Make use of the *_NAME etc macros. 2013-11-18 14:09:47 +01:00
sign.c Fix typos spotted during translations 2012-08-24 09:44:33 +02:00
verify.c Fix typos spotted during translations 2012-08-24 09:44:33 +02:00