summaryrefslogtreecommitdiffstats
path: root/lib/libc/hash/sha2.c
AgeCommit message (Expand)AuthorFilesLines
2019-07-23Fix comment typo; from OpenSSH Portabledtucker1-2/+2
2019-06-07Cast bitcount to u_in64_t before bit shifting to prevent integer overflowdtucker1-3/+3
2017-05-27move sha224_initial_hash_value[] under !SHA2_SMALL; ok deraadt@ millert@naddy1-13/+13
2016-09-03Add functions for SHA512/256. The standard says you're supposed to starttedu1-1/+50
2015-09-11Wrap blowfish, sha*, md5, and rmd160 so that internal calls go directguenther1-7/+27
2015-01-15Use explicit_bzero instead of memset in hash Final and End functions.millert1-5/+5
2014-12-19be like the kernel and only unroll if not smalltedu1-2/+4
2014-12-19i386 unrolling blows up the media in a big way, due to -Os forderaadt1-2/+2
2014-12-18only unroll on i386 and amd64 (where confirmed to be much faster).tedu1-1/+3
2014-12-17unroll loops. much faster on amd64. ok deraadt millerttedu1-1/+2
2014-07-20From ISO/IEC 9899:1999 and 9899:201x,guenther1-7/+7
2014-01-08calling HashFinal with a null digest should crash, not be silently ignoredtedu1-37/+24
2014-01-08rename SHA256_ONLY to SHA2_SMALL; changing things so that sha512 supportderaadt1-17/+17
2013-12-22remove unneeded check for null context. ok deraadt gilles millerttedu1-9/+1
2013-04-15SHA-224 is to SHA-256 as SHA-384 is to SHA-512. It was added in amillert1-9/+58
2009-04-15allow building without SHA384 and SHA512 (i.e. SHA256 only) withdjm1-2/+5
2008-09-06Rename SHA256/384/512 API to avoid namespace collisions withdjm1-46/+46
2005-08-08zap remaining rcsid.espie1-5/+1
2004-05-28In the Final function, move the context zeroing into the digest != NULLmillert1-8/+4
2004-05-07Simpler byte order flipping. Now the only place we explicitly checkmillert1-78/+67
2004-05-05Make the Transform functions match the other hash types and document them.millert1-110/+93
2004-05-03Add Pad and FileChunk functions for each family of hash functions.millert1-67/+79
2004-05-03Rev 1.4 was bogus (committed from the wrong tree), this repairs it.millert1-84/+62
2004-05-02some minor KNFmillert1-33/+42
2004-04-29The data pointer passed to the transform function may not be properlymillert1-9/+7
2004-04-28KNF: function names should be at column 0 for easier grepping.millert1-16/+30
2003-09-08Zap context correctly, from Juergen Buchmueller <pullmoll at stop1984 dot com>millert1-5/+5
2003-05-08Add sha2 routines based on code by Aaron D. Gifford with minormillert1-0/+895