> From: owner-openssl-us...@openssl.org On Behalf Of krishnamurthy santhanam > Sent: Friday, 26 August, 2011 16:11
> Thanks for your detailed Explanation Dave. I am going to encrypt > using AES in server side using EVP , > EVP_EncryptInit_ex(&x, EVP_aes_256_cbc(), NULL, key,iv)) > EVP_EncryptUpdate(&x, outbuf, &outlen, (const unsigned char*) intext, strlen(intext))) > EVP_EncryptFinal_ex(&x,outbuf+outlen,&tmplen)) > client will be using JAVE to decrypt the same. should i use > the above same funtion to encrypt the or i must use > AES_cbc_encrypt(); It's your choice. You can use EVP and select AES (or other); or you can use AES directly, but you can't just call AES_cbc_encrypt: you have to set the key schedule first, and you have to add padding on encrypt and remove it on decrypt. These are the sort of details that EVP handles for you (exact details vary by algorithm). ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org