#ifndef _HMAC_H_ #define _HMAC_H_ #define IPAD 0x36 #define OPAD 0x5C #define SHA1_B 64 #define SHA1_SIZE 20 #include #include #include "sha1.h" uint8_t hmac_result[SHA1_SIZE]; void hmac(uint8_t* msg, uint8_t msglen, uint8_t* secret, uint8_t sec_len); #endif //_HMAC_H_