mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-06 05:24:13 -04:00
Add key serialization to support Quick Unlock
This commit is contained in:
parent
acce1bc5ce
commit
a76daeb4c5
11 changed files with 194 additions and 16 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue