chiark / gitweb /
symm/sha512.[ch], etc.: Support SHA512/224 and SHA512/256.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 10 May 2017 19:58:34 +0000 (20:58 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 14 May 2017 13:58:41 +0000 (14:58 +0100)
commit12a5df4273e7939847d7919d0c2db8b8f777fc13
tree31ceab3d433cdf6f3cb89cc70c6037bda3bc8563
parent0809b51f844db7d8bf532ac7f1e8c7c7a6f89fd1
symm/sha512.[ch], etc.: Support SHA512/224 and SHA512/256.

These are more truncated versions of SHA512 with different initial
values.  The point of the exercise is performance: SHA512 runs faster
than SHA256 on 64-bit processors (it munches twice as much data per run
through the compression function, but has only 25% more rounds).  Add
test vectors for the hash function from NIST and Wikipedia, and HMAC
tests I found under a rock.
.gitignore
symm/Makefile.am
symm/sha512.c
symm/sha512.h
symm/t/sha512
symm/t/sha512-224 [new file with mode: 0644]
symm/t/sha512-256 [new file with mode: 0644]