libbb/crypt: code shrink

function                                             old     new   delta
to64_msb_first                                         -      63     +63
des_crypt                                           1509    1338    -171
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 63/-171)          Total: -108 bytes
This commit is contained in:
Denis Vlasenko
2008-12-04 15:29:35 +00:00
parent 9c6d12993f
commit d324e1b808
2 changed files with 39 additions and 31 deletions

View File

@ -65,10 +65,6 @@
* by Erik Andersen to remove reentrance stuff...
*/
#define MD5_MAGIC_STR "$1$"
#define MD5_MAGIC_LEN (sizeof(MD5_MAGIC_STR) - 1)
static const unsigned char __md5__magic[] = MD5_MAGIC_STR;
/*
* UNIX password
*
@ -163,5 +159,3 @@ md5_crypt(char result[MD5_OUT_BUFSIZE], const unsigned char *pw, const unsigned
return result;
}
#undef MD5_MAGIC_STR
#undef MD5_MAGIC_LEN