I\'ve found some md5 code that consists of the following prototypes...
I\'ve been trying to find out where I have to put the string I want to hash, what functions I
It would appear that you should
struct MD5context and pass it to MD5Init to get it into a proper starting conditionMD5Update with the context and your dataMD5Final to get the resulting hashThese three functions and the structure definition make a nice abstract interface to the hash algorithm. I'm not sure why you were shown the core transform function in that header as you probably shouldn't interact with it directly.
The author could have done a little more implementation hiding by making the structure an abstract type, but then you would have been forced to allocate the structure on the heap every time (as opposed to now where you can put it on the stack if you so desire).