Fixed it.

The algorithm is cleaner now too.

It's now based on the cbc test code in bftest.c in the OpenSSL source distribution.

It doesn't use the EVP stuff now. I'm using BF_set_key and BF_cbc_encrypt directly. It's more straightforward this way -- no finalization needed. Fixed chunk size.

Thanks.

Chuck







On June 11, 2010 10:35:49 P.M. EDT, David Schwartz <[email protected]> wrote:


Charlie wrote:

His algorithm has one part that doesn't seem right to me, but changing
it made things even worse.  It seems weird that the "Final" function is
inside the main for loop.  It seems like "final" should mean... final.
(ie: after the looping is done).

It's quite common that fixing one bug exposes others. The solution is to fix
the other bugs, not to put the one bug back and wonder why it doesn't work
*with* an obvious bug.

DS

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [email protected]


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [email protected]

Reply via email to