mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-05 21:47:38 +03:00
YubiKey: Clean-up master seed challenge
* Tweak the logic so it more closely resembles other code (i.e. trasnformKey()). Matches existing style better. * Save the challengeResponseKey in the database structure so that it can be referred to later (i.e. database unlocking). Signed-off-by: Kyle Manna <kyle@kylemanna.com>
This commit is contained in:
parent
62190d79be
commit
77cc99acd3
4 changed files with 14 additions and 9 deletions
|
@ -176,9 +176,14 @@ QByteArray Database::transformedMasterKey() const
|
|||
return m_data.transformedMasterKey;
|
||||
}
|
||||
|
||||
bool Database::challengeMasterSeed(const QByteArray& masterSeed, QByteArray& result) const
|
||||
QByteArray Database::challengeResponseKey() const
|
||||
{
|
||||
return m_data.key.challenge(masterSeed, result);
|
||||
return m_data.challengeResponseKey;
|
||||
}
|
||||
|
||||
bool Database::challengeMasterSeed(const QByteArray& masterSeed)
|
||||
{
|
||||
return m_data.key.challenge(masterSeed, m_data.challengeResponseKey);
|
||||
}
|
||||
|
||||
void Database::setCipher(const Uuid& cipher)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue