mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
ssh: Fix fingerprint computation for 384 bit ECDSA keys.
* common/ssh-utils.c (get_fingerprint): Fix hashed string. -- That was an obvious c+p bug which should have been caught by a test case. GnuPG-bug-id: 2075 Debian-bug-id: 795636
This commit is contained in:
parent
1542dc604b
commit
2167951b27
@ -156,7 +156,7 @@ get_fingerprint (gcry_sexp_t key, void **r_fpr, size_t *r_len, int as_string)
|
|||||||
else if (!strcmp (name, "NIST P-256")||!strcmp (name, "nistp256"))
|
else if (!strcmp (name, "NIST P-256")||!strcmp (name, "nistp256"))
|
||||||
gcry_md_write (md, "256\0\0\0\x08nistp256", 15);
|
gcry_md_write (md, "256\0\0\0\x08nistp256", 15);
|
||||||
else if (!strcmp (name, "NIST P-384")||!strcmp (name, "nistp384"))
|
else if (!strcmp (name, "NIST P-384")||!strcmp (name, "nistp384"))
|
||||||
gcry_md_write (md, "384\0\0\0\x08nistp521", 15);
|
gcry_md_write (md, "384\0\0\0\x08nistp384", 15);
|
||||||
else if (!strcmp (name, "NIST P-521")||!strcmp (name, "nistp521"))
|
else if (!strcmp (name, "NIST P-521")||!strcmp (name, "nistp521"))
|
||||||
gcry_md_write (md, "521\0\0\0\x08nistp521", 15);
|
gcry_md_write (md, "521\0\0\0\x08nistp521", 15);
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user