summaryrefslogtreecommitdiffstats
path: root/lib/libcrypt/crypt-md5.c
Commit message (Collapse)AuthorAgeFilesLines
* Tidy the code up a fraction. Re-release with a 2-clause BSD licensemarkm2003-06-021-19/+33
| | | | | | with the kind permission of the author/copyright holder. Thanks to: phk
* Fix grammer in comment.phk2002-03-251-1/+1
| | | | Submitted by: Engin Gunduz <engin@ripe.net>
* Modernize my email-address.phk2002-03-251-1/+1
|
* Darn. There is (now was) a signed/unsigned issue that resulted in amarkm2002-03-071-4/+4
| | | | | | very long loop. Reported by: nnd@mail.nsk.ru (Nickolay Dudorov)
* No functional change, but big code cleanup. WARNS, lint(1) and style(9).markm2002-03-061-47/+47
|
* Implement __FBSDID()dillon2001-09-161-4/+2
|
* Removed duplicate VCS ID tags, as per style(9).ru2001-08-131-3/+0
|
* Merge into a single US-exportable libcrypt, which only providespeter2000-12-281-43/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | one-way hash functions for authentication purposes. There is no more "set the libcrypt->libXXXcrypt" nightmare. - Undo the libmd.so hack, use -D to hide the md5c.c internals. - Remove the symlink hacks in release/Makefile - the algorthm is set by set_crypt_format() as before. If this is not called, it tries to heuristically figure out the hash format, and if all else fails, it uses the optional auth.conf entry to chose the overall default hash. - Since source has non-hidden crypto in it there may be some issues with having the source it in some countries, so preserve the "secure/*" division. You can still build a des-free libcrypt library if you want to badly enough. This should not be a problem in the US or exporting from the US as freebsd.org had notified BXA some time ago. That makes this stuff re-exportable by anyone. - For consistancy, the default in absence of any other clues is md5. This is to try and minimize POLA across buildworld where folk may suddenly be activating des-crypt()-hash support. Since the des hash may not always be present, it seemed sensible to make the stronger md5 algorithm the default. All things being equal, no functionality is lost. Reviewed-by: jkh (flame-proof suit on)
* Make a dlopen failure consistant with dlsym(). "Shouldn't happen."peter1999-12-171-1/+3
|
* Remove -lmd. Use dlopen() and dlsym() instead for calls to the MD5* andpeter1999-12-171-1/+44
| | | | | SHA* routines so that callers of libcrypt are not exposed to the internal implementation.
* Big code cleanup. (Inspired by Brandon Gillespie). Also move asmarkm1999-09-201-0/+142
| | | | much as possible away from secure/ to make extending easier.
* The new crypt code broke "make world". Back it out.markm1999-01-231-120/+0
|
* Rewrite of crypt library to be more modular, and addition of thebrandon1999-01-211-0/+120
Secure Hashing Algorithm - 1 (SHA-1), along with the further refinement of what $x$salt$hash means. With this new crypt the following are all acceptable: $1$ $MD5$ $SHA1$ Note: $2$ is used by OpenBSD's Blowfish, which I considered adding as $BF$, but there is no actual need for it with SHA-1. However, somebody wishing to add OpenBSD password support could easilly add it in now. There is also a malloc_crypt() available in the library now, which behaves exactly the same as crypt(), but it uses a malloced buffer instead of a static buffer. However, this is not standard so will likely not be used much (at all). Also, for those interested I did a brief speed test Pentium 166/MMX, which shows the DES crypt to do approximately 2640 crypts a CPU second, MD5 to do about 62 crypts a CPU second and SHA1 to do about 18 crypts a CPU second. Reviewed by: Mark Murray
OpenPOWER on IntegriCloud