This library implements some hash and cryptographic algorithms.

Dependents:   mBuinoBlinky PB_Emma_Ethernet SLOTrashHTTP Garagem ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers HMAC.h Source File

HMAC.h

00001 #ifndef HMAC_H
00002 #define HMAC_H
00003 
00004 #include "HashAlgorithm.h"
00005 
00006 class HMAC
00007 {
00008     public :
00009         
00010         HMAC(HashAlgorithm *hashAlgo, uint8_t *k, uint32_t kl);
00011         virtual ~HMAC();
00012         
00013         void update(uint8_t *data, uint32_t length);
00014         void finalize(uint8_t *hash);
00015         
00016     private :
00017     
00018         HashAlgorithm *algo;
00019         uint8_t key[64];
00020         uint32_t keyLength;
00021 };
00022 
00023 #endif