> After lots and lots of testing, trying and debugging I still > haven't managed > to get the same results from RSA_sign and CryptSignHash. I've discovered a > problem with the base64 decoding function i use to decode the > hash i want to > sign, so now i get a different signature from RSA_sign but it's still not > the same as CryptSignHash. I've tried reversing the byte order with all > methods described above but nothing gave me the same result. > > I'm pretty desperate about finding the solution, could someone > who has tried > this before please post the code where RSA_sign gives the same result as > CryptSignHash after signing the same hash with the same > certificate? I'd be > really greatful. > > I'm a student working on a project to get my master degree and > the only part > that doesn't work yet is the signing part... I've already tried > really hard > and searched a lot but I think I'm out of ideas now...
Post your code, maybe somebody can spot the bug in it. Do you use PKCS#1 (Section 6.3) padding? DS ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org