mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-06-06 22:19:00 -04:00
database: Pass master seed to challenge response keys
* Pass the master seed from the database to CompositeKey::challenge() function which will in turn issue challenges to all selected drivers. Signed-off-by: Kyle Manna <kyle@kylemanna.com>
This commit is contained in:
parent
ccd6704b8f
commit
e354a0ee0e
2 changed files with 6 additions and 0 deletions
|
@ -176,6 +176,11 @@ QByteArray Database::transformedMasterKey() const
|
||||||
return m_data.transformedMasterKey;
|
return m_data.transformedMasterKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QByteArray Database::challengeMasterSeed(const QByteArray& masterSeed) const
|
||||||
|
{
|
||||||
|
return m_data.key.challenge(masterSeed);
|
||||||
|
}
|
||||||
|
|
||||||
void Database::setCipher(const Uuid& cipher)
|
void Database::setCipher(const Uuid& cipher)
|
||||||
{
|
{
|
||||||
Q_ASSERT(!cipher.isNull());
|
Q_ASSERT(!cipher.isNull());
|
||||||
|
|
|
@ -89,6 +89,7 @@ public:
|
||||||
quint64 transformRounds() const;
|
quint64 transformRounds() const;
|
||||||
QByteArray transformedMasterKey() const;
|
QByteArray transformedMasterKey() const;
|
||||||
const CompositeKey & key() const;
|
const CompositeKey & key() const;
|
||||||
|
QByteArray challengeMasterSeed(const QByteArray& masterSeed) const;
|
||||||
|
|
||||||
void setCipher(const Uuid& cipher);
|
void setCipher(const Uuid& cipher);
|
||||||
void setCompressionAlgo(Database::CompressionAlgorithm algo);
|
void setCompressionAlgo(Database::CompressionAlgorithm algo);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue