Add TouchID support on macOS

This commit is contained in:
Max Kolhagen
2018-04-04 17:39:26 +02:00
committed by Jonathan White
parent 5aeb30e845
commit d9fcdd2920
17 changed files with 549 additions and 26 deletions

View File

@@ -28,6 +28,13 @@ PasswordKey::PasswordKey(const QString& password)
setPassword(password);
}
PasswordKey PasswordKey::fromRawKey(const QByteArray& rawKey)
{
PasswordKey result;
result.m_key = rawKey;
return result;
}
QByteArray PasswordKey::rawKey() const
{
return m_key;

View File

@@ -31,6 +31,7 @@ public:
void setPassword(const QString& password);
PasswordKey* clone() const;
static PasswordKey fromRawKey(const QByteArray& rawKey);
private:
QByteArray m_key;
};