#include "hmac.h" #define KEYLEN 20 static const uint8_t secret[KEYLEN]={0x11}; void hmac(uint8_t* msg, uint8_t msglen){ uint8_t i; /* ipad = the byte 0x36 repeated B times opad = the byte 0x5C repeated B times. To compute HMAC over the data `text' we perform H(K XOR opad, H(K XOR ipad, text)) B is length of hash in bytes, K is the secret and "," ist the string concatination operator */ /* inner Hash */ sha1_init(); /*k xor ipad*/ for(i=0;i