4 #include "sha1_config.h"
6 #if defined(SHA1_LINUX)
14 uint8_t
b[BLOCK_LENGTH];
15 uint32_t
w[BLOCK_LENGTH/4];
18 uint8_t
b[HASH_LENGTH];
19 uint32_t
w[HASH_LENGTH/4];
30 void initHmac(
const uint8_t* secret,
int secretLength);
43 #if defined(SHA1_LINUX)
49 virtual size_t write(uint8_t);
59 size_t write_L(
const char *str);
80 size_t print(
const char* str);
94 virtual size_t write(uint8_t);
121 uint32_t
rol32(uint32_t number, uint8_t bits);
128 #if defined(SHA1_LINUX)
void pad()
Definition: sha1.cpp:78
uint32_t rol32(uint32_t number, uint8_t bits)
Definition: sha1.cpp:22
uint8_t keyBuffer[BLOCK_LENGTH]
Definition: sha1.h:126
_buffer buffer
Definition: sha1.h:122
uint8_t * resultHmac(void)
Definition: sha1.cpp:138
uint32_t w[HASH_LENGTH/4]
Definition: sha1.h:19
uint32_t w[BLOCK_LENGTH/4]
Definition: sha1.h:15
virtual size_t write(uint8_t)
Definition: sha1.cpp:72
uint8_t innerHash[HASH_LENGTH]
Definition: sha1.h:127
uint8_t b[BLOCK_LENGTH]
Definition: sha1.h:14
size_t print(const char *str)
Definition: sha1.cpp:161
uint8_t b[HASH_LENGTH]
Definition: sha1.h:18
timeval tv
Definition: sha1.h:129
uint8_t * result(void)
Definition: sha1.cpp:97
_state state
Definition: sha1.h:124
uint32_t byteCount
Definition: sha1.h:125
double millis()
Definition: sha1.cpp:165
size_t write_L(const char *str)
Definition: sha1.cpp:150
void init(void)
Definition: sha1.cpp:16
void initHmac(const uint8_t *secret, int secretLength)
Definition: sha1.cpp:119
void hashBlock()
Definition: sha1.cpp:26
uint8_t bufferOffset
Definition: sha1.h:123
void addUncounted(uint8_t data)
Definition: sha1.cpp:63