git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 3fc81ce) | patch
Introduce SHA1 implementations in the cryptohash infrastructure
2021年1月23日 02:33:04 +0000 (11:33 +0900)
2021年1月23日 02:33:04 +0000 (11:33 +0900)
commit a8ed6bb8f4cf259b95c1bff5da09a8f4c79dca46
Introduce SHA1 implementations in the cryptohash infrastructure

With this commit, SHA1 goes through the implementation provided by
OpenSSL via EVP when building the backend with it, and uses as fallback
implementation KAME which was located in pgcrypto and already shaped for
an integration with a set of init, update and final routines.
Structures and routines have been renamed to make things consistent with
the fallback implementations of MD5 and SHA2.

uuid-ossp has used for ages a shortcut with pgcrypto to fetch a copy of
SHA1 if needed. This was built depending on the build options within
./configure, so this cleans up some code and removes the build
dependency between pgcrypto and uuid-ossp.

Note that this will help with the refactoring of HMAC, as pgcrypto
offers the option to use MD5, SHA1 or SHA2, so only the second option
was missing to make that possible.

Author: Michael Paquier
Reviewed-by: Heikki Linnakangas
Discussion: https://postgr.es/m/X9HXKTgrvJvYO7Oh@paquier.xyz
18 files changed:
configure diff | blob | blame | history
configure.ac diff | blob | blame | history
contrib/pgcrypto/Makefile diff | blob | blame | history
contrib/pgcrypto/internal.c diff | blob | blame | history
contrib/pgcrypto/sha1.c [deleted file] blob | blame | history
contrib/uuid-ossp/.gitignore diff | blob | blame | history
contrib/uuid-ossp/Makefile diff | blob | blame | history
contrib/uuid-ossp/uuid-ossp.c diff | blob | blame | history
src/Makefile.global.in diff | blob | blame | history
src/common/Makefile diff | blob | blame | history
src/common/cryptohash.c diff | blob | blame | history
src/common/cryptohash_openssl.c diff | blob | blame | history
src/common/sha1.c [new file with mode: 0644] blob
src/common/sha1_int.h [moved from contrib/pgcrypto/sha1.h with 71% similarity] diff | blob | blame | history
src/include/common/cryptohash.h diff | blob | blame | history
src/include/common/sha1.h [new file with mode: 0644] blob
src/tools/msvc/Mkvcbuild.pm diff | blob | blame | history
src/tools/pgindent/typedefs.list diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /