![]() |
|
#1
|
|||
|
|||
Problem after converting int to chari 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 |
Recent GIDBlog
US Elections and the ?Voter?s Responsibility? by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Another FX 5600 problem (but with details that might shed light on this) | BobDaDuck | Computer Hardware Forum | 2 | 16-Apr-2004 08:53 |
| (read/write file) newbie need help plz | momotx | C Programming Language | 6 | 28-Jan-2004 14:40 |
| convert long to pointer to char | realpopeye | C++ Forum | 2 | 26-Sep-2003 11:22 |
| char to operator | calculus87 | C++ Forum | 3 | 04-Sep-2003 11:05 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The