Close #643: secp521r1 ssh fingerprints incorrect

SSH only uses and supports curve "prime256v1".

Only display SSH fingerprints for supported keys.
This commit is contained in:
Christian Hohnstaedt 2025-03-23 21:33:54 +01:00
parent 70d217b354
commit 51de716caf

View File

@ -50,9 +50,9 @@ void KeyDetail::setupFingerprints(pki_key *key)
v->addWidget(widget);
v->addStretch();
QStringList sl; sl <<
"ssh MD5" << "ssh SHA256 B64" <<
"x509 SHA1" << "DER SHA256";
QStringList sl = { "x509 SHA1", "DER SHA256" };
if (key->SSH2_compatible())
sl += QStringList({ "ssh MD5", "ssh SHA256 B64" });
foreach(QString type, sl) {
qDebug() << type << key->fingerprint(type);