On 23 April 2012 13:16, MauMau <maumau...@gmail.com> wrote: > /* encrypt first block */ > EVP_EncryptUpdate(&enc_ctx, block1, &outlen, block1, 4096); > /* encrypt second block */ > EVP_EncryptInit_ex(&enc_ctx, NULL, NULL, NULL, NULL); > EVP_EncryptUpdate(&enc_ctx, block2, &outlen, block2, 4096);
I believe this will reeuse the same IV for block2 that it uses for block1. It will appear to work but is a really bad idea and will lead to major security problems. Matt ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org