has anybody used this before? I always crash at MDxInit and I don't understand why. I just feed it a pointer to a MDxSum struct as in the C example, yet still it crashes :-/

So has anybody used this library successfully before? (in asm :))

thx

-H-
Posted on 2002-01-06 20:47:46 by Hiroshimator
Yes i have used rudeboy?s md5 library (in masm) in the past with no problems.

MD5Sum STRUCT

dwSum1 dd 0
dwSum2 dd 0
dwSum3 dd 0
dwSum4 dd 0
MD5Sum ENDS

MD5_Hash MD5Sum <>

MDxInit proc uses esi MD5Ptr:DWORD
assume esi:ptr MD5Sum
mov esi, MD5Ptr
mov eax, 067452301h
mov [esi].dwSum1, eax
mov eax, 0efcdab89h
mov [esi].dwSum2, eax
mov eax, 098badcfeh
mov [esi].dwSum3, eax
mov eax, 010325476h
mov [esi].dwSum4, eax
ret
MDxInit endp

invoke MDxInit, addr MD5_Hash

Maybe you can debug your code and see where it exactly crashed :confused:

sav
Posted on 2002-01-07 01:55:29 by savage
the problem seems to be with the lib somewhere. I used the code directly and that called fine. Oh well, not much of a change to make :)
Posted on 2002-01-07 07:35:14 by Hiroshimator