symm/sha{,256,512}.c: Fold message-scheduling in with state update.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 28 May 2017 18:03:08 +0000 (19:03 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 11 Jun 2018 23:47:58 +0000 (00:47 +0100)
commit15dfa998435a40ff3a7b1de4ec85541e8bac08dc
tree810ffeb2b3c91d1a8620278fade3e85eb337e96f
parent2427b43e44e51b1c5f5e00c95cd08ee84b788b05
symm/sha{,256,512}.c: Fold message-scheduling in with state update.

Previously, I implemented these compression functions in two steps:
first performing the message expansion, and then applying the state
update.

Instead, save temporary space by interleaving the two steps.  This also
results in a small performance improvement.
symm/sha.c
symm/sha256.c
symm/sha512.c