sha256.h: correct definition on SHA224_DIGEST_SIZE
authorJim Meyering <meyering@redhat.com>
Thu, 31 Jul 2008 13:35:25 +0000 (15:35 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 31 Jul 2008 13:50:53 +0000 (15:50 +0200)
commit3054279c0cca4c1f9c61997f924685b1d70c2353
treeac838df2249feb7725a044d5ac8987fc74957ff7
parentd5ea91965354489ef1eb271a05c4235f5b043590
sha256.h: correct definition on SHA224_DIGEST_SIZE

* lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
Reported by Paulie Pena IV <paulie4@gmail.com>.
Define as 224 / 8, rather than as a literal.
(SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
* lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
(SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
ChangeLog
lib/sha256.h
lib/sha512.h