ciphertext?
> thanks
> -Original Message-
> From: owner-openssl-us...@openssl.org
> [mailto:owner-openssl-us...@openssl.org] On Behalf Of Victor Duchovni
> Sent: Thursday, January 15, 2009 3:00 PM
> To: openssl-users@openssl.org
> Subject: Re: Help with EVP_DecryptFinal_
: Re: Help with EVP_DecryptFinal_ex:bad decrypt
On Thu, Jan 15, 2009 at 02:45:49PM -0500, Adam Bender wrote:
> > BUG: Don't pass the same buffer/offset to EncryptFinal_ex(), this
clobbers
> > the first encrypted block. Instead use "sym_out_buf + out_total" if
the
> &g
On Thu, Jan 15, 2009 at 02:45:49PM -0500, Adam Bender wrote:
> > BUG: Don't pass the same buffer/offset to EncryptFinal_ex(), this clobbers
> > the first encrypted block. Instead use "sym_out_buf + out_total" if the
> > buffer is long enough for both the original ciphertext and the final block.
>
On Thu, Jan 15, 2009 at 2:29 PM, Victor Duchovni <
victor.ducho...@morganstanley.com> wrote:
> On Wed, Jan 14, 2009 at 06:17:28PM -0500, Adam Bender wrote:
>
> > if (!EVP_EncryptUpdate(&ctx, sym_out_buf, &out_total, (const unsigned
> char
> > *) data, data_len)) {
> > ERR_print_errors_fp(std
On Wed, Jan 14, 2009 at 06:17:28PM -0500, Adam Bender wrote:
> if (!EVP_EncryptUpdate(&ctx, sym_out_buf, &out_total, (const unsigned char
> *) data, data_len)) {
> ERR_print_errors_fp(stdout); }
> if (!EVP_EncryptFinal_ex(&ctx, sym_out_buf, &out_len)) {
> ERR_print_errors_fp(stdout); }
BU