RE: Dev EVP Unterstand

2008-07-01 Thread David Schwartz
I'm not sure, that this code is correct? It has some minor issues but appears basically correct. EVP_EncryptInit_ex(ctx,EVP_aes_256_cbc(),NULL,key,iv); EVP_EncryptUpdate(ctx,outbuf,outlen,text,strlen(text));

Re: Dev EVP Unterstand

2008-07-01 Thread Dr. Stephen Henson
On Sat, Jun 28, 2008, Razack wrote: I'm not sure, that this code is correct? thx for help unsigned char text[]=Hello World!; char key[]=password; char iv[]=12345678; [snip]

Re: Dev EVP Unterstand

2008-06-30 Thread Vijay Kotari
I not too sure about using the same context for both decryption and encryption. It says in the man pages that * EVP**_**CIPHER**_**CTX**_**cleanup()* clears all information from a cipher context and free up any allocated memory associated with it. So, I think you should probably use different

Re: Dev EVP Unterstand

2008-06-30 Thread Prasad Pawar
It's working properly I execute program and output is : [EMAIL PROTECTED] Hello World! what is your problem? On Mon, Jun 30, 2008 at 4:12 PM, Vijay Kotari [EMAIL PROTECTED] wrote: I not too sure about using the same context for both decryption and encryption. It says in the man pages that