Re: Problem with EVP_CipherFinal_ex

2007-07-20 Thread Jim Fox
You have to save the entire encrypted block. cipher_final will tell you the length of the padded and encrypted block. So, should i assume that encrypted buffer will always be a multiple of block_size ... I would say that my application can't allow that though. Why do you care at all? Jus

Re: Problem with EVP_CipherFinal_ex

2007-07-20 Thread Jorge Fernandez
Thank you for the response, Jim 2007/7/20, Jim Fox <[EMAIL PROTECTED]>: You have to save the entire encrypted block. cipher_final will tell you the length of the padded and encrypted block. So, should i assume that encrypted buffer will always be a multiple of block_size ... I would say th

Re: Problem with EVP_CipherFinal_ex

2007-07-20 Thread Jim Fox
I understand that, when encrypting, the last block have to be padded to encrypt it and so i do, but i dont save to the encrypted file the padded bytes, because i need the encrypted data to be the same size than original. You have to save the entire encrypted block. cipher_final will tell you