summaryrefslogtreecommitdiff
path: root/lib/libc/hash/sha1.c
AgeCommit message (Collapse)Author
2004-05-28In the Final function, move the context zeroing into the digest != NULLTodd C. Miller
scope so that passing a NULL digest is equivalent to the Pad function (like it used to be). Fixes skey w/ sha1 as noticed by David Krause.
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-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-03-31remove sparc64/gcc2 workaround.Brad Smith
ok millert@ deraadt@ jason@
2003-07-21Remove bogus static; from Hiroki SatoTodd C. Miller
2003-01-08Move the rounds into separate functions on sparc64 so gcc's optimizerTodd C. Miller
doesn't blow up. This is a hack but is better than compiling sha1.c with -O0 on sparc64. From NetBSD (mrg). 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
1997-07-23tabify + trailing blankskstailey
1997-07-15Add a missing constTodd C. Miller
1997-07-12Minor style points.Todd C. Miller
1997-07-11#include <sha1.h> not #include "sha1.h"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-30Moved definitions of BYTE and LONG in from header file.Todd C. Miller
1996-09-29Fixed standalone test mode for NEW_SHA1.Todd C. Miller
1996-09-29added sha1 (secure hash function).Todd C. Miller