diff options
author | NIIBE Yutaka <[email protected]> | 2015-09-29 06:33:59 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2015-09-29 06:33:59 +0000 |
commit | 5c067d54d349fdfb3243634789c8841515d2c28f (patch) | |
tree | 6d1707f729e8fa96eceb11f6ad138a8fc97931c1 /common/ssh-utils.c | |
parent | agent: RSA signature verification by gpg-agent. (diff) | |
download | gnupg-5c067d54d349fdfb3243634789c8841515d2c28f.tar.gz gnupg-5c067d54d349fdfb3243634789c8841515d2c28f.zip |
ssh: Fix fingerprint computation for EdDSA key.
* common/ssh-utils.c (get_fingerprint): Handle the prefix of 0x40.
* common/t-ssh-utils.c (sample_keys): Add a new key.
--
Also adding Ed25519 test key.
Diffstat (limited to 'common/ssh-utils.c')
-rw-r--r-- | common/ssh-utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/ssh-utils.c b/common/ssh-utils.c index fab798dc7..58586a1aa 100644 --- a/common/ssh-utils.c +++ b/common/ssh-utils.c @@ -196,6 +196,8 @@ get_fingerprint (gcry_sexp_t key, void **r_fpr, size_t *r_len, int as_string) err = gpg_err_make (default_errsource, GPG_ERR_INV_SEXP); goto leave; } + blob++; + bloblen--; lenbuf[0] = bloblen >> 24; lenbuf[1] = bloblen >> 16; lenbuf[2] = bloblen >> 8; |