aboutsummaryrefslogtreecommitdiff
path: root/libbb/pw_encrypt.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* *: slap on a few ALIGN1/2s where appropriateDenys Vlasenko2016-04-221-1/+1
| | | | | | | | | | The result of looking at "grep -F -B2 '*fill*' busybox_unstripped.map" text data bss dec hex filename 829901 4086 1904 835891 cc133 busybox_before 829665 4086 1904 835655 cc047 busybox Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* chpasswd: support -c argument and respect DEFAULT_PASSWD_ALGOPascal Bach2015-12-181-3/+7
| | | | | Signed-off-by: Pascal Bach <pascal.bach@siemens.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: don't die if crypt() returns NULLDenys Vlasenko2014-02-091-1/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* adduser: safe username passing to passwd/addgroupDenys Vlasenko2011-05-131-2/+23
| | | | | | | | | | | | | | | | | | | passwd: support creating SHA passwords random code shrink function old new delta crypt_make_pw_salt - 87 +87 adduser_main 883 904 +21 ... crypt_make_salt 99 89 -10 chpasswd_main 329 312 -17 packed_usage 28731 28691 -40 passwd_main 1070 1000 -70 cryptpw_main 310 224 -86 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 4/12 up/down: 154/-288) Total: -134 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: make GNU licensing statement forms more regularDenys Vlasenko2010-08-161-1/+1
| | | | | | | This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: move crypt_make_salt() to pw_encrypt.c, reuseDenis Vlasenko2008-12-071-9/+46
| | | | | | | | | | bin-to-ascii64 conversion which does not require an array. function old new delta to64 29 33 +4 to64_msb_first 63 62 -1 ascii64 65 - -65
* libbb: add optionl support for SHA256/512 encrypted passwordsDenis Vlasenko2008-11-101-15/+28
| | | | | | | | | | | | | | | function old new delta sha_crypt - 2423 +2423 cryptpw_main 128 183 +55 to64 - 29 +29 pw_encrypt 974 1000 +26 str_rounds - 11 +11 login_main 1532 1541 +9 packed_usage 25215 25200 -15 __md5_to64 29 - -29 ------------------------------------------------------------------------------ (add/remove: 3/1 grow/shrink: 3/1 up/down: 2553/-44) Total: 2509 bytes
* libbb: add a TODO to support new SHA-based encrypted passwordsDenis Vlasenko2008-11-071-12/+5
|
* *: introduce and use FAST_FUNC: regparm on i386, otherwise no-onDenis Vlasenko2008-06-271-2/+2
| | | | | | | text data bss dec hex filename 808035 611 6868 815514 c719a busybox_old 804472 611 6868 811951 c63af busybox_unstripped
* whitespace and comment fixes, no code changesDenis Vlasenko2008-06-161-4/+0
|
* Specially for Bernhard Fischer introduce USE_BB_CRYPTDenis Vlasenko2008-06-151-0/+17
| | | | | which selects between libc/custom crypt routines.
* make pw_encrypt() return malloc'ed string.Denis Vlasenko2008-06-121-4/+3
| | | | | | | text data bss dec hex filename 759802 604 6684 767090 bb472 busybox_old 759804 604 6676 767084 bb46c busybox_unstripped
* uclibc insists on having 70k static buffer for crypt.Denis Vlasenko2008-06-121-4/+49
| | | | | | | | | | | | For bbox it's not acceptable. Roll our own des and md5 crypt implementation. Against older uclibc: text data bss dec hex filename 759945 604 6684 767233 bb501 busybox_old 759766 604 6684 767054 bb44e busybox_unstripped so, we still save on code size.
* libbb: random hunt for staticsDenis Vlasenko2007-06-181-7/+5
| | | | | | | | | | | | | | | | function old new delta bb_askpass 306 321 +15 pw_encrypt 38 39 +1 static.passwd 64 4 -60 static.cipher 128 4 -124 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/2 up/down: 16/-184) Total: -168 bytes # size busybox_old busybox_unstripped text data bss dec hex filename 683705 2704 14240 700649 ab0e9 busybox_old 683721 2704 14064 700489 ab049 busybox_unstripped
* passwd: small size optimization. salt generation improvedDenis Vlasenko2006-11-301-1/+0
| | | | (really generated different salts even if called back-to-back).
* usage.h: fix compile-time bugs exposed by previous changeDenis Vlasenko2006-09-271-3/+1
|
* Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate."Robert P. J. Day"2006-07-101-14/+1
|
* skip_whitespace() shouldn't claim its return value is const, it doesn't knowRob Landley2006-06-181-1/+1
| | | | that and callers wind up typecasting it back.
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley2006-03-061-1/+1
| | | | definitions. (That should only be on prototypes.)
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-1/+1
|
* Update a bunch of docs. Run a script to update my email addr.Eric Andersen2003-07-141-1/+1
|
* Vodz, last_patch_86Glenn L McGrath2003-05-261-4/+1
|
* Port over the last of the tinylogin appletsEric Andersen2002-06-231-0/+48
-Erik