space hacks
[iotcloud.git] / version2 / src / C / Mac.h
1 #ifndef MAC_H
2 #define MAC_H
3 #include "common.h"
4 #include "pbkdf2-sha256.h"
5
6 class Mac {
7 public:
8         Mac();
9         void update(Array<char> *array, int32_t offset, int32_t len);
10         Array<char> *doFinal();
11         void init(AESKey *key);
12 private:
13         sha2_context ctx;
14 };
15 #endif