Reduce memory footprint (#703)
This commit is contained in:
@@ -34,14 +34,17 @@ const uint8_t sha256InitState[] PROGMEM = {
|
||||
|
||||
Sha256Class::Sha256Class()
|
||||
{
|
||||
/*
|
||||
memset(keyBuffer, 0, BLOCK_LENGTH);
|
||||
memset(innerHash, 0, HASH_LENGTH);
|
||||
memset(buffer.b, 0, BLOCK_LENGTH);
|
||||
memset(state.b, 0, BLOCK_LENGTH);
|
||||
bufferOffset = 0;
|
||||
byteCount = 0;
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
void Sha256Class::init(void)
|
||||
{
|
||||
memcpy_P(state.b,sha256InitState,32);
|
||||
|
||||
Reference in New Issue
Block a user