aboutsummaryrefslogtreecommitdiff
path: root/libbb/pw_encrypt_sha.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tls: add 2nd cipher_id, TLS_RSA_WITH_AES_128_CBC_SHA, so far it doesn't workDenys Vlasenko2017-01-241-1/+2
| | | | | | | | | | Good news that TLS_RSA_WITH_AES_256_CBC_SHA256 still works with new code ;) This change adds inevitable extension to have different sized hashes and AES key sizes. In libbb, md5_end() and shaX_end() are extended to return result size instead of void - this helps *a lot* in tls (the cost is ~5 bytes per _end() function). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: eliminate redundant variable in sha_cryptDenys Vlasenko2017-01-151-8/+7
| | | | | | | function old new delta sha_crypt 1136 1130 -6 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb/pw_encrypt_sha: forgot to move &ctx to 1st param here in sha hash reworkDenys Vlasenko2010-12-011-25/+25
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* whitespace cleanupDenys Vlasenko2010-10-291-3/+3
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* shrink sha hashingDenis Vlasenko2009-03-121-1/+1
| | | | | | | | | | | | | function old new delta sha512_hash 262 281 +19 sha512_end 204 221 +17 sha1_hash 128 113 -15 static.mask 16 - -16 static.bits 16 - -16 sha1_end 160 136 -24 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 2/2 up/down: 36/-71) Total: -35 bytes
* timeout: new applet. 370 bytes. by Roberto Foglietta.Denis Vlasenko2008-11-241-1/+1
|
* libbb: sha_crypt -123 bytesDenis Vlasenko2008-11-131-30/+34
|
* libbb/pw_encrypt_sha: -28 bytesDenis Vlasenko2008-11-131-11/+9
|
* libbb: remove glibc-style bloat from sha_crypt. -1130 bytes.Denis Vlasenko2008-11-131-4/+37
| | | | | cryptpw: add more difficult test vectors.
* libbb: add optionl support for SHA256/512 encrypted passwordsDenis Vlasenko2008-11-101-0/+251
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