1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-26 01:52:45 +02:00
gnupg/g10
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
..
armor.c gpg: Change armor Version header to emit only the major version. 2013-11-27 09:20:02 +01:00
build-packet.c gpg: Use only OpenPGP public key algo ids and add the EdDSA algo id. 2014-01-30 18:48:37 +01:00
call-agent.c gpg: Make decryption with the OpenPGP card work. 2013-08-28 17:40:32 +02:00
call-agent.h gpg: Make decryption with the OpenPGP card work. 2013-08-28 17:40:32 +02:00
call-dirmngr.c Use has_leading_keyword in the assuan callbacks. 2013-02-22 10:56:13 +01:00
call-dirmngr.h Require libgcrypt 1.5 2011-03-08 12:23:59 +01:00
card-util.c gpg: Add another card vendor id. 2014-01-29 15:19:20 +01:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
cipher.c Replace gcry_md_start_debug by gcry_md_debug. 2011-09-20 09:54:27 +02:00
comment.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
compress-bz2.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
compress.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
cpr.c gpg: Remove cipher.h and put algo ids into a common file. 2014-01-29 20:35:05 +01:00
dearmor.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
decrypt-data.c gpg: Remove cipher.h and put algo ids into a common file. 2014-01-29 20:35:05 +01:00
decrypt.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
dek.h gpg: Remove cipher.h and put algo ids into a common file. 2014-01-29 20:35:05 +01:00
delkey.c gpg: Remove a function wrapper. 2013-01-08 09:43:21 +01:00
ecdh.c gpg: Rework ECC support and add experimental support for Ed25519. 2013-11-15 09:01:11 +01:00
encrypt.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
exec.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
exec.h Changed to GPLv3. 2007-07-04 19:49:40 +00:00
export.c gpg: Use only OpenPGP public key algo ids and add the EdDSA algo id. 2014-01-30 18:48:37 +01:00
filter.h gpg: Remove cipher.h and put algo ids into a common file. 2014-01-29 20:35:05 +01:00
free-packet.c gpg: Remove cipher.h and put algo ids into a common file. 2014-01-29 20:35:05 +01:00
getkey.c gpg: Use only OpenPGP public key algo ids and add the EdDSA algo id. 2014-01-30 18:48:37 +01:00
gpg-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
gpg.c gpg: Remove cipher.h and put algo ids into a common file. 2014-01-29 20:35:05 +01:00
gpg.h gpg: Remove cipher.h and put algo ids into a common file. 2014-01-29 20:35:05 +01:00
gpgv.c gpg: Remove cipher.h and put algo ids into a common file. 2014-01-29 20:35:05 +01:00
helptext.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
import.c gpg: Use only OpenPGP public key algo ids and add the EdDSA algo id. 2014-01-30 18:48:37 +01:00
kbnode.c Fix minor compiler warnings. 2013-11-15 15:49:34 +01:00
keydb.c kbx: Implement update operation for OpenPGP keyblocks. 2013-11-15 15:54:31 +01:00
keydb.h gpg: Remove cipher.h and put algo ids into a common file. 2014-01-29 20:35:05 +01:00
keyedit.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
keygen.c gpg: Use only OpenPGP public key algo ids and add the EdDSA algo id. 2014-01-30 18:48:37 +01:00
keyid.c gpg: Use only OpenPGP public key algo ids and add the EdDSA algo id. 2014-01-30 18:48:37 +01:00
keylist.c gpg: Use only OpenPGP public key algo ids and add the EdDSA algo id. 2014-01-30 18:48:37 +01:00
keyring.c Make use of the *_NAME etc macros. 2013-11-18 14:09:47 +01:00
keyring.h Decryption and signi via agent is now implemented. 2010-04-23 11:36:59 +00:00
keyserver-internal.h Initial code checking for backup - not yet working. 2011-01-10 14:30:17 +01:00
keyserver.c gpg: Use only OpenPGP public key algo ids and add the EdDSA algo id. 2014-01-30 18:48:37 +01:00
main.h gpg: Use only OpenPGP public key algo ids and add the EdDSA algo id. 2014-01-30 18:48:37 +01:00
mainproc.c gpg: Use only OpenPGP public key algo ids and add the EdDSA algo id. 2014-01-30 18:48:37 +01:00
Makefile.am gpg: Remove cipher.h and put algo ids into a common file. 2014-01-29 20:35:05 +01:00
mdfilter.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
misc.c gpg: Use only OpenPGP public key algo ids and add the EdDSA algo id. 2014-01-30 18:48:37 +01:00
openfile.c Make use of the *_NAME etc macros. 2013-11-18 14:09:47 +01:00
OPTIONS See ChangeLog: Mon Jul 31 10:04:47 CEST 2000 Werner Koch 2000-07-31 08:04:16 +00:00
options.h gpg: Remove cipher.h and put algo ids into a common file. 2014-01-29 20:35:05 +01:00
options.skel Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
packet.h gpg: Remove cipher.h and put algo ids into a common file. 2014-01-29 20:35:05 +01:00
parse-packet.c gpg: Use only OpenPGP public key algo ids and add the EdDSA algo id. 2014-01-30 18:48:37 +01:00
passphrase.c gpg: Remove cipher.h and put algo ids into a common file. 2014-01-29 20:35:05 +01:00
photoid.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
photoid.h Decryption and signi via agent is now implemented. 2010-04-23 11:36:59 +00:00
pkclist.c gpg: Suppress "public key already present" in quiet mode. 2012-12-19 11:21:26 +01:00
pkglue.c gpg: Use only OpenPGP public key algo ids and add the EdDSA algo id. 2014-01-30 18:48:37 +01:00
pkglue.h gpg: Use only OpenPGP public key algo ids and add the EdDSA algo id. 2014-01-30 18:48:37 +01:00
plaintext.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
progress.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
pubkey-enc.c gpg: Use only OpenPGP public key algo ids and add the EdDSA algo id. 2014-01-30 18:48:37 +01:00
pubring.asc See ChangeLog: Mon Jul 31 10:04:47 CEST 2000 Werner Koch 2000-07-31 08:04:16 +00:00
revoke.c gpg: Remove a function wrapper. 2013-01-08 09:43:21 +01:00
rmd160.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
rmd160.h Add missing header file. 2008-12-12 08:54:50 +00:00
seckey-cert.c Add tweaks for the not anymore patented IDEA algorithm. 2012-05-08 18:18:32 +02:00
server.c Make use of the *_NAME etc macros. 2013-11-18 14:09:47 +01:00
seskey.c gpg: Use only OpenPGP public key algo ids and add the EdDSA algo id. 2014-01-30 18:48:37 +01:00
sig-check.c gpg: Remove cipher.h and put algo ids into a common file. 2014-01-29 20:35:05 +01:00
sign.c gpg: Use only OpenPGP public key algo ids and add the EdDSA algo id. 2014-01-30 18:48:37 +01:00
signal.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
skclist.c gpg: Remove cipher.h and put algo ids into a common file. 2014-01-29 20:35:05 +01:00
t-rmd160.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
tdbdump.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
tdbio.c Make use of the *_NAME etc macros. 2013-11-18 14:09:47 +01:00
tdbio.h Changes to --min-cert-level should cause a trustdb rebuild (issue 1366) 2012-01-20 16:50:42 -05:00
textfilter.c Started to implement the audit log feature. 2007-11-19 16:03:50 +00:00
trustdb.c gpg: Remove a function wrapper. 2013-01-08 09:43:21 +01:00
trustdb.h Changes to --min-cert-level should cause a trustdb rebuild (issue 1366) 2012-01-20 16:50:42 -05:00
verify.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
zlib-riscos.h include: Remove this directory. 2014-01-29 17:45:05 +01:00