pgsql: Change SHA2 implementation based on OpenSSL to use EVP digest ro

2020-12-03 Thread Michael Paquier
Change SHA2 implementation based on OpenSSL to use EVP digest routines The use of low-level hash routines is not recommended by upstream OpenSSL since 2000, and pgcrypto already switched to EVP as of 5ff4a67. This takes advantage of the refactoring done in 87ae969 that has introduced the allocatio

pgsql: Change SHA2 implementation based on OpenSSL to use EVP digest ro

2020-09-27 Thread Michael Paquier
Change SHA2 implementation based on OpenSSL to use EVP digest routines The use of low-level hash routines is not recommended by upstream OpenSSL since 2000, and pgcrypto already switched to EVP as of 5ff4a67. Note that this also fixes a failure with SCRAM authentication when using FIPS in OpenSSL,