10 #include <QCryptographicHash> 18 QCryptographicHash::Algorithm mHashAlgorithm;
20 [[nodiscard]] QByteArray deriveKey(
const QByteArray& pK,
const QByteArray& pNonce, quint32 pC)
const;
41 QByteArray
enc(
const QByteArray& pSecret);
48 QByteArray
mac(
const QByteArray& pSecret);
55 QByteArray
pi(
const QByteArray& pSecret);
QByteArray mac(const QByteArray &pSecret)
Derive the MAC key.
Definition: KeyDerivationFunction.cpp:66
Definition: KeyDerivationFunction.h:15
~KeyDerivationFunction()=default
QByteArray enc(const QByteArray &pSecret)
Derive the encryption key.
Definition: KeyDerivationFunction.cpp:60
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:14
KeyDerivationFunction(const QByteArray &pPaceAlgorithm)
Creates a new instance with derivation function algorithm determined by parameter.
Definition: KeyDerivationFunction.cpp:18
bool isInitialized() const
Returns true, if initialization succeeded, i.e.
Definition: KeyDerivationFunction.cpp:54
QByteArray pi(const QByteArray &pSecret)
Derive the password key.
Definition: KeyDerivationFunction.cpp:72