4 #include "sha256_config.h"
6 #if defined(SHA256_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(SHA256_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
ror32(uint32_t number, uint8_t bits);
128 #if defined(SHA256_LINUX)
uint32_t byteCount
Definition: sha256.h:125
uint32_t w[BLOCK_LENGTH/4]
Definition: sha256.h:15
double millis()
Definition: sha256.cpp:182
_state state
Definition: sha256.h:124
_buffer buffer
Definition: sha256.h:122
size_t print(const char *str)
Definition: sha256.cpp:178
void initHmac(const uint8_t *secret, int secretLength)
Definition: sha256.cpp:137
void hashBlock()
Definition: sha256.cpp:37
uint8_t b[HASH_LENGTH]
Definition: sha256.h:18
uint8_t bufferOffset
Definition: sha256.h:123
uint32_t w[HASH_LENGTH/4]
Definition: sha256.h:19
uint8_t innerHash[HASH_LENGTH]
Definition: sha256.h:127
timeval tv
Definition: sha256.h:129
size_t write_L(const char *str)
Definition: sha256.cpp:167
uint8_t * result(void)
Definition: sha256.cpp:112
void pad()
Definition: sha256.cpp:93
void addUncounted(uint8_t data)
Definition: sha256.cpp:78
uint8_t b[BLOCK_LENGTH]
Definition: sha256.h:14
uint8_t keyBuffer[BLOCK_LENGTH]
Definition: sha256.h:126
uint32_t ror32(uint32_t number, uint8_t bits)
Definition: sha256.cpp:33
virtual size_t write(uint8_t)
Definition: sha256.cpp:87
uint8_t * resultHmac(void)
Definition: sha256.cpp:156
void init(void)
Definition: sha256.cpp:27