excessive SHA1 calls
Love Hörnquist Åstrand
lha at samba.org
Thu Nov 24 11:27:07 GMT 2005
tridge at samba.org writes:
> Love,
>
> > About 24000 sha1 calls seems to be in the right dimension for one s2k, but
> > that shouldn't account for all your time since that would be be around 0.4s
> > for my slow hotplate, eh, powerbook.
>
> Is there any way to avoid this? Can we cache any of it?
>
> 0.4s per connection is a _lot_ to be paying. We've noticing it under
> valgrind as that becomes a lot more under a synthetic CPU.
Yes, its possible to cache the result of the s2k(password,enctype) on
success, and invalidate it on password change.
Love
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 477 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20051124/415a47c3/attachment.bin
More information about the samba-technical
mailing list