summaryrefslogtreecommitdiff
path: root/include/sha2.h
AgeCommit message (Collapse)Author
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.