summaryrefslogtreecommitdiffstats
path: root/lib/libmd/md5c.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC r282774:Luiz Otavio O Souza2015-10-201-0/+6
| | | | | | | | | | | | | Unbreak MIPS build following rev. 282726 Introduce further adjustments to the renaming of libmd symbols: make sure that we do not generate dangling weak aliases, as this causes build failures on MIPS. Tested by: sbruno TAG: IPSEC-HEAD Issue: #4841
* MFC r282726:Luiz Otavio O Souza2015-10-201-1/+12
| | | | | | | | | | | | | | | | | | Ensure libmd symbols do not clash with libcrypto Add a prefix to all symbols in libmd to avoid incompatibilites with same-named, but not binary compatible, symbols from libcrypto. Also introduce Weak aliases to avoid the need to rebuild dependent binaries and a major version bump. PR: 199119 Differential Revision: D2216 Reviewed by: roberto, delphij MFC after: 2 weeks TAG: IPSEC-HEAD Issue: #4841
* Fix an 11 year old mistake: Let the hash functions take a void* insteadphk2006-01-171-2/+3
| | | | of unsigned char* argument.
* Rename local variables to not mask global names of same name. Thismarkm2003-06-051-9/+9
| | | | fixes lots of lint(1) warnings.
* Add missing const's.mux2002-06-241-1/+1
|
* Improve the handling of Encode and Decode operations in MD5.phk2002-06-221-22/+15
| | | | | | | | | | Use memcpy for all little-endian architectures, sys/kern/md5c.c indicates this should be safe for all currently supported LE archs. Change the Encode and Decode functions for other archs to use le32toh() and htole32() functions instead of explicit byte shuffling. On sparc64 this gives md5(1) about 8% speed increase.
* Remove __P() usage.obrien2002-03-211-1/+1
|
* add __FBSDID()s to libmddillon2001-09-301-2/+3
|
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"peter1999-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.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Split the padding out into a separate function.phk1998-03-271-8/+19
| | | | | | | | Synchronize the kernel and libmd versions of md5c.c PR: misc/6127 Reviewed by: phk Submitted by: Ari Suutari <ari@suutari.iki.fi>
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-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.
* Make this compile in the kernel too, major cosmetic cleanup.phk1996-12-221-260/+277
|
* close bin/1648 libmd not 64bit safe.phk1996-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>
* Clean a bunch of -Wall warnings.phk1995-02-241-0/+1
|
* Speed md5 up around 30% by shorting out a couple of cumbersomephk1995-02-211-36/+38
| | | | memcpy equivalent functions.
* Added "const" to the arguments here and there.phk1994-11-071-5/+5
|
* Reviewed by: phkphk1994-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.
OpenPOWER on IntegriCloud