mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -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
@ -176,6 +176,11 @@ QByteArray Database::transformedMasterKey() const
|
||||
return m_data.transformedMasterKey;
|
||||
}
|
||||
|
||||
QByteArray Database::challengeMasterSeed(const QByteArray& masterSeed) const
|
||||
{
|
||||
return m_data.key.challenge(masterSeed);
|
||||
}
|
||||
|
||||
void Database::setCipher(const Uuid& cipher)
|
||||
{
|
||||
Q_ASSERT(!cipher.isNull());
|
||||
|
@ -89,6 +89,7 @@ public:
|
||||
quint64 transformRounds() const;
|
||||
QByteArray transformedMasterKey() const;
|
||||
const CompositeKey & key() const;
|
||||
QByteArray challengeMasterSeed(const QByteArray& masterSeed) const;
|
||||
|
||||
void setCipher(const Uuid& cipher);
|
||||
void setCompressionAlgo(Database::CompressionAlgorithm algo);
|
||||
|
Loading…
Reference in New Issue
Block a user