aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/md5c.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix a panic on sparc64 related to inproper aligment - we cannot assume,Pawel Jakub Dawidek2006-03-301-7/+13
| | | | | | | | | that 'unsigned char *' argument is 4 byte aligned. MFC after: 3 days Notes: svn path=/head/; revision=157304
* Fix an 11 year old mistake: Let the hash functions take a void* insteadPoul-Henning Kamp2006-01-171-2/+3
| | | | | | | of unsigned char* argument. Notes: svn path=/head/; revision=154479
* MD5Pad() should never have been exposed.Poul-Henning Kamp2005-02-101-3/+2
| | | | Notes: svn path=/head/; revision=141632
* /* -> /*- for copyright notices, minor format tweaks as necessaryWarner Losh2005-01-061-1/+1
| | | | Notes: svn path=/head/; revision=139804
* Revert stuff which accidentally ended up in the previous commit.Poul-Henning Kamp2003-07-221-1/+0
| | | | Notes: svn path=/head/; revision=117879
* Don't attempt to inline large functions mb_alloc() and mb_free(),Poul-Henning Kamp2003-07-221-0/+1
| | | | | | | | | it more than doubles the text size of this file. GCC has wisely ignored us on this previously Notes: svn path=/head/; revision=117878
* Use le32dec() instead of le32toh() because we are not guaranteed to havePoul-Henning Kamp2003-05-051-1/+1
| | | | | | | a word aligned input. Notes: svn path=/head/; revision=114706
* We have memset() and memcpy() in the kernel now, so we don't need toPoul-Henning Kamp2002-10-201-5/+0
| | | | | | | | | #define them to bzero and bcopy. Spotted by: FlexeLint Notes: svn path=/head/; revision=105578
* Bring sys/kern/md5c.c in sync with the userland version.Maxime Henrion2002-06-241-26/+23
| | | | | | | | | | | Add a comment so that people don't forget to keep the version in src/lib/libmd/md5c.c in sync with this one. This fixes a warning on sparc64. Reviewed by: phk Notes: svn path=/head/; revision=98756
* Add ia64 support.Doug Rabson2000-09-291-1/+1
| | | | Notes: svn path=/head/; revision=66457
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"Peter Wemm1999-12-291-2/+2
| | | | | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come. Notes: svn path=/head/; revision=55206
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* This commit fixes various 64bit portability problems required forDoug Rabson1998-06-071-2/+2
| | | | | | | | | | | | | FreeBSD/alpha. The most significant item is to change the command argument to ioctl functions from int to u_long. This change brings us inline with various other BSD versions. Driver writers may like to use (__FreeBSD_version == 300003) to detect this change. The prototype FreeBSD/alpha machdep will follow in a couple of days time. Notes: svn path=/head/; revision=36735
* Oops, the previous commit should have changed `i386' to `__i386__',Bruce Evans1998-05-011-3/+3
| | | | | | | not `__i386'. Notes: svn path=/head/; revision=35596
* Support compiling with `gcc -ansi'.Bruce Evans1998-04-151-3/+4
| | | | Notes: svn path=/head/; revision=35210
* Export MD5Transform in md5.c and remove a private version in random_machdep.cPoul-Henning Kamp1998-03-291-3/+2
| | | | | | | md5 is standard as a consequence of this. Notes: svn path=/head/; revision=34944
* Split the padding out into a separate function.Poul-Henning Kamp1998-03-271-5/+17
| | | | | | | | | | | Synchronize the kernel and libmd versions of md5c.c PR: misc/6127 Reviewed by: phk Submitted by: Ari Suutari <ari@suutari.iki.fi> Notes: svn path=/head/; revision=34909
* Add const to a couple of casts to silence some of the warnings BrucePoul-Henning Kamp1997-10-211-3/+3
| | | | | | | has let loose on us. Notes: svn path=/head/; revision=30631
* Removed unused #includes.Bruce Evans1997-08-021-2/+1
| | | | Notes: svn path=/head/; revision=27845
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notPeter Wemm1997-02-221-1/+1
| | | | | | | ready for it yet. Notes: svn path=/head/; revision=22975
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Make this compile in the kernel too, major cosmetic cleanup.Poul-Henning Kamp1996-12-221-260/+277
| | | | Notes: svn path=/head/; revision=20785
* close bin/1648 libmd not 64bit safe.Poul-Henning Kamp1996-10-221-3/+4
| | | | | | | | | if something fails to compile now, you need to add #include <sys/types.h> Partially Submitted by: Jason Thorpe <thorpej@nas.nasa.gov> Notes: svn path=/head/; revision=19099
* Clean a bunch of -Wall warnings.Poul-Henning Kamp1995-02-241-0/+1
| | | | Notes: svn path=/head/; revision=6684
* Speed md5 up around 30% by shorting out a couple of cumbersomePoul-Henning Kamp1995-02-211-36/+38
| | | | | | | memcpy equivalent functions. Notes: svn path=/head/; revision=6596
* Added "const" to the arguments here and there.Poul-Henning Kamp1994-11-071-5/+5
| | | | Notes: svn path=/head/; revision=4245
* Reviewed by: phkPoul-Henning Kamp1994-07-241-0/+310
Imported libmd. This library contains MD2, MD4 and MD5. These three boggers pop up all over the place all of the time, so I decided we needed a library with them. In general they are used for security checks, so if you use them you want to link them static. Notes: svn path=/cvs2svn/branches/ORIG/; revision=1802