Embedded systems coursework 2.
Fork of Crypto_light by
Embed:
(wiki syntax)
Show/hide line numbers
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
Generated on Wed Jul 20 2022 22:55:43 by 1.7.2