aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/numeric.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2018-02-06 21:46:46 -0500
committerPeter Eisentraut <peter_e@gmx.net>2018-02-22 11:34:53 -0500
commit10cfce34c0fe20d2caed5750bbc5c315c0e4cc63 (patch)
treebad5c503278b81c77080c534a882a93c2bcb952b /src/backend/utils/adt/numeric.c
parentedd44738bc88148784899a8949519364d81d9ea8 (diff)
downloadpostgresql-10cfce34c0fe20d2caed5750bbc5c315c0e4cc63.tar.gz
postgresql-10cfce34c0fe20d2caed5750bbc5c315c0e4cc63.zip
Add user-callable SHA-2 functions
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: Michael Paquier <michael@paquier.xyz>
Diffstat (limited to 'src/backend/utils/adt/numeric.c')
0 files changed, 0 insertions, 0 deletions