Reduce memory footprint (#703)

This commit is contained in:
Olivier
2016-12-26 23:40:32 +01:00
committed by GitHub
parent 7013f912d2
commit 7445b065ec
+3
View File
@@ -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);