gnupg/agent
Werner Koch 649b31c663 ssh: Support ECDSA keys.
* agent/command-ssh.c (SPEC_FLAG_IS_ECDSA): New.
(struct ssh_key_type_spec): Add fields CURVE_NAME and HASH_ALGO.
(ssh_key_types): Add types ecdsa-sha2-nistp{256,384,521}.
(ssh_signature_encoder_t): Add arg spec and adjust all callers.
(ssh_signature_encoder_ecdsa): New.
(sexp_key_construct, sexp_key_extract, ssh_receive_key)
(ssh_convert_key_to_blob): Support ecdsa.
(ssh_identifier_from_curve_name): New.
(ssh_send_key_public): Retrieve and pass the curve_name.
(key_secret_to_public): Ditto.
(data_sign): Add arg SPEC and change callers to pass it.
(ssh_handler_sign_request): Get the hash algo from SPEC.
* common/ssh-utils.c (get_fingerprint): Support ecdsa.

* agent/protect.c (protect_info): Add flag ECC_HACK.
(agent_protect): Allow the use of the "curve" parameter.
* agent/t-protect.c (test_agent_protect): Add a test case for ecdsa.

* agent/command-ssh.c (ssh_key_grip): Print a better error code.
--

The 3 standard curves are now supported in gpg-agent's ssh-agent
protocol implementation.  I tested this with all 3 curves and keys
generated by OpenSSH 5.9p1.

Using existing non-ssh generated keys will likely fail for now. To fix
this, the code should first undergo some more cleanup; then the fixes
are pretty straightforward.  And yes, the data structures are way too
complicated.
2012-12-12 18:47:21 +01:00
..
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
Makefile.am Port to npth. 2012-01-25 14:50:47 +01:00
agent.h agent: Add pin length field to the shadowed private key format. 2012-02-07 14:17:33 +01:00
cache.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
call-pinentry.c Actually show translators comments in PO files 2012-08-24 09:42:31 +02:00
call-scd.c Allow decryption with card keys > 3072 bits 2012-11-06 14:48:06 +01:00
command-ssh.c ssh: Support ECDSA keys. 2012-12-12 18:47:21 +01:00
command.c agent: Use wipememory instead of memset in one place. 2012-11-06 18:51:47 +01:00
cvt-openpgp.c Fix size_t vs int issues. 2011-06-01 21:43:30 +02:00
cvt-openpgp.h Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
divert-scd.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
findkey.c agent: Fix wrong use of gcry_sexp_build_array 2012-11-02 16:22:26 +01:00
genkey.c Fix typos spotted during translations 2012-08-24 09:44:33 +02:00
gpg-agent.c agent: Add envvar "gnupg_SSH_AUTH_SOCK_by" 2012-12-10 14:45:26 +01:00
keyformat.txt agent: Add pin length field to the shadowed private key format. 2012-02-07 14:17:33 +01:00
learncard.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
pkdecrypt.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
pksign.c Fix ECDSA 521 bit signing. 2011-02-07 14:38:39 +01:00
preset-passphrase.c common: Add a global variable to for the default error source. 2012-02-06 20:50:47 +01:00
protect-tool.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
protect.c ssh: Support ECDSA keys. 2012-12-12 18:47:21 +01:00
t-protect.c ssh: Support ECDSA keys. 2012-12-12 18:47:21 +01:00
trans.c Changed to GPLv3. 2007-07-04 19:49:40 +00:00
trustlist.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
w32main.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
w32main.h Changed to GPLv3. 2007-07-04 19:49:40 +00:00