i converted the following ints into unsigned chars using sprintf as follows:

int x = 1, y = 2, z = 3;

unsigned char partIn[10];

sprint f (partIn, "%d,%d,%d", x,y,z);

once conversion is complete 'partIn' is inserted into the following function:

R_SignUpdate (&context, partIn, partInLen);

This function uses a helper function:

MD5_DigestUpdate(context,partIn,partInLen) to calculate a message digest using the integers specified in partIn as "x, y and z".

There is a second function under the same main argument:

R_VerifyUpdate (&context, partIn, partInLen);

This function also uses the same helper function:

MD5_DigestUpdate(context,partIn,partInLen) to calculate a message digest using the integers specified in partIn as "x, y and z".

THE PROBLEM:

Both functions produce different message digests eventhough i pass on the same 'partIn' with the same converted integers.

Why does it give two totally different values when the same formula is used with the same input arguments???

Please any immediate help would be deeply appreciated. this cde is part of my MSc project and the deadline is getting closer !!

Regards,

ise152