summaryrefslogtreecommitdiff
path: root/include/sha2.h
AgeCommit message (Collapse)Author
2016-09-03i forgot to commit sha2.h changes for SHA512/256Ted Unangst
2013-04-15SHA-224 is to SHA-256 as SHA-384 is to SHA-512. It was added in aTodd C. Miller
later revision of FIPS-180. OK miod@ jmc@ guenther@ djm@
2012-12-05Remove excessive sys/cdefs.h inclusionTheo de Raadt
ok guenther millert kettenis
2008-09-06Rename SHA256/384/512 API to avoid namespace collisions withDamien Miller
forthcoming OpenSSL update. Function names lose their underscore (SHA256_Init => SHA256Init) and the various SHA256_CTX, SHA512_CTX are merged into a single SHA2_CTX that is used for all these hashes. ok millert@ manpage bits jmc@ "please commit" deraadt@
2004-06-22Make the `filename' parameter to HASHFile() and HASHFileChunk() constJean-Francois Brousseau
ok pedro@, millert@
2004-05-05Make the Transform functions match the other hash types and document them.Todd C. Miller
Use sizeof() in the Init functions where it makes sense. Use weak aliases instead of wrapper functions. Probably should have gone in before the major bump but as these are only used internally by the sha2 functions themselves there should be no problem.
2004-05-03Add Pad and FileChunk functions for each family of hash functions.Todd C. Miller
The Pad function does padding like in Final but does not finish processing. The FileChunk function creates a digest from a portion of a file. Also made the length parameters consistent (and size_t).
2004-04-29Undo some recent prototype changes; it is legal to pass the helperTodd C. Miller
functions can take a NULL buf pointer. They will malloc memory as needed in this case.
2004-04-27Add __bounded__ attributes like the other hash functions have.Todd C. Miller
With help from avsm@
2003-05-08Add sha2 routines based on code by Aaron D. Gifford with minorTodd C. Miller
massaging and a man page by me. I used the phk-derived stuff for sha2hl.c instead of Aaron's for consistency with our other hash routines.