Re: bad decrypt in EVP_CipherFinal_ex

2007-11-05 Thread MaxAndr
://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

RE: bad decrypt in EVP_CipherFinal_ex

2007-11-05 Thread David Schwartz
I wonder why my buffer of iv is overwritten. What can I use it for? To continue encrypting or decrypting. If the overwritten iv is useless, why doesn't the library make a clone of it for its own purposes? It's not useless, it's the next IV to use. I am not sure about overwriting the iv

Re: bad decrypt in EVP_CipherFinal_ex

2007-11-02 Thread Alex Queiroz
Hallo, On 11/1/07, Jorge Fernandez [EMAIL PROTECTED] 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. A friend of mine solved it, it was a problem

Re: bad decrypt in EVP_CipherFinal_ex

2007-11-01 Thread Jorge Fernandez
2007/10/30, Alex Queiroz [EMAIL PROTECTED]: Hallo, I am using the symmetric cypher functions to encrypt and then decrypt a string. The cipher is aes-256-cbc. When I try to decrypt the string, I get this error: error 06065064: digital envelope routines: EVP_DecryptFinal_ex: bad decrypt

bad decrypt in EVP_CipherFinal_ex

2007-10-30 Thread Alex Queiroz
Hallo, I am using the symmetric cypher functions to encrypt and then decrypt a string. The cipher is aes-256-cbc. When I try to decrypt the string, I get this error: error 06065064: digital envelope routines: EVP_DecryptFinal_ex: bad decrypt I am using the same key and same iv. The