Re: SHA-2 functions - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: SHA-2 functions
Date
Msg-id 359d082e-fe61-04be-f8c0-b3a3594a3536@2ndquadrant.com
Whole thread Raw
In response to Re: SHA-2 functions  (Aleksander Alekseev <a.alekseev@postgrespro.ru>)
Responses Re: SHA-2 functions  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
On 2/19/18 09:06, Aleksander Alekseev wrote:
>> So I suggest these patches that expose the new functions sha224(),
>> sha256(), sha384(), sha512().  That allows us to make the SSL and SCRAM
>> tests more robust, and it will allow them to be used in general purpose
>> contexts over md5().
> 
> Nice patch. I wonder though whether tests should include hashing
> non-ASCII characters as well.

The input is of type bytea, so the concept of non-ASCII characters
doesn't quite apply.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-hackers by date:

Previous
From: Jesper Pedersen
Date:
Subject: Re: JIT compiling with LLVM v10.1
Next
From: Brent Kerby
Date:
Subject: Option to ensure monotonic timestamps