Re: [dev] [sbase] Patch to make md5 and sha1 more similar

From: sin <sin_AT_2f30.org>
Date: Mon, 15 Jul 2013 13:11:07 +0300

On Mon, Jul 15, 2013 at 02:00:35AM +0200, Jens Nyberg wrote:
> Hi,
>
> I've included a patch that makes minor changes to md5 and sha1. Both
> hashing functions are pretty similar but the code differed in a few places
> so I cleaned them both up a bit.
>
> Also I made some minor changes like moving the rol function to below the
> definitions and also instead of *= 8 I did a <<= 3 which is functionally
> equivalent but should save a tiny bit of speed (unless the compiler is
> smart enough to catch that and replaces it automatically).

I'd break this patch into multiple patches. The change from *= 8 to <<= 3
doesn't make sense. Maybe it did in the 80s but not anymore.
Received on Mon Jul 15 2013 - 12:11:07 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 15 2013 - 12:12:05 CEST