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

Re: bad decrypt in EVP_CipherFinal_ex

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

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 probl

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: b