forked from treefrogframework/treefrog-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtcryptmac.h
More file actions
23 lines (19 loc) · 708 Bytes
/
Copy pathtcryptmac.h
File metadata and controls
23 lines (19 loc) · 708 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once
#include <QByteArray>
#include <QCryptographicHash>
#include <TGlobal>
class T_CORE_EXPORT TCryptMac {
public:
enum Algorithm {
Hmac_Md5 = QCryptographicHash::Md5,
Hmac_Sha1 = QCryptographicHash::Sha1,
Hmac_Sha256 = QCryptographicHash::Sha256,
Hmac_Sha384 = QCryptographicHash::Sha384,
Hmac_Sha512 = QCryptographicHash::Sha512,
Hmac_Sha3_224 = QCryptographicHash::Sha3_224,
Hmac_Sha3_256 = QCryptographicHash::Sha3_256,
Hmac_Sha3_384 = QCryptographicHash::Sha3_384,
Hmac_Sha3_512 = QCryptographicHash::Sha3_512,
};
static QByteArray hash(const QByteArray &data, const QByteArray &key, Algorithm method);
};