cryptpw: fix "cryptpw -a des -- TEXT" case
authorDenis Vlasenko <vda.linux@googlemail.com>
Sun, 15 Jun 2008 08:12:00 +0000 (08:12 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sun, 15 Jun 2008 08:12:00 +0000 (08:12 -0000)
commit04087c6bbd247ef5802de3f8bd625fa3643e23e2
treeced2e67083fca4ea67714988f63f6ad6dd99a07b
parentd50dda8c3501af9d593cd11272a15b480864a01c
cryptpw: fix "cryptpw -a des -- TEXT" case
libbb/pw_encrypt_des.c: optimize

function                                             old     new   delta
cryptpw_main                                         177     157     -20
des_crypt                                           1682    1512    -170
pw_encrypt                                          1036     842    -194
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-384)           Total: -384 bytes

Run tested.
libbb/pw_encrypt_des.c
loginutils/cryptpw.c