forked from treefrogframework/treefrog-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtcryptmac.cpp
More file actions
24 lines (21 loc) · 730 Bytes
/
Copy pathtcryptmac.cpp
File metadata and controls
24 lines (21 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* Copyright (c) 2011-2019, AOYAMA Kazuharu
* All rights reserved.
*
* This software may be used and distributed according to the terms of
* the New BSD License, which is incorporated herein by reference.
*/
#include <QMessageAuthenticationCode>
#include <TCryptMac>
/*!
\class TCryptMac
\brief The TCryptMac class provides the functionality of a
"Message Authentication Code" (MAC) algorithm.
*/
/*!
Returns a cryptographic hash value generated from the given binary or
text data \a data with \a key using \a method.
*/
QByteArray TCryptMac::hash(const QByteArray &data, const QByteArray &key, Algorithm method)
{
return QMessageAuthenticationCode::hash(data, key, (QCryptographicHash::Algorithm)method);
}