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]
>
>
> EV
> 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));
>EVP_EncryptFinal_ex(&ctx,outbuf
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 th
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 con
I'm not sure, that this code is correct?
thx for help
code:
#include
#include
int main(int argc, char *argv[])
{
unsigned char text[]="Hello World!";
char key[]="password";
char iv[]="12345678";
unsigned char ou