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

Heikki Linnakangas <hlinnaka@iki.fi>

From: Heikki Linnakangas <hlinnaka@iki.fi>
To: Michael Paquier <michael@paquier.xyz>, Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org
Date: 2024-08-07T07:51:36Z
Lists: pgsql-hackers
On 06/08/2024 18:11, Michael Paquier wrote:
> 
>> 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.

Committed, thanks

-- 
Heikki Linnakangas
Neon (https://neon.tech)




Commits

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

  2. Refactor MD5 implementations according to new cryptohash infrastructure