On Aug 29, 2011 2:54 PM, "Niels Möller" nisse@lysator.liu.se wrote:
nisse@lysator.liu.se (Niels Möller) writes:
I'd like to address the things I listed in a previous mail before release.
Now I have went through not only ripemd160, but all the supported hash functions. All are of the Merkle-Damgård type (except md2, which uses more stupid padding). I've tried to reduce the code duplication (in the source code) using some helper macros, and generally improve consistency a bit.
ripemd160.c got reduced to 44 non-comment lines, with all the complexity in ripemd160-compress.c, as it should.
Ah, and one other question: Do you want me to add your name to the copyright headers of the various ripemd160.c (I don't know how much editing you had to do when porting it from libgcrypt).
I don't think my name should be included in the copyright. I mainly stripped out libgcrypt specific code like gcry_burn_stack() and spelled out some typedefs (u32 -> uint32_t).
Documentation for the ripemd160 algorithm remains to do.
Regards, /Niels
-- Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26. Internet email is subject to wholesale government surveillance.