On Tue, Jul 15, 2014 at 07:31:59PM +0200, noloa...@gmail.com via RT wrote:
> Below is from crypto/evp/evp_key.c.
> 
> Notice that `addmd` is never set to 1. *If* the routine needs to loop
> back to the top to finish fulfilling a derivation request, then the
> previous hash is *not* added back into the computation. That is, this
> is never executed:
> 
>         if (addmd++)
>             if (!EVP_DigestUpdate(&c,&(md_buf[0]),mds))

Well, addmd will be 1 after the first loop iteration due to the post-increment
operator and then it will be folded in.
 
Ciao, Marcus
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to