mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Add key serialization to support Quick Unlock
This commit is contained in:
@@ -66,6 +66,11 @@ void TestKeys::testComposite()
|
||||
compositeKey3->addKey(QSharedPointer<PasswordKey>::create("test"));
|
||||
compositeKey3->clear();
|
||||
QCOMPARE(compositeKey3->rawKey(), compositeKey4->rawKey());
|
||||
|
||||
// Test serialization
|
||||
auto data = compositeKey1->serialize();
|
||||
compositeKey3->deserialize(data);
|
||||
QCOMPARE(compositeKey1->rawKey(), compositeKey3->rawKey());
|
||||
}
|
||||
|
||||
void TestKeys::testFileKey()
|
||||
|
||||
Reference in New Issue
Block a user