8 #define BLOCK_LENGTH 64
11 uint8_t b[BLOCK_LENGTH];
12 uint32_t w[BLOCK_LENGTH/4];
15 uint8_t b[HASH_LENGTH];
16 uint32_t w[HASH_LENGTH/4];
19 class Sha1Class : public Print
23 void initHmac(const uint8_t* secret, int secretLength);
24 uint8_t* result(void);
25 uint8_t* resultHmac(void);
26 virtual size_t write(uint8_t);
30 void addUncounted(uint8_t data);
32 uint32_t rol32(uint32_t number, uint8_t bits);
37 uint8_t keyBuffer[BLOCK_LENGTH];
38 uint8_t innerHash[HASH_LENGTH];
41 extern Sha1Class Sha1;