mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-06-04 21:19:18 -04:00
Fix challenge-response key data after Botan
* Fix #6420 * Refactor Challenge-Response key files to be more streamlined. Added a test to confirm raw key data is accurate.
This commit is contained in:
parent
60adcacaaa
commit
fd0bdaae80
14 changed files with 65 additions and 108 deletions
|
@ -28,13 +28,17 @@ class MockChallengeResponseKey : public ChallengeResponseKey
|
|||
{
|
||||
public:
|
||||
explicit MockChallengeResponseKey(const QByteArray& secret);
|
||||
Q_DISABLE_COPY(MockChallengeResponseKey);
|
||||
~MockChallengeResponseKey() override;
|
||||
~MockChallengeResponseKey() override = default;
|
||||
|
||||
QByteArray rawKey() const override;
|
||||
|
||||
bool challenge(const QByteArray& challenge) override;
|
||||
|
||||
private:
|
||||
QByteArray m_challenge;
|
||||
QByteArray m_secret;
|
||||
|
||||
Q_DISABLE_COPY(MockChallengeResponseKey);
|
||||
};
|
||||
|
||||
#endif // KEEPASSXC_MOCKCHALLENGERESPONSEKEY_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue