Some builds (depends on crypto engine support?) of OpenSSL
authorNeil Conway <neilc@samurai.com>
Sat, 12 Mar 2005 06:55:14 +0000 (06:55 +0000)
committerNeil Conway <neilc@samurai.com>
Sat, 12 Mar 2005 06:55:14 +0000 (06:55 +0000)
commit2450224e6bd10563188985a26d54c2c3d091a223
tree971fb7fe17a7aad692f169432e2f8aca1f24861a
parent989a17a68c5dc1784f1be3876feba8cf81c4fed4
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.

Marko Kreen.
contrib/pgcrypto/openssl.c