summaryrefslogtreecommitdiff
path: root/sys/crypto/sha1.c
AgeCommit message (Collapse)Author
2014-12-28convert bcopy to memcpy in md5 and sha1. also be consistent about clearingTed Unangst
context and making digest required to Final.
2014-11-16Defining the interface in terms of char * means most callers areTed Unangst
required to cast their pointers, which is ugly and possibly error prone. accidentally casting an int to a pointer, for example, instead of the address of the int. implicit void * casting is safer. This updates the kernel hash interfaces to use void *. Similar changes are possible for userland. I think it's safe, but there may be some peculiar source compatbility issues there, so let's just do the kernel first. ok dlg millert
2011-01-11in SHA1Final(), explicitly clear the local bufferTheo de Raadt
ok mikeb
2007-09-10Make the hmac ipad/opad globals "const" and fixup the crypto functionsHenric Jungheim
to match. ok deraadt@
2007-07-20unbreak landisk kernel sha1 by working around a compiler bug;Otto Moerbeek
also brings kernel sha1 more in line with userland; discussed with miod@ and millert@;
2007-04-10``it's'' -> ``its'' when the grammar gods require this change.Miod Vallat
2004-04-28Some KNF, made bit count u_int64_t instead of u_int32_t (similar to libc).Hans-Joerg Hoexer
Added constants for buffer lengths. ok millert@
2004-03-31remove sparc64/gcc2 workaround.Brad Smith
ok millert@ deraadt@ jason@
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
2000-06-04better indent for easier searchingTheo de Raadt
2000-02-28move crypto codeTheo de Raadt