> btw, when i try to get the error code by > printf("Error code: %d", ERR_get_error());
> i get Error code: 67567722 Your code says: result = RSA_public_decrypt(pValidationData.ulValidationDataLength, pValidationData.rgbValidationData, outputPlaintext, publicKey, RSA_PKCS1_PADDING); Are you 100% sure the data had PKCS#1 v1.5 padding? error:0407006A:rsa routines:RSA_padding_check_PKCS1_type_1:block type is not 01 DS ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]