summaryrefslogtreecommitdiffstats
path: root/libcrypt/crypt.c
Commit message (Collapse)AuthorAgeFilesLines
* libcrypt: shrink crypt() again - unmodulariseBernhard Reutner-Fischer2012-01-181-30/+13
| | | | | | | | | | | | | modularisation added too much bloat for no benefit, undo. $ ../busybox/scripts/bloat-o-meter .lib.05/libcrypt-0.9.33-rc1-git.so lib/libcrypt-0.9.33-rc1-git.so function old new delta crypt 130 46 -84 .rodata 2704 - -2704 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/1 up/down: 0/-2788) Total: -2788 bytes Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libcrypt: add support for SHA256-CRYPT password hashingWilliam Pitcock2011-12-221-0/+3
| | | | | | | | | | | | | | This is based on Ulrich Drepper's implementation in GLIBC, but hacked up to work in uClibc. The differences from the GLIBC version are as follows: - b64_from_24bit() has been converted into a macro - Usage of GLIBC-isms (such as libc_freeres_ptr) have been removed It is enabled by the UCLIBC_HAS_SHA256_CRYPT_IMPL configuration symbol. You must have UCLIBC_HAS_CRYPT_IMPL enabled as well. Signed-off-by: William Pitcock <nenolod@dereferenced.org> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libcrypt: add support for SHA512-CRYPT password hashingWilliam Pitcock2011-12-221-0/+3
| | | | | | | | | | | | | | This is based on Ulrich Drepper's implementation in GLIBC, but hacked up to work in uClibc. The differences from the GLIBC version are as follows: - b64_from_24bit() has been converted into a macro - Usage of GLIBC-isms (such as libc_freeres_ptr) have been removed It is enabled by the UCLIBC_HAS_SHA512_CRYPT_IMPL configuration symbol. You must have UCLIBC_HAS_CRYPT_IMPL enabled as well. Signed-off-by: William Pitcock <nenolod@dereferenced.org> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libcrypt: make crypt() itself more modularWilliam Pitcock2011-12-221-6/+24
| | | | | | | | By using a function table, we can more cleanly support new crypt implementations, such as SHA256 ($5$) and SHA512 ($6$). Signed-off-by: William Pitcock <nenolod@dereferenced.org> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libcrypt: do not cast away const of key/saltMike Frysinger2011-11-201-2/+5
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* fix by Bernhard Fischer to move local prototypes to a header to keep things saneMike Frysinger2006-08-241-6/+4
|
* fixup my copyright notice, trim stale remnants of older notices whichEric Andersen2006-07-051-5/+1
| | | | I had clearly run search/replace on that were cluttering things up.
* Update licensePeter S. Mazinger2006-01-161-17/+4
|
* Hidden __md5_crypt/__des_crypt, missed to adapt prototypePeter S. Mazinger2005-12-131-2/+2
|
* import license updates from glibcMike Frysinger2005-11-231-12/+12
|
* Cleanup crypt and remove the crypt_r stuff, since SuSv3Eric Andersen2002-08-071-21/+5
| | | | | (IEEE Std 1003.1-2001) states that crypt need not be reentrant. -Erik
* Rework libcrypt based on the openbsd crypt implementation so that it passes theEric Andersen2002-04-251-0/+12
| | | | | | | DES validation suite. setkey_r, encrypt_r, and __des_crypt_r are not really reentrant now, and that should be fixed (or we should drop crypt_r and friends which are not supported by SuSv3). -Erik
* Don't try to return stuff from void funcsEric Andersen2002-02-261-2/+2
|
* Adjust function naming and make sure everything is properlyEric Andersen2002-02-261-3/+3
| | | | | static to avoid symbol leakage. -Erik
* Update my email address. I am no longer andersen@lineo.comEric Andersen2001-12-191-3/+3
|
* Add in a libcrypt implementation. About 8k.Eric Andersen2001-04-191-0/+44
-Erik