This library implements some hash and cryptographic algorithms.
Dependents: ES_CW2_Starter_JIN EMBEDDED_CW2 EMBEDDED_CW2_Final Spinnybois ... more
Fork of Crypto by
hash/HMAC.h
- Committer:
- estott
- Date:
- 2018-03-09
- Revision:
- 15:634f9c4cbab1
- Parent:
- 10:bc9c23aa3870
File content as of revision 15:634f9c4cbab1:
#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