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