OSDN Git Service

sha: merge sha1/sha256 handling (they are similar enough for this),
authorDenis Vlasenko <vda.linux@googlemail.com>
Sun, 15 Mar 2009 02:28:05 +0000 (02:28 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sun, 15 Mar 2009 02:28:05 +0000 (02:28 -0000)
commite9afc468fac07f02c6e4ce160150e737928f8f07
treea07c2491896901b6c2132ef7236ce90eba95c02a
parent7241e6d37781dc7e72e2b8b809f2643b98b66c25
sha: merge sha1/sha256 handling (they are similar enough for this),
 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
include/libbb.h
libbb/sha1.c