1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-17 12:41:05 +03:00
Commit Graph

5 Commits

Author SHA1 Message Date
Pádraig Brady
8e0f64e4cd 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.
2013-12-03 03:21:00 +00:00
Paul Eggert
2d540c2cb2 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.
2011-10-27 13:05:42 -07:00
Bruno Haible
7da4d67b71 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.
2011-06-16 00:07:30 +02:00
Simon Josefsson
41529250d8 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.
2007-08-07 09:49:37 +00:00
Simon Josefsson
0527d3651d Move crypto modules to crypto/. 2007-04-01 08:38:41 +00:00