Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: ES_CW2_Starter_JIN EMBEDDED_CW2 EMBEDDED_CW2_Final Spinnybois ... more
Fork of Crypto by
Diff: hash/HMAC.h
- Revision:
- 10:bc9c23aa3870
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/hash/HMAC.h Tue Sep 24 07:19:04 2013 +0000
@@ -0,0 +1,23 @@
+#ifndef HMAC_H
+#define HMAC_H
+
+#include "HashAlgorithm.h"
+
+class HMAC
+{
+ public :
+
+ HMAC(HashAlgorithm *hashAlgo, uint8_t *k, uint32_t kl);
+ virtual ~HMAC();
+
+ void update(uint8_t *data, uint32_t length);
+ void finalize(uint8_t *hash);
+
+ private :
+
+ HashAlgorithm *algo;
+ uint8_t key[64];
+ uint32_t keyLength;
+};
+
+#endif
