gnupg/sm
Werner Koch 6dc3846d78
sm: Support creation of EdDSA certificates.
* sm/misc.c (transform_sigval): Support EdDSA.
* sm/certreqgen.c (create_request): Support EdDSA cert creation.
* sm/certcheck.c (gpgsm_check_cert_sig): Map some ECC algo OIDs to
hash algos.
* sm/call-agent.c (struct sethash_inq_parm_s): New.
(sethash_inq_cb): New.
(gpgsm_agent_pksign): Add mode to pass plain data for EdDSA.
--

Tested using a parameter file

    Key-Type: EdDSA
    Key-Length: 1024
    Key-Grip: 09D9AE3D494F7888C93BE5106AD8A734A87617F0
    Key-Usage: sign
    Serial: random
    Name-DN: CN=dummy test ed25519

where the keygrip is from a gpg generated Ed25519 key.  ECDSA was
tested using

    Key-Type: ECDSA
    Key-Length: 1024
    Key-Grip: 8E06A180EFFE4C65B812150CAF19BF30C0689A4C
    Key-Usage: sign
    Serial: random
    Name-DN: CN=dummy test nistp256

and RSA using

    Key-Type: RSA
    Key-Length: 2048
    Key-Grip: C6A6390E9388CDBAD71EAEA698233FE5E04F001E
    Key-Usage: sign
    Serial: random
    Name-DN: CN=dummy test rsa

The command used in all cases is

  gpgsm -v --gen-key --batch  a.parm >a.crt
  gpgsm -v --import <a.crt

More support, in particular in the user interface, is required and
will follow soon.

GnuPG-bug-id: 4888
Signed-off-by: Werner Koch <wk@gnupg.org>
2020-05-18 19:32:30 +02:00
..
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
Makefile.am sm: Add support to export ECC private keys. 2020-04-27 19:54:39 +02:00
call-agent.c sm: Support creation of EdDSA certificates. 2020-05-18 19:32:30 +02:00
call-dirmngr.c sm: Lookup missing issuers first using authorityInfoAccess. 2020-04-16 18:03:13 +02:00
certchain.c sm: Always allow authorityInfoAccess lookup if CRLs are also enabled. 2020-04-16 19:05:49 +02:00
certcheck.c sm: Support creation of EdDSA certificates. 2020-05-18 19:32:30 +02:00
certdump.c sm: Support import and verification of EdDSA certificates. 2020-05-13 21:22:28 +02:00
certlist.c sm: Print a better diagnostic for encryption certificate selection. 2019-06-04 09:24:03 +02:00
certreqgen-ui.c sm: Cleanup the use of GCRY_PK_ECC and GCRY_PK_ECDSA. 2020-05-08 15:10:13 +02:00
certreqgen.c sm: Support creation of EdDSA certificates. 2020-05-18 19:32:30 +02:00
decrypt.c sm: Allow decryption using dhSinglePass-stdDH-sha1kdf-scheme. 2020-05-08 18:08:50 +02:00
delete.c sm: Change keydb code to use the keybox locking. 2019-05-14 13:36:08 +02:00
encrypt.c sm: Allow decryption using dhSinglePass-stdDH-sha1kdf-scheme. 2020-05-08 18:08:50 +02:00
export.c sm: Add support to export ECC private keys. 2020-04-27 19:54:39 +02:00
fingerprint.c sm: Print the key types as standard key algorithm strings. 2020-05-07 09:45:49 +02:00
gpgsm-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
gpgsm.c sm: Allow decryption using dhSinglePass-stdDH-sha1kdf-scheme. 2020-05-08 18:08:50 +02:00
gpgsm.h sm: Support import and verification of EdDSA certificates. 2020-05-13 21:22:28 +02:00
import.c sm: Minor debug output format changes. 2020-04-23 10:00:18 +02:00
keydb.c Merge branch 'switch-to-gpgk' into master 2019-09-27 15:44:23 +02:00
keydb.h sm: Add a couple of debug calls to the keydb module. 2019-05-15 08:52:21 +02:00
keylist.c sm: Print the key types as standard key algorithm strings. 2020-05-07 09:45:49 +02:00
minip12.c doc: Typo fixes in code comments 2020-05-04 14:55:34 +02:00
minip12.h sm: Support import of PKCS#12 encoded ECC private keys. 2020-04-21 21:05:39 +02:00
misc.c sm: Support creation of EdDSA certificates. 2020-05-18 19:32:30 +02:00
passphrase.c Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
passphrase.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
qualified.c all: fix spelling and typos 2018-10-24 15:56:18 -04:00
server.c sm: New option --issuer-der for the listkey commands. 2020-02-03 14:54:23 +01:00
sign.c sm: Support signing using ECDSA. 2020-05-11 18:41:21 +02:00
t-minip12.c sm: Add support to export ECC private keys. 2020-04-27 19:54:39 +02:00
verify.c sm: Cleanup the use of GCRY_PK_ECC and GCRY_PK_ECDSA. 2020-05-08 15:10:13 +02:00