• Peter Eisentraut's avatar
    Add user-callable SHA-2 functions · 10cfce34
    Peter Eisentraut authored
    Add the user-callable functions sha224, sha256, sha384, sha512.  We
    already had these in the C code to support SCRAM, but there was no test
    coverage outside of the SCRAM tests.  Adding these as user-callable
    functions allows writing some tests.  Also, we have a user-callable md5
    function but no more modern alternative, which led to wide use of md5 as
    a general-purpose hash function, which leads to occasional complaints
    about using md5.
    
    Also mark the existing md5 functions as leak-proof.
    Reviewed-by: default avatarMichael Paquier <michael@paquier.xyz>
    10cfce34
strings.sql 19.6 KB