16 #include <QCryptographicHash>
25 SMHmac(QCryptographicHash::Algorithm algo,
const QByteArray&key);
27 void addData(
const char * data,
int length );
29 void addData(
const QByteArray & data );
36 static int resultWidth(QCryptographicHash::Algorithm);
38 static int blockWidth(QCryptographicHash::Algorithm);
40 static QByteArray hmac(
const QByteArray&data,
const QByteArray&key,QCryptographicHash::Algorithm method);
45 enum State {Collecting,Finished};
48 QCryptographicHash subhashin,subhashout;
#define MAGICSMOKE_COMMON_EXPORT
Definition: commonexport.h:7
Calculate a cryptographic HMAC (used by authentication algorithm)
Definition: hmac.h:21