mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Add additional KDBX4 upgrade tests for composite key integrity
This commit is contained in:
committed by
Jonathan White
parent
e6c19fdcb1
commit
199f0932bf
@@ -17,8 +17,8 @@
|
||||
|
||||
#include "MockChallengeResponseKey.h"
|
||||
|
||||
MockChallengeResponseKey::MockChallengeResponseKey(const QByteArray& response)
|
||||
: m_response(response)
|
||||
MockChallengeResponseKey::MockChallengeResponseKey(const QByteArray& secret)
|
||||
: m_secret(secret)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -28,12 +28,11 @@ MockChallengeResponseKey::~MockChallengeResponseKey()
|
||||
|
||||
QByteArray MockChallengeResponseKey::rawKey() const
|
||||
{
|
||||
return m_response;
|
||||
return m_challenge + m_secret;
|
||||
}
|
||||
|
||||
bool MockChallengeResponseKey::challenge(const QByteArray& challenge)
|
||||
{
|
||||
Q_UNUSED(challenge);
|
||||
m_challenge = challenge;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user