summaryrefslogtreecommitdiff
path: root/include/sha1.h
AgeCommit message (Collapse)Author
2004-06-22Make the `filename' parameter to HASHFile() and HASHFileChunk() constJean-Francois Brousseau
ok pedro@, millert@
2004-05-05Make the 2nd arg to SHA1Transform const again and unifdef SHA1HANDSOFF.Todd C. Miller
It was defined before and there is no need to for this knob...
2004-05-03Use KNF indentation style and do some u_char -> u_int8_t conversionTodd C. Miller
I missed earlier.
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-27Make the bit count u_int64_t instead of two u_int32_t. Adapted fromTodd C. Miller
changes Niklas made to the md5 code long ago. OK hshoexer@
2004-04-26Use a common source file for all the hash helper functions thatTodd C. Miller
previously lived in foohl.c. The foohl.c files are now generated via sed, though perhaps cpp could be used in the future. Use u_int8_t instead of unsigned char for the buffers struct fooContext. Add constants for buffer lengths and use them in function prototypes and the man pages. This is basically cosmetic surgery; there should be no functional changes. OK deraadt@
2004-01-22Remove unnecessary typedef usage.Marc Espie
u_char -> unsigned char u_short -> unsigned short u_long -> unsigned long u_int -> unsigned int okay millert@
2003-10-07corrent __bounded__ attribute for the *Data functions, and addAnil Madhavapeddy
__minbytes__ checks where appropriate. tested by itojun@ fixes PR 3505 from Janjaap van Velthooven
2003-08-01add __bounded__ attributes for userland headers; enabled with -WboundedAnil Madhavapeddy
ok deraadt@
2003-06-26backout the __bounded__ attributes for a while; requested by deraadt@Anil Madhavapeddy
2003-06-26Mark various standard library functions with the __bounded__ attribute.Anil Madhavapeddy
You must have an up-to-date gcc for this! deraadt@ ok
2002-12-23o Ansi function headersTodd C. Miller
o Add __BEGIN_DECLS/__END_DECLS to include files o Safe macros o Remove useless variable assignment in the End function of *hl.c o Some minor KNF, needs more From Dan Weeks
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
1999-02-03Add some useful defines (used by ssyslog).Angelos D. Keromytis
1997-07-15Add a missing constTodd C. Miller
1997-07-12Add SHA1End, SHA1File, SHA1Data helper functions like in md5(3).Todd C. Miller
1997-07-10Be consistent wrt unsigned vs. u_*Todd C. Miller
1997-07-10Different sha1 functions (taken from netinet's if_sha1.c) thatTodd C. Miller
are more consistent with md4/md5 functions.
1996-09-30export byte swapping routine.Todd C. Miller
1996-09-30Protect prototypes with __P.Todd C. Miller
1996-09-29Add function prototypes.Todd C. Miller
1996-09-29Added sha1 (secure hash function).Todd C. Miller