mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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.
This commit is contained in:
parent
cfbe6ba9cf
commit
5c067d54d3
2 changed files with 21 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue