modules/crypto/md5


Log

Author Commit Date CI Message
Paul Eggert 0c011767 2018-05-21T10:32:25 crypto: omit stream ops Emacs doesn’t need * lib/md5.c (md5_stream): * lib/sha1.c (sha1_stream): * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream): * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream): Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is defined. Emacs needs this, as it does not use the stream operations and doesn’t need all the af_alg stuff we’ve recently added. Perhaps a similar change is needed to the other crypto modules, but this patch changes only those needed for Emacs. * modules/crypto/md5-buffer, modules/crypto/sha1-buffer: * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer: New modules, used by Emacs. * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256: * modules/crypto/sha512: Rewrite to depend on the new modules.
Bruno Haible 55832dcf 2018-05-06T11:55:55 Followup to 'af_alg: New module.'. * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat. * modules/crypto/sha1 (Depends-on): Likewise. * modules/crypto/sha256 (Depends-on): Likewise. * modules/crypto/sha512 (Depends-on): Likewise.
Bruno Haible 459221a8 2018-05-05T20:27:33 af_alg: New module. * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'. * lib/af_alg.c: Include "af_alg.h" before the other header files. * lib/md5.c: Include "af_alg.h" unconditionally. (md5_stream): Invoke afalg_stream unconditionally. * lib/sha1.c: Include "af_alg.h" unconditionally. (sha1_stream): Invoke afalg_stream unconditionally. * lib/sha256.c: Include "af_alg.h" unconditionally. (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally. * lib/sha512.c: Include "af_alg.h" unconditionally. (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally. * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4. (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H. * modules/crypto/af_alg: New file. * modules/crypto/md5 (Files): Remove files that are now in the 'crypto/af_alg' module. (Depends-on): Add crypto/af_alg. (configure.ac): Remove gl_LINUX_IF_ALG_H invocation. (Makefile.am): Don't mention af_alg.c here. * modules/crypto/sha1 (Files): Remove files that are now in the 'crypto/af_alg' module. (Depends-on): Add crypto/af_alg. (configure.ac): Remove gl_LINUX_IF_ALG_H invocation. (Makefile.am): Don't mention af_alg.c here. * modules/crypto/sha256 (Files): Remove files that are now in the 'crypto/af_alg' module. (Depends-on): Add crypto/af_alg. (configure.ac): Remove gl_LINUX_IF_ALG_H invocation. (Makefile.am): Don't mention af_alg.c here. * modules/crypto/sha512 (Files): Remove files that are now in the 'crypto/af_alg' module. (Depends-on): Add crypto/af_alg. (configure.ac): Remove gl_LINUX_IF_ALG_H invocation. (Makefile.am): Don't mention af_alg.c here.
Paul Eggert a4fd2b6f 2018-05-05T10:27:38 sys-limits.h: new file for crypto and safe I/O * lib/af_alg.c: Include sys-limits.h. (MAX_RW_COUNT): Remove. Use replaced by SYS_BUFSIZE_MAX. (afalg_stream): Also reject negative sizes for sendfile; they should not happen and the code is a bit cleaner and faster this way. * lib/safe-read.c: Include sys-limits.h. (BUGGY_READ_MAXIMUM): Remove. All uses replaced by SYS_BUFSIZE_MAX. * lib/sys-limits.h: New file, with values and commentary derived from the old safe-read.c and from GNU Emacs sysdep.c. * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256: * modules/crypto/sha512, modules/safe-read, modules/safe-write: Add lib/sys-limits.h to Files section.
Bruno Haible ba0ffea0 2018-05-05T18:09:40 crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO). * modules/crypto/md5 (Depends-on): Add 'sys_stat'. * modules/crypto/sha1 (Depends-on): Likewise. * modules/crypto/sha256 (Depends-on): Likewise. * modules/crypto/sha512 (Depends-on): Likewise.
Bruno Haible dad2461a 2018-05-05T18:04:43 crypto/{md5,sha1,sha256,sha512}: Fix module description. * modules/crypto/md5 (Depends-on): Add 'sys_socket'. * modules/crypto/sha1 (Depends-on): Likewise. * modules/crypto/sha256 (Depends-on): Likewise. * modules/crypto/sha512 (Depends-on): Likewise.
Matteo Croce a720fab2 2018-04-28T15:32:58 md5sum: use kernel crypto API Use AF_ALG for md5 too Signed-off-by: Matteo Croce <mcroce@redhat.com>
Pádraig Brady 8e0f64e4 2013-11-30T05:19:32 md5, sha1, sha256, sha512: use openssl routines if available --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256 routines will be used if available, requiring apps to link @LIB_CRYPTO@ * lib/gl_openssl.h: Provide wrappers for specified openssl hash. * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto in the standard system location. * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1. * m4/sha256.m4: Likewise with SHA256. * m4/sha512.m4: Likewise with SHA512. * m4/md5.m4: Likewise with MD5. * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests. * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1. * lib/sha256.h: Likewise with SHA256. * lib/sha512.h: Likewise with SHA512. * lib/md5.h: Likewise with MD5. * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1. * lib/sha256.c: Likewise with SHA256. * lib/sha512.c: Likewise with SHA512. * lib/md5.c: Likewise with MD5. * modules/crypto/sha1 (Link:): Add the new optional lib. (Depends-on:): Add dependency on extern-inline. * modules/crypto/sha256: Likewise. * modules/crypto/sha512: Likewise. * modules/crypto/md5: Likewise. * modules/crypto/sha1-tests: Reference the lib here too. * modules/crypto/md5-tests: Likewise. * modules/crypto/gc-des-tests: Likewise. * modules/crypto/gc-hmac-md5-tests: Likewise. * modules/crypto/gc-hmac-sha1-tests: Likewise. * modules/crypto/gc-hmac-sha256-tests: Likewise. * modules/crypto/gc-hmac-sha512-tests: Likewise. * modules/crypto/gc-md5-tests: Likewise. * modules/crypto/gc-pbkdf2-sha1-tests: Likewise. * modules/crypto/gc-sha1-tests: Likewise. * modules/crypto/gc-tests: Likewise. * modules/crypto/hmac-md5-tests: Likewise. * modules/crypto/hmac-sha1-tests: Likewise. * modules/crypto/hmac-sha256-tests: Likewise. * modules/crypto/hmac-sha512-tests: Likewise.
Paul Eggert 2d540c2c 2011-10-16T17:17:47 crypto libraries: use stdalign * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Include <stdalign.h> and <stdint.h>. Do not include <stddef.h>. Do not include <stdlib.h> twice, in md4.c. (UNALIGNED_P): Simplify by using alignof. Use uintptr_t, not size_t, because we are accessing a pointer's bit-pattern, not a size. * modules/crypto/gc-md4 (Depends-on): Add stdalign. * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4: * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256: * modules/crypto/sha512: Likewise.
Bruno Haible 7da4d67b 2011-05-24T00:34:00 crypto/md5: Move AC_LIBOBJ invocations to module description. * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation. * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
Simon Josefsson 41529250 2007-08-07T09:49:37 2007-08-07 Simon Josefsson <simon@josefsson.org> * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+". * modules/crypto/arcfour (License): Likewise. * modules/crypto/des-tests (License): Likewise. * modules/crypto/gc-arctwo-tests (License): Likewise. * modules/crypto/gc-des-tests (License): Likewise. * modules/crypto/gc-hmac-md5-tests (License): Likewise. * modules/crypto/gc-hmac-sha1-tests (License): Likewise. * modules/crypto/gc-md2-tests (License): Likewise. * modules/crypto/gc-md4-tests (License): Likewise. * modules/crypto/gc-md5-tests (License): Likewise. * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise. * modules/crypto/gc-rijndael-tests (License): Likewise. * modules/crypto/gc-sha1-tests (License): Likewise. * modules/crypto/gc-tests (License): Likewise. * modules/crypto/hmac-md5 (License): Likewise. * modules/crypto/hmac-sha1 (License): Likewise. * modules/crypto/md2-tests (License): Likewise. * modules/crypto/md4-tests (License): Likewise. * modules/crypto/md5 (License): Likewise. * modules/crypto/rijndael (License): Likewise. * modules/crypto/sha1 (License): Likewise. * modules/memxor (License): Likewise.
Simon Josefsson 0527d365 2007-04-01T08:38:41 Move crypto modules to crypto/.