What do you think strlen(in) will return? You are mixing up variable length C 
strings (nul terminated) with binary data - always pass the true data length

Carl

On Thu 29/03/12 12:58 PM , "Chandrasekhar" chandrasek...@evolute-sys.com sent:
> Hi , 
> 
> I am new to this openssl libraries. 
> 
> I am facing a issue in the below code. 
> 
> When I encrypt, it is giving all zeroes as output. And when I
> decrypt I am not getting the exact message. 
> 
> Please, I need help in this. 
> 
> #define BUFSIZE             1024 
> int main(int argc, char *argv[]) 
> 
> { 
> 
> int i; 
> 
> unsigned char out[BUFSIZE]={0}; 
> 
> unsigned char in[]={0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00}; 
> 
> for(i=0;i
> 


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to