aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorCollin Funk2026-02-23 00:20:46 -0800
committerPaul Eggert2026-02-23 00:22:17 -0800
commit29440eedac7968580e35e751c6cdf94af337a95a (patch)
tree511fa2df3d1459c9e3d53d088856194d2123af38 /admin
parentccaa4a07f093428241cbcc81379c3ea3d84b38ee (diff)
downloademacs-29440eedac7968580e35e751c6cdf94af337a95a.tar.gz
emacs-29440eedac7968580e35e751c6cdf94af337a95a.zip
Add SHA-3 support to secure-hash
* admin/merge-gnulib (GNULIB_MODULES): Add crypto/sha3-buffer. * lib/sha3.c: New file, imported by running admin/merge-gnulib. * lib/sha3.h: Likewise. * m4/sha3.m4: Likewise. * lib/gnulib.mk.in: Updated by admin/merge-gnulib. * m4/gnulib-comp.m4: Likewise. * src/fns.c: Include sha3.h (Fsecure_hash_algorithms): Add Qsha3_224, Qsha3_256, Qsha3_384, and Qsha3_512. (secure_hash): Likewise. (Fsecure_hash): List the SHA-3 algorithms in the docstring. (syms_of_fns): Define Qsha3_224, Qsha3_256, Qsha3_384, and Qsha3_512. * test/lisp/net/gnutls-tests.el (gnutls-tests-internal-macs-upcased): Filter out the new SHA-3 algorithms since they are currently not implemented in gnutls. * test/src/fns-tests.el (test-secure-hash): Add test cases for the new algorithms. * doc/lispref/text.texi (Checksum/Hash): List the SHA-3 algorithms. Mention that they are considered secure. * etc/NEWS: Mention the new feature.
Diffstat (limited to 'admin')
-rwxr-xr-xadmin/merge-gnulib1
1 files changed, 1 insertions, 0 deletions
diff --git a/admin/merge-gnulib b/admin/merge-gnulib
index 247fca96df2..6d60dcd687a 100755
--- a/admin/merge-gnulib
+++ b/admin/merge-gnulib
@@ -35,6 +35,7 @@ GNULIB_MODULES='
35 careadlinkat close-stream copy-file-range 35 careadlinkat close-stream copy-file-range
36 crypto/md5 crypto/md5-buffer 36 crypto/md5 crypto/md5-buffer
37 crypto/sha1-buffer crypto/sha256-buffer crypto/sha512-buffer 37 crypto/sha1-buffer crypto/sha256-buffer crypto/sha512-buffer
38 crypto/sha3-buffer
38 d-type diffseq double-slash-root dtoastr dtotimespec dup2 39 d-type diffseq double-slash-root dtoastr dtotimespec dup2
39 environ execinfo faccessat 40 environ execinfo faccessat
40 fchmodat fcntl fcntl-h fdopendir file-has-acl 41 fchmodat fcntl fcntl-h fdopendir file-has-acl