使用openssl在c中解密数据

使用openssl在c中解密数据,c,openssl,C,Openssl,在php中,我使用以下函数: openssl_get_privatekey和openssl_private_decrypt对一些数据进行解密 $privatekey = openssl_get_privatekey (file_get_contents("private.key")); openssl_private_decrypt($encrypted_data,$decrypted_data, $privatekey); 我怎样才能在c中实现同样的功能 欢迎提供一些建议或示例 佩里也许能帮

在php中,我使用以下函数:

openssl_get_privatekey和openssl_private_decrypt对一些数据进行解密

$privatekey = openssl_get_privatekey (file_get_contents("private.key"));
openssl_private_decrypt($encrypted_data,$decrypted_data, $privatekey);
我怎样才能在c中实现同样的功能

欢迎提供一些建议或示例

佩里也许能帮你

还有一些教程可以让您更深入地了解: