日期:2014-05-18  浏览次数:20884 次

C调用openssl加密,解密,证书等函数问题
加密解密怎么写?我对里面的参数不了解,最好有简单的代码例子。
C/C++ code

int    RSA_public_encrypt(int flen, const unsigned char *from,
        unsigned char *to, RSA *rsa,int padding);
int    RSA_private_decrypt(int flen, const unsigned char *from, 
        unsigned char *to, RSA *rsa,int padding);



C/C++ code

int RSA_sign(int type, const unsigned char *m, unsigned int m_length,
    unsigned char *sigret, unsigned int *siglen, RSA *rsa);//参数中type是什么意思?



如何验证证书的有效性,如果生成证书?
对openssl不太了解,这方面的资料也没找到多少....
各位前辈帮帮忙,解决的话我还会加分的o_0!
下面是在C板块发的帖,一样的
http://topic.csdn.net/u/20100322/14/65da0862-eded-4b26-af67-41a9ca97d9fa.html

------解决方案--------------------
C#我倒是找到解决方案了,C。。。我不会
------解决方案--------------------
顶。。。。。。。。。。。