diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-11-28 12:21:23 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-11-28 12:21:23 +0100 |
commit | 00b5051cd25ef7e42ac62637ba16b70d3ac1014a (patch) | |
tree | 15dc2580b3724cf2151126d43237f41e5bd058d8 /testsuite/cryptpw.tests | |
parent | cfb615781df5c7439fe0060a85e6b6a56d10dc7f (diff) | |
download | busybox-w32-00b5051cd25ef7e42ac62637ba16b70d3ac1014a.tar.gz busybox-w32-00b5051cd25ef7e42ac62637ba16b70d3ac1014a.tar.bz2 busybox-w32-00b5051cd25ef7e42ac62637ba16b70d3ac1014a.zip |
libbb: code shrink in des encryption, in setup_salt()
function old new delta
pw_encrypt 978 971 -7
.rodata 108208 108192 -16
des_crypt 1211 1181 -30
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-53) Total: -53 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/cryptpw.tests')
-rwxr-xr-x | testsuite/cryptpw.tests | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/cryptpw.tests b/testsuite/cryptpw.tests index 8ec476c9f..0dd91fe15 100755 --- a/testsuite/cryptpw.tests +++ b/testsuite/cryptpw.tests | |||
@@ -7,6 +7,20 @@ | |||
7 | 7 | ||
8 | # testing "description" "command" "result" "infile" "stdin" | 8 | # testing "description" "command" "result" "infile" "stdin" |
9 | 9 | ||
10 | #optional USE_BB_CRYPT | ||
11 | testing "cryptpw des 12" \ | ||
12 | "cryptpw -m des QWErty '123456789012345678901234567890'" \ | ||
13 | '12MnB3PqfVbMA\n' "" "" | ||
14 | |||
15 | testing "cryptpw des 55" \ | ||
16 | "cryptpw -m des QWErty 55" \ | ||
17 | '55tgFLtkT1Y72\n' "" "" | ||
18 | |||
19 | testing "cryptpw des zz" \ | ||
20 | "cryptpw -m des QWErty zz" \ | ||
21 | 'zzIZaaXWOkxVk\n' "" "" | ||
22 | #SKIP= | ||
23 | |||
10 | optional USE_BB_CRYPT_SHA | 24 | optional USE_BB_CRYPT_SHA |
11 | testing "cryptpw sha256" \ | 25 | testing "cryptpw sha256" \ |
12 | "cryptpw -m sha256 QWErty '123456789012345678901234567890'" \ | 26 | "cryptpw -m sha256 QWErty '123456789012345678901234567890'" \ |