Jorge Fernandez-3 wrote:
> 
> Make sure you use the same iv that you used when encrypting. You should
> make
> a copy of the iv vector, since the encrypting process overwrites the
> buffer
> of the iv that you pass.
> 

Hi!

I wonder why my buffer of iv is overwritten. What can I use it for?
If the overwritten iv is useless, why doesn't the library make a clone of it
for its own purposes?

I am not sure about overwriting the iv by encrypting process
(EVP_EncryptInit() accepts pointer to const), but EVP_BytesToKey() does it.

Thanks in advance.
-- 
View this message in context: 
http://www.nabble.com/bad-decrypt-in-EVP_CipherFinal_ex-tf4718597.html#a13583302
Sent from the OpenSSL - User mailing list archive at Nabble.com.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to