use RSA private key generated in php to encrypt in c <p>I have a RSA Private Key generated with openssl_pkey_new() in php. I save this in a txt file. Is it posible to use that key for decryptin in c. I tried this but with no success:</p> <pre><code>RSA *r = PEM_read_RSAPrivateKey("C:/xampp/htdocs/RSA/daten.txt", NULL, NULL, NULL); resultDecrypt = RSA_private_decrypt( 128 /* resultEncrypt*/ , encrypted, decrypted, r, RSA_PKCS1_OAEP_PADDING); printf("%d from decrypt: '%s'\n", resultDecrypt, decrypted); RSA_free ( r ); </code></pre> <p>Thanks!!</p>