[PATCH 1/2] libcrypt: make crypt() more modular

William Pitcock nenolod at dereferenced.org
Thu Nov 17 08:19:22 UTC 2011


On Wed, 16 Nov 2011 22:33:56 +0100
Bernhard Reutner-Fischer <rep.dot.nop at gmail.com> wrote:

> On Nov 16, 2011 12:50 PM, "William Pitcock" <nenolod at dereferenced.org>
> wrote:
> >
> > By using a function table, we can more cleanly support new crypt
> > implementations, such as SHA256 ($5$) and SHA512 ($6$).
> 
> Bloat-o-meter output?
> thanks,

Switching to this way of doing crypt() adds 132 bytes of overhead total.
I do not personally think 132 bytes is enough to be concerned about.

petrie:~/uClibc$ ~/dev-src/linux/scripts/bloat-o-meter ./lib-origin-master/libcrypt-0.9.33-git.so ./lib/libcrypt-0.9.33-git.so
add/remove: 1/0 grow/shrink: 1/0 up/down: 132/0 (132)
function                                     old     new   delta
crypt                                         92     192    +100
crypt_impl_tab                                 -      32     +32

William


More information about the uClibc mailing list