md5 failure

22 views
Skip to first unread message

m4nti5

unread,
Sep 1, 2011, 7:26:19 PM9/1/11
to iksemel development list
Hi all!, I've been using the library for quite long an suddenly I
found an error in the md5 generation, I don't know how to fix it (I
tried a couple of things in the md5.c file but I failed in my
attempts :( ), so here I will describe how to reproduce the problem:

If you try to use iks_md5_hash or iks_md5_print to generate a hash of
a string with a length of module 64 the algorithm fails, I compared it
with openssl functions and watch that the results were different, for
other lenghts the results were equal, for example, using the following
string of length 64:

"1234567890123456789012345678901234567890123456789012345678901234"

I got the following results:

with iks: 31d9c8118571109ccbfb16068c0e3668
with openssl: eb6c4179c0a7c82cc2828c1e6338e165

And if I try with the next string of length 128:

"12345678901234567890123456789012345678901234567890123456789012341234567890123456789012345678901234567890123456789012345678901234"

I got:

iks: ce3325823d11323adc9bd9af6b379497, openssl:
c23f8ee9c9375bd69ada95af3e706267

However for strings of other lengths the results of both iks and
openssl functions are the same. Would you please help me to find a
solution to this? thanks in advance
Reply all
Reply to author
Forward
0 new messages