Skip to content

Commit 7445b06

Browse files
authored
Reduce memory footprint (#703)
1 parent 7013f91 commit 7445b06

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/ATSHA204/sha256.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,17 @@ const uint8_t sha256InitState[] PROGMEM = {
3434

3535
Sha256Class::Sha256Class()
3636
{
37+
/*
3738
memset(keyBuffer, 0, BLOCK_LENGTH);
3839
memset(innerHash, 0, HASH_LENGTH);
3940
memset(buffer.b, 0, BLOCK_LENGTH);
4041
memset(state.b, 0, BLOCK_LENGTH);
4142
bufferOffset = 0;
4243
byteCount = 0;
44+
*/
4345
}
4446

47+
4548
void Sha256Class::init(void)
4649
{
4750
memcpy_P(state.b,sha256InitState,32);

0 commit comments

Comments
 (0)