Re: pgcrypto: openssl digest fix

From: Neil Conway <neilc(at)samurai(dot)com>
To: Marko Kreen <marko(at)l-t(dot)ee>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: pgcrypto: openssl digest fix
Date: 2005-03-12 06:59:24
Message-ID: 4232934C.30900@samurai.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Marko Kreen wrote:
> Some builds (depends on crypto engine support?) of OpenSSL
> 0.9.7x have EVP_DigestFinal function which which clears all of
> EVP_MD_CTX. This makes pgcrypto crash in functions which
> re-use one digest context several times: hmac() and crypt()
> with md5 algorithm.
>
> Following patch fixes it by carring the digest info around
> EVP_DigestFinal and re-initializing cipher.

Applied to HEAD, REL8_0_STABLE and REL7_4_STABLE. Thanks for the patch.

> Please apply this also to stable branches (8.0 / 7.4).

Should it be backpatched to 7.3 and 7.2 as well?

-Neil

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Neil Conway 2005-03-12 13:43:53 ALTER FUNCTION / STRICT
Previous Message Neil Conway 2005-03-12 06:47:40 Re: default to WITHOUT OIDS