2003-06-17 Moritz Schulte <moritz@g10code.com>
authorMoritz Schulte <mo@g10code.com>
Tue, 17 Jun 2003 17:30:37 +0000 (17:30 +0000)
committerMoritz Schulte <mo@g10code.com>
Tue, 17 Jun 2003 17:30:37 +0000 (17:30 +0000)
* Makefile.am (GCRYPT_MODULES): Set to @GCRYPT_CIPHERS@,
@GCRYPT_PUBKEY_CIPHERS@, @GCRYPT_DIGESTS@ and @GCRYPT_RANDOM@.
(libcipher_la_DEPENDENCIES): Set to $(GCRYPT_MODULES).
(libcipher_la_LIBADD): Likewise.
(AM_CFLAGS): Added: @GPG_ERROR_CFLAGS@.

cipher/ChangeLog
cipher/Makefile.am

index 4f49696..9cdbe5e 100644 (file)
@@ -1,3 +1,33 @@
+2003-06-17  Moritz Schulte  <moritz@g10code.com>
+
+       * Makefile.am (GCRYPT_MODULES): Set to @GCRYPT_CIPHERS@,
+       @GCRYPT_PUBKEY_CIPHERS@, @GCRYPT_DIGESTS@ and @GCRYPT_RANDOM@.
+       (libcipher_la_DEPENDENCIES): Set to $(GCRYPT_MODULES).
+       (libcipher_la_LIBADD): Likewise.
+       (AM_CFLAGS): Added: @GPG_ERROR_CFLAGS@.
+
+       * md.c (md_open): Use _gcry_fast_random_poll instead of
+       fast_random_poll.
+       * cipher.c (gcry_cipher_open): Likewise.
+
+       * random.h (fast_random_poll): Removed macro.
+
+       * blowfish.c, md4.c, md5.c, rmd160.c, sha1.c, sha256.c, sha512.c,
+       tiger.c: Use Autoconf's WORDS_BIGENDIAN instead of our own
+       BIG_ENDIAN_HOST.
+
+2003-06-16  Moritz Schulte  <moritz@g10code.com>
+
+       * random.c (getfnc_gather_random): Do not special-case
+       USE_ALL_RANDOM_MODULES, make it the default.
+
+       * dsa.c: Replace last occurences of old type names with newer
+       names (i.e. replace MPI with gcry_mpi_t).
+       * elgamal.c: Likewise.
+       * primegen.c: Likewise.
+       * pubkey.c: Likewise.
+       * rsa.c: Likewise.
+
 2003-06-14  Moritz Schulte  <moritz@g10code.com>
 
        * des.c (des_setkey): Add selftest check.
index 0be560c..5017913 100644 (file)
 
 # Process this file with automake to produce Makefile.in
 
-
 INCLUDES = -I$(top_srcdir)/src 
 
 noinst_LTLIBRARIES = libcipher.la
 
-#OMIT_DEPENDENCIES = types.h gcrypt.h
-
-if USE_ARCFOUR
-  tmp_arcfour = arcfour.c
-endif
-if USE_BLOWFISH
-  tmp_blowfish = blowfish.c
-endif
-if USE_CAST5
-  tmp_cast5 = cast5.c
-endif
-if USE_DES
-  tmp_des = des.c
-endif
-if USE_AES
-  tmp_aes = rijndael.c
-endif
-if USE_TWOFISH
-  tmp_twofish = twofish.c
-endif
-
-ciphers = \
-$(tmp_arcfour) \
-$(tmp_blowfish) \
-$(tmp_cast5) \
-$(tmp_des) \
-$(tmp_aes) \
-$(tmp_twofish)
-
-if USE_DSA
-  tmp_dsa = dsa.c
-endif
-if USE_RSA
-  tmp_rsa = rsa.c
-endif
-if USE_ELGAMAL
-  tmp_elgamal = elgamal.c
-endif
-
-pubkey_ciphers = \
-$(tmp_dsa) \
-$(tmp_rsa) \
-$(tmp_elgamal)
-
-if USE_CRC
-  tmp_crc = crc.c
-endif
-if USE_MD4
-  tmp_md4 = md4.c
-endif
-if USE_MD5
-  tmp_md5 = md5.c
-endif
-if USE_SHA1
-  tmp_sha1 = sha1.c
-endif
-if USE_SHA256
-  tmp_sha256 = sha256.c
-endif
-if USE_SHA512
-  tmp_sha512 = sha512.c
-endif
-if USE_TIGER
-  tmp_tiger = tiger.c
-endif
-if USE_RMD160
-  tmp_rmd160 = rmd160.c
-endif
-
-digests = \
-$(tmp_crc) \
-$(tmp_md4) \
-$(tmp_md5) \
-$(tmp_sha1) \
-$(tmp_sha256) \
-$(tmp_sha512) \
-$(tmp_tiger) \
-$(tmp_rmd160)
-
-if USE_RNDLINUX
-  tmp_rndlinux = rndlinux.c
-endif
-if USE_RNDUNIX
-  tmp_rndunix = rndunix.c
-endif
-if USE_RNDEGD
-  tmp_rndegd = rndegd.c
-endif
-if USE_RNDW32
-  tmp_rndw32 = rndw32.c
-endif
+GCRYPT_MODULES = @GCRYPT_CIPHERS@ @GCRYPT_PUBKEY_CIPHERS@ @GCRYPT_DIGESTS@ @GCRYPT_RANDOM@
 
-random = \
-$(tmp_rndlinux) \
-$(tmp_rndunix) \
-$(tmp_rndegd) \
-$(tmp_rndw32)
+libcipher_la_DEPENDENCIES = $(GCRYPT_MODULES)
+libcipher_la_LIBADD = $(GCRYPT_MODULES)
+AM_CFLAGS = @GPG_ERROR_CFLAGS@
 
-libcipher_la_LDFLAGS =
 libcipher_la_SOURCES = \
-cipher.c $(ciphers) \
-pubkey.c $(pubkey_ciphers) \
-md.c  $(digests) \
-bithelp.h   \
+cipher.c pubkey.c md.c \
+bithelp.h  \
 primegen.c  \
-random.c random.h $(random) \
+random.c random.h \
 rand-internal.h \
 rmd.h