RE: RSA encrypt in AIX!

2004-03-02 Thread Lyngmo Ted
> my fuction work well in windows2000 and red hat linux9,but in > AIX, RSA_public_encrypt always return -1.who can help me?this > is my code:(I use openssl0.9.7c) Have you checked ERR_get_error()? Kind regards, Ted Lyngmo __ Open

RSA encrypt in AIX!

2004-03-02 Thread 张 琦
my fuction work well in windows2000 and red hat linux9,but in AIX,RSA_public_encrypt always return -1.who can help me?this is my code:(I use openssl0.9.7c) long __cdecl CEncrypt(char* x509FileName, const unsigned char* fromBuf, int fromLen, unsigned char* toBuf, int* toLen) { EVP_PKEY *pubKey