Update: !!! [AEC CBC decryption] Decrypted data Length problem (AES_cbc_encrypt)...

2008-05-19 Thread karim Bendadda
*Sorry for the first mail!!* Hi all, I'm new on openssl development, so I'm sorry if that a beginner's question . I'm trying to decrypt a *base64 AES CBC* encrypted data (using the *AES_cbc_encrypt*). The base64 encoding/decoding works fine. the code below works depending on data length:

Re: Update: !!! [AEC CBC decryption] Decrypted data Length problem (AES_cbc_encrypt)...

2008-05-19 Thread Michael S. Zick
On Mon May 19 2008 09:35, karim Bendadda wrote: *Sorry for the first mail!!* Unless you can guarantee that the strings do not contain embedded zeros; strlen() will not give the expected results. Mike Hi all, I'm new on openssl development, so I'm sorry if that a beginner's question .

Re: Update: !!! [AEC CBC decryption] Decrypted data Length problem (AES_cbc_encrypt)...

2008-05-19 Thread karim Bendadda
Thank you for your quick answer! I see what you mean... that's the problem: How can I guarantee this?? I will receive an encrypted data, I have the key and the vector. How can I decrypted the data ?? Thanks! On Mon, May 19, 2008 at 4:53 PM, Michael S. Zick [EMAIL PROTECTED] wrote: On Mon