Re: Thread-unsafe MD5 on big-endian systems with no OpenSSL

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>, pgsql-hackers@postgresql.org
Date: 2024-08-06T15:11:23Z
Lists: pgsql-hackers
> On Aug 6, 2024, at 23:05, Robert Haas <robertmhaas@gmail.com> wrote:
> On Tue, Aug 6, 2024 at 8:23 AM Heikki Linnakangas <hlinnaka@iki.fi> wrote:
>> 
>> This only affects big-endian systems that are compiled without OpenSSL.
> 
> LGTM.

Nice catch, looks fine to me as well.
--
Michael



Commits

  1. Make fallback MD5 implementation thread-safe on big-endian systems

  2. Refactor MD5 implementations according to new cryptohash infrastructure