mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01: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:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user