[PATCH 0/5] simplify and improve crypt_make_salt()

Rasmus Villemoes rasmus.villemoes at prevas.dk
Thu May 23 07:30:59 UTC 2024


On 15/04/2024 14.56, Rasmus Villemoes wrote:
> Currently, crypt_make_salt() can only return 2^28 different salt
> strings. There are some low-hanging fruits allowing us to reduce the
> code size, and even with patch 5 which obviously by itself increases
> the footprint, the combined result of these patches is
> 
> function                                             old     new   delta
> crypt_make_salt                                      104      95      -9
> i64c                                                  41      24     -17
> ------------------------------------------------------------------------------
> (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-26)             Total: -26 bytes
> 
> while making sure (in the normal case where /dev/urandom is available)
> that the salt string is completely random, and that we are not in any
> case doing worse than what the current code does.

ping ping



More information about the busybox mailing list