Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Spets <toni.spets@iki.fi>2018-07-14 15:42:28 +0300
committerJonathan White <droidmonkey@users.noreply.github.com>2018-07-17 01:45:20 +0300
commit07efabed0347605de0383857c59e02d471e08447 (patch)
treef080013b45f57d108fc175d0e46c72b632f5711b /tests/TestOpenSSHKey.cpp
parent470a74ee24793eaccab0ae371a7ee970b95bfeb9 (diff)
SSH Agent: Show MD5 fingerprint of keys
Fixes #2050
Diffstat (limited to 'tests/TestOpenSSHKey.cpp')
-rw-r--r--tests/TestOpenSSHKey.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/TestOpenSSHKey.cpp b/tests/TestOpenSSHKey.cpp
index a8e0c3580..74ea665c1 100644
--- a/tests/TestOpenSSHKey.cpp
+++ b/tests/TestOpenSSHKey.cpp
@@ -49,6 +49,7 @@ void TestOpenSSHKey::testParse()
QCOMPARE(key.type(), QString("ssh-ed25519"));
QCOMPARE(key.comment(), QString("opensshkey-test-parse@keepassxc"));
QCOMPARE(key.fingerprint(), QString("SHA256:D1fVmA15YXzaJ5sdO9dXxo5coHL/pnNaIfCvokHzTA4"));
+ QCOMPARE(key.fingerprint(QCryptographicHash::Md5), QString("MD5:2d:e8:04:09:13:b4:2b:73:5e:87:43:cf:4e:6f:62:f1"));
QByteArray publicKey, privateKey;
BinaryStream publicStream(&publicKey), privateStream(&privateKey);
@@ -173,6 +174,7 @@ void TestOpenSSHKey::testParseRSA()
QCOMPARE(key.type(), QString("ssh-rsa"));
QCOMPARE(key.comment(), QString(""));
QCOMPARE(key.fingerprint(), QString("SHA256:DYdaZciYNxCejr+/8x+OKYxeTU1D5UsuIFUG4PWRFkk"));
+ QCOMPARE(key.fingerprint(QCryptographicHash::Md5), QString("MD5:c2:26:5b:3d:62:19:56:b0:c3:67:99:7a:a6:4c:66:06"));
}
void TestOpenSSHKey::testDecryptOpenSSHAES256CBC()