MD5 hash calculates differently on server

前端 未结 5 1980
一个人的身影
一个人的身影 2020-12-16 19:24

I am running some code that I have written in C which calls the md5 hashing functionality from a hashing library that someone else wrote (md5.c & md5.h). The odd behavi

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-16 20:05

    Try to replace (Md5.c line 41)

    typedef unsigned long int UINT4;

    by

    typedef uint32_t UINT4;

    (include stdint.h if needed)

    On a 64 bits machine long int are (usually) 64 bits long instead of 32

    EDIT :

    I tried on a 64 bits opteron this solves the problem.

提交回复
热议问题