1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
Werner Koch 48251cf9a7
gpg: Improve generation of keys stored on card (brainpool,cv25519).
* g10/keygen.c (ask_key_flags_with_mask): Allow more than ECDH for
legacy curves.
(ask_algo): Tweak mapping of ECC to OpenPGP algos
(parse_key_parameter_part): Ditto.
(generate_subkeypair): Create the subkey with the time stored on the
card.
--

This fixes two problems with generating keys from a card:

1. The key usage is now set correctly for brainpool curves.

2. The add-key and --quick-add-key commands now also take the creation
   time from the time stored on the card.  Without that we would need
   to update the creation time and fingerprint already stored on the
   card which is a no-go if another key has already been created using
   that on-card key.

Note: To create a key on a card without an OpenPGP keyblock use
gpg-card.

Signed-off-by: Werner Koch <wk@gnupg.org>
2020-06-03 16:22:42 +02:00
..
2019-05-14 11:20:07 +09:00
2018-11-08 12:14:23 +09:00
2018-05-29 12:42:52 +02:00
2019-06-23 20:21:02 -04:00
2020-01-01 19:05:16 +01:00
2020-05-22 11:58:21 +09:00
2018-10-24 15:56:18 -04:00
2015-02-04 09:15:34 +01:00
2015-02-04 09:15:34 +01:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2018-10-25 16:53:05 -04:00
2020-02-18 18:07:46 -05:00
2020-02-18 18:07:46 -05:00
2020-02-18 18:07:46 -05:00
2020-05-04 14:55:34 +02:00
2020-02-18 18:07:46 -05:00
2020-04-15 22:21:46 +02:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2020-02-18 18:07:46 -05:00
2019-07-11 12:32:44 +09:00
2020-03-14 18:04:47 +01:00
2019-07-23 12:04:21 +09:00
2020-05-22 11:58:21 +09:00
2020-05-22 11:58:21 +09:00
2017-03-07 20:25:54 +09:00
2020-04-08 09:29:43 +09:00
2017-01-23 19:16:55 +01:00
2017-02-21 13:11:46 -05:00
2017-03-07 20:32:09 +09:00
2017-03-07 20:25:54 +09:00
2018-10-24 15:56:18 -04:00
2020-03-13 13:34:49 +01:00
2019-09-09 15:01:47 +02:00
2016-03-08 14:08:49 +01:00
2020-02-18 18:07:46 -05:00
2017-03-07 20:25:54 +09:00
2019-09-09 15:01:47 +02:00
2016-12-06 12:16:56 +01:00
2020-04-03 15:30:08 +09:00