aboutsummaryrefslogtreecommitdiff
path: root/libbb/sha1.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* big endian warning fixesDenys Vlasenko2009-11-071-10/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb/sha: #undef macro names before #defining them.Denys Vlasenko2009-07-051-0/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomtest fixesDenis Vlasenko2009-03-281-6/+5
|
* sha: merge K[] for sha256 and 512Denis Vlasenko2009-03-151-125/+96
| | | | | | | | | | | | function old new delta sha_K - 640 +640 sha256_process_block64 440 425 -15 sha512_process_block128 1336 1283 -53 K512_lo 320 - -320 K256 320 - -320 ------------------------------------------------------------------------------ (add/remove: 1/2 grow/shrink: 0/2 up/down: 640/-708) Total: -68 bytes
* sha: fix thinko in sha512; add FAST_FUNC to sha1/sha256Denis Vlasenko2009-03-151-4/+4
| | | | | | | | | | | function old new delta sha512_process_block128 1334 1336 +2 sha1_hash 112 111 -1 sha256_process_block64 446 440 -6 sha1_process_block64 494 484 -10 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/3 up/down: 2/-17) Total: -15 bytes
* sha: merge sha1/sha256 handling (they are similar enough for this),Denis Vlasenko2009-03-151-202/+88
| | | | | | | | | | | | | | | | | | | | | shrink sha215 code function old new delta sha1_end 129 142 +13 sha1_process_block64 486 494 +8 sha256_begin 37 44 +7 sha1_begin 49 56 +7 sha1_hash 108 112 +4 ... sha512_end 204 184 -20 sha512_process_block128 1405 1334 -71 sha256_process_block64 520 446 -74 sha256_end 147 - -147 sha512_hash 297 130 -167 sha256_hash 260 - -260 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 11/9 up/down: 59/-752) Total: -693 bytes
* sha: reduce sha256/512 context size. Make sha1/sha256 code more similarDenis Vlasenko2009-03-121-69/+76
| | | | | | | | | | | function old new delta sha512_end 182 204 +22 sha256_end 137 147 +10 sha1_hash 113 108 -5 sha1_end 143 129 -14 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/2 up/down: 32/-19) Total: 13 bytes
* sha: tiny shrinkDenis Vlasenko2009-03-121-8/+5
|
* add comment about sha testingDenis Vlasenko2009-03-121-1/+7
|
* shrink sha hashing a bit more (remove wbuflen field from ctx),Denis Vlasenko2009-03-121-122/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | remove the requirement for aligned buffer function old new delta sha512_hash 262 297 +35 sha1_end 136 143 +7 passwd_main 1019 1023 +4 sha256_end 135 137 +2 count_lines 72 74 +2 sha256_hash 259 260 +1 popstring 164 158 -6 sha512_begin 88 81 -7 sha256_begin 44 37 -7 parse_expr 832 824 -8 bbunpack 446 438 -8 sha256_process_block64 529 520 -9 md5_end 166 151 -15 evaltreenr 817 802 -15 evaltree 817 802 -15 sha512_end 204 182 -22 sha512_process_block128 1444 1405 -39 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 6/11 up/down: 51/-151) Total: -100 bytes
* shrink sha hashingDenis Vlasenko2009-03-121-48/+33
| | | | | | | | | | | | | 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
* sha256/512: code shrink. Run-tested.Denis Vlasenko2009-03-111-284/+253
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta sha512_process_block128 - 1444 +1444 sha1_process_block64 - 542 +542 sha256_process_block64 - 529 +529 K512_lo - 320 +320 K256 - 320 +320 init512_lo - 32 +32 init256 - 32 +32 sha1_hash 99 128 +29 sha256_end 160 135 -25 sha1_end 189 160 -29 sha512_end 237 204 -33 sha256_begin 77 44 -33 sha512_begin 154 88 -66 sha256_hash 338 259 -79 sha512_hash 358 262 -96 sha1_compile 542 - -542 sha256_process_block 594 - -594 static.K 896 - -896 sha512_process_block 1861 - -1861 ------------------------------------------------------------------------------ (add/remove: 7/4 grow/shrink: 1/7 up/down: 3248/-4254) Total: -1006 bytes text data bss dec hex filename 808013 468 7856 816337 c74d1 busybox_old 807007 468 7856 815331 c70e3 busybox_unstripped
* libbb: disable a second md5 implementation which managed to creep in :)Denis Vlasenko2008-11-111-9/+3
| | | | | | | | | | | | | | | | | | | | function old new delta sha512_end 239 237 -2 sha256_end 162 160 -2 sha1_end 191 189 -2 md5_end 168 166 -2 __md5__magic 4 - -4 md5_crypt 627 621 -6 static.S 16 - -16 __md5_Init 42 - -42 static.P 64 - -64 __md5_Final 131 - -131 __md5_Update 153 - -153 static.C 268 12 -256 __md5_Transform 293 - -293 ------------------------------------------------------------------------------ (add/remove: 0/7 grow/shrink: 0/6 up/down: 0/-973) Total: -973 bytes
* sha256,sha512: new applets. +4.9kbDenis Vlasenko2008-11-101-28/+538
| | | | | | | we will require sha256/512 code for new $5$ and $6$ style password hashes anyway, they are showing up already in people's /etc/passwd...
* Typo fixesDenis Vlasenko2008-11-101-1/+1
|
* libbb: constify some data in sha1. gcc is clever enough to do it itself,Denis Vlasenko2008-11-101-22/+13
| | | | | thus no actual code changes. Also some pointless beautifuing crept in.
* *: introduce and use FAST_FUNC: regparm on i386, otherwise no-onDenis Vlasenko2008-06-271-3/+3
| | | | | | | text data bss dec hex filename 808035 611 6868 815514 c719a busybox_old 804472 611 6868 811951 c63af busybox_unstripped
* delete tons of extra #includesDenis Vlasenko2007-05-311-8/+0
|
* style fixesDenis Vlasenko2006-12-261-1/+1
| | | | last xcalloc replaced by xzalloc
* Tried to find sha1_crypt - nope... ok, save few bytes in md5_sha1_sum.cDenis Vlasenko2006-09-281-17/+16
| | | | (time to sleep, 02:28 in the morning)...
* whitespace cleanupDenis Vlasenko2006-09-171-2/+2
|
* Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate."Robert P. J. Day"2006-07-101-23/+1
|
* Standardize on the vi editing directives being on the first line."Robert P. J. Day"2006-07-021-0/+1
|
* Migrate endianness macros.Rob Landley2006-05-051-1/+1
|
* - move buffer allocation schemes to libbb.hBernhard Reutner-Fischer2006-04-031-1/+1
| | | | - include the correct headers: applets need busybox.h while lib* need libbb.h
* just whitespace fixesMike Frysinger2006-03-281-7/+7
|
* Patch from Devin Bayer to split up hash_fd.c into md5.c and sha1.c. (I tweakedRob Landley2006-02-211-0/+200
md5_sha1_sum.c to convert some #ifdef CONFIG to if(ENABLE).)