TreeFrogFramework  1.18
tcryptmac.h
Go to the documentation of this file.
1 #ifndef TCRYPTMAC_H
2 #define TCRYPTMAC_H
3 
4 #include <QByteArray>
5 #include <QCryptographicHash>
6 #include <TGlobal>
7 
8 
10 {
11 public:
12  enum Algorithm {
13  Hmac_Md5 = QCryptographicHash::Md5,
14  Hmac_Sha1 = QCryptographicHash::Sha1,
15 #if QT_VERSION >= 0x050000
16  Hmac_Sha256 = QCryptographicHash::Sha256,
17  Hmac_Sha384 = QCryptographicHash::Sha384,
18  Hmac_Sha512 = QCryptographicHash::Sha512,
19 # if QT_VERSION >= 0x050100
20  Hmac_Sha3_224 = QCryptographicHash::Sha3_224,
21  Hmac_Sha3_256 = QCryptographicHash::Sha3_256,
22  Hmac_Sha3_384 = QCryptographicHash::Sha3_384,
23  Hmac_Sha3_512 = QCryptographicHash::Sha3_512,
24 # endif
25 #endif
26  };
27 
28  static QByteArray hash(const QByteArray &data, const QByteArray &key, Algorithm method);
29 };
30 
31 #endif // TCRYPTMAC_H
#define T_CORE_EXPORT
Definition: tglobal.h:81
The TCryptMac class provides the functionality of a "Message Authentication Code" (MAC) algorithm...
Definition: tcryptmac.h:9
Algorithm
Definition: tcryptmac.h:12