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:
Kyle Manna 2014-05-26 01:40:38 -07:00
parent ccd6704b8f
commit e354a0ee0e
2 changed files with 6 additions and 0 deletions

View File

@ -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());

View File

@ -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);