libgcrypt.git
15 years ago* Makefile.am (dist-hook): Don't distribute stuff from the now
Werner Koch [Mon, 8 Dec 2003 21:43:02 +0000 (21:43 +0000)]
* Makefile.am (dist-hook): Don't distribute stuff from the now
obsolete scripts dir.
(EXTRA_DIST): Remove README_alpha
* README-alpha: Removed.
* configure.ac (AM_CONFIG_AUX_DIR): Removed.

* COPYING.DOC: Removed.
* Makefile.am (EXTRA_DIST): Added README.CVS and
autogen.sh. Removed COPYING.DOC.

15 years agoFiles we want to keep in the CVS.
Werner Koch [Mon, 8 Dec 2003 21:42:35 +0000 (21:42 +0000)]
Files we want to keep in the CVS.

15 years agoadded a #warning
Werner Koch [Thu, 4 Dec 2003 16:12:27 +0000 (16:12 +0000)]
added a #warning

15 years ago* pubkey.c (check_keys_crypt): Fixed my last patch.
Werner Koch [Thu, 4 Dec 2003 16:11:53 +0000 (16:11 +0000)]
* pubkey.c (check_keys_crypt): Fixed my last patch.

15 years ago(gcrypt_TEXINFOS): Removed fdl.texi.
Werner Koch [Thu, 4 Dec 2003 12:34:10 +0000 (12:34 +0000)]
(gcrypt_TEXINFOS): Removed fdl.texi.

15 years ago* gcrypt.texi: Changed license from FDL to GPL because this is a
Werner Koch [Wed, 3 Dec 2003 13:31:42 +0000 (13:31 +0000)]
* gcrypt.texi: Changed license from FDL to GPL because this is a
reference manual only useful along with actual code.
* fdl.texi: Removed.

* gcrypt.texi: Minor cleanups
(Working with keys): Clarified generation of RSA's E parameter.
(Multi Threading): Clarified.

15 years ago(sign, do_encrypt, gen_k): Make sure that a small K is
Werner Koch [Wed, 3 Dec 2003 11:23:46 +0000 (11:23 +0000)]
(sign, do_encrypt, gen_k): Make sure that a small K is
only used for encryption.

15 years ago* random.h (rndw32_set_dll_name): Removed unused prototype.
Werner Koch [Tue, 18 Nov 2003 14:25:30 +0000 (14:25 +0000)]
* random.h (rndw32_set_dll_name): Removed unused prototype.

* Makefile.am (EXTRA_DIST): Added Manifest.

15 years agoPost release version number bump.
Werner Koch [Fri, 14 Nov 2003 12:53:33 +0000 (12:53 +0000)]
Post release version number bump.

15 years ago* configure.ac: Bumbed LT version to C10/A3/R0. V1-1-90
Werner Koch [Fri, 14 Nov 2003 11:46:04 +0000 (11:46 +0000)]
* configure.ac: Bumbed LT version to C10/A3/R0.

* configure.ac (have_ld_version_script): Set the default in
a separate test.
(PRINTABLE_OS_NAME): Don't handle the Hurd extra, this leads to
conflicts with BSD based GNU systems.  The Hurd has now a working
uname.

15 years ago(gcry_strdup): Don't copy the string after a malloc
Werner Koch [Fri, 14 Nov 2003 11:45:54 +0000 (11:45 +0000)]
(gcry_strdup): Don't copy the string after a malloc
error.

15 years ago* Manifest: New.
Werner Koch [Tue, 11 Nov 2003 12:57:36 +0000 (12:57 +0000)]
* Manifest: New.

* gcrypt.texi (Working with S-expressions): Added "%b".

* sexp.c (sexp_sscan): Implemented "%b" format specifier.

* tsexp.c (basic): Add pass structure and a test for the %b
format.

15 years ago2003-11-11 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Tue, 11 Nov 2003 12:15:10 +0000 (12:15 +0000)]
2003-11-11  Moritz Schulte  <mo@g10code.com>

* libgcrypt.m4: Do not set prefix when calling libgcrypt-config.
Thanks to Nikos Mavroyanopoulos.

15 years ago2003-11-08 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Sat, 8 Nov 2003 18:18:07 +0000 (18:18 +0000)]
2003-11-08  Moritz Schulte  <mo@g10code.com>

* cipher.h (small_prime_numbers): Removed declaration.
(PUBKEY_FLAG_NO_BLINDING): Put braces around shift.

15 years ago* Makefile.am (noinst_PROGRAMS): Use this so that test programs
Werner Koch [Tue, 4 Nov 2003 12:03:40 +0000 (12:03 +0000)]
* Makefile.am (noinst_PROGRAMS): Use this so that test programs
get always build.

* keygen.c (check_nonce): New.
(main): Add a basic check for the nocen function.

15 years ago* cipher.h (_gcry_sha1_has_buffer): New.
Werner Koch [Tue, 4 Nov 2003 12:03:33 +0000 (12:03 +0000)]
* cipher.h (_gcry_sha1_has_buffer): New.

* gcrypt.h (gcry_create_nonce): New.

15 years agoUpdated.
Werner Koch [Tue, 4 Nov 2003 12:03:21 +0000 (12:03 +0000)]
Updated.

15 years ago(Retrieving random numbers): Add gcry_create_nonce.
Werner Koch [Tue, 4 Nov 2003 12:03:11 +0000 (12:03 +0000)]
(Retrieving random numbers): Add gcry_create_nonce.

15 years ago* md.c (gcry_md_hash_buffer): Use shortcut for SHA1
Werner Koch [Tue, 4 Nov 2003 12:02:53 +0000 (12:02 +0000)]
* md.c (gcry_md_hash_buffer): Use shortcut for SHA1
* sha1.c (_gcry_sha1_hash_buffer): New.

* random.c: Reformatted most functions.
(mix_pool): Moved the failsafe_digest from global
scope to here.
(do_fast_random_poll): Use the generic fucntions even if a fast
gathering function has been used.
(read_pool): Detect a fork and retry.
(gcry_randomize, get_random_bytes): Don't distinguish anymore
between weak and strong random.
(gcry_create_nonce): New.

15 years ago(USE_SHA1): Make sure it is always included.
Werner Koch [Tue, 4 Nov 2003 12:02:42 +0000 (12:02 +0000)]
(USE_SHA1): Make sure it is always included.
(USE_RMD160): Removed this AM conditional.

15 years agoFixed version number V1-1-44
Werner Koch [Fri, 31 Oct 2003 05:08:15 +0000 (05:08 +0000)]
Fixed version number

15 years ago* acinclude.m4 (AC_CHECK_PTH): Added.
Werner Koch [Fri, 31 Oct 2003 05:06:09 +0000 (05:06 +0000)]
* acinclude.m4 (AC_CHECK_PTH): Added.
* configure.ac: Use it here instead of the generic lib test.
Bumbed LT vesion to C9/A2/R0.

* dsa.c (verify): s/exp/ex/ due to shadowing of a builtin.
* elgamal.c (verify): Ditto.

* ac.c (gcry_ac_data_get_index): s/index/idx/
(gcry_ac_data_copy_internal): Remove the cast in _gcry_malloc.
(gcry_ac_data_add): Must use gcry_realloc instead of realloc.
* pubkey.c (sexp_elements_extract): s/index/idx/ as tribute to the
forehackers.
(gcry_pk_encrypt): Removed shadowed definition of I. Reordered
arguments to malloc for clarity.
(gcry_pk_sign, gcry_pk_genkey): Ditto.
* primegen.c (prime_generate_internal): s/random/randomlevel/.

* i386/mpih-rshift.S, i386/mpih-lshift.S: Use %dl and not %edx for
testb; this avoids an assembler warning.

* mpi-pow.c (gcry_mpi_powm): s/exp/expo/ to avoid shadowing warning.

* autogen.sh: Allow to override the tool name.  Do not run
libtoolize. Update required version numbers.

* libgcrypt.vers (_gcry_generate_elg_prime): Removed this symbol;
gnutls does not need it anymore.

* secmem.c (mb_get_new): s/pool/block/ due to global pool.

* misc.c (gcry_set_log_handler): s/logf/f/ to avoid shadowing
warning against a builtin.

* ath-pth-compat.c: cast pth_connect to get rid of the const
prototype.

* basic.c (check_aes128_cbc_cts_cipher): Make it a prototype

* ac.c (check_run): Comment unused variable.

15 years agoVarious cleanups
Werner Koch [Fri, 31 Oct 2003 03:46:08 +0000 (03:46 +0000)]
Various cleanups

15 years ago2003-10-27 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Mon, 27 Oct 2003 22:29:43 +0000 (22:29 +0000)]
2003-10-27  Moritz Schulte  <mo@g10code.com>

* libgcrypt-config.in: Include libs/cflags of libgpg-error.

15 years ago2003-10-27 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Mon, 27 Oct 2003 22:13:43 +0000 (22:13 +0000)]
2003-10-27  Moritz Schulte  <mo@g10code.com>

* sexp.c (sexp_sscan): Cleaned up, deallocate scanned sexp on
error.

15 years ago* random.c (gcry_random_add_bytes): Return if buflen is zero to
Werner Koch [Mon, 27 Oct 2003 17:40:28 +0000 (17:40 +0000)]
* random.c (gcry_random_add_bytes): Return if buflen is zero to
avoid gcc warning about unsed parameter.
(MASK_LEVEL): Simplified; does not work for signed and unsigned
w/o warnings.

* md.c (md_start_debug): Removed the const from SUFFIX, because
this function is called from the control fucntion which does not
require const.

Added some comments.

15 years ago2003-10-27 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Mon, 27 Oct 2003 15:41:52 +0000 (15:41 +0000)]
2003-10-27  Moritz Schulte  <mo@g10code.com>

* pubkey.c (gcry_pk_encrypt): Don't forget to deallocate pkey.

15 years ago2003-10-27 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Mon, 27 Oct 2003 15:33:07 +0000 (15:33 +0000)]
2003-10-27  Moritz Schulte  <mo@g10code.com>

* module.c (MODULE_ID_MIN): New symbol, use it.

15 years ago* configure.ac: Give a hint on where libgpg-error is available.
Werner Koch [Mon, 27 Oct 2003 13:08:05 +0000 (13:08 +0000)]
* configure.ac: Give a hint on where libgpg-error is available.
Reformatted long lines.  Don't include gcrypt-defs.h.

* ac.c (ac_key_identifiers): Made static.

* random.c (getfnc_gather_random,getfnc_fast_random_poll): Move
prototypes to ..
* rand-internal.h: .. here
* random.c (getfnc_gather_random): Include rndw32 gatherer.
* rndunix.c, rndw32.c, rndegd.c: Include them here.
* rndlinux.c (_gcry_rndlinux_gather_random): Prepend the _gcry_
prefix.  Changed all callers.
* rndegd.c (_gcry_rndegd_gather_random): Likewise.
(_gcry_rndegd_connect_socket): Likewise.
* rndunix.c (_gcry_rndunix_gather_random): Likewise.
(waitpid): Made static.
* rndw32.c: Removed the old and unused winseed.dll cruft.
(_gcry_rndw32_gather_random_fast): Renamed from
gather_random_fast.
(_gcry_rndw32_gather_random): Renamed from gather_random.  Note,
that the changes 2003-04-08 somehow got lost.

* sha512.c (sha512_init, sha384_init): Made static.

* cipher.c (do_ctr_decrypt): Removed "return" from this void
function.

* gcrypt.h (gcry_pk_testkey): Doc fix.

* libgcrypt.def: Manually wrote this file.
* build-def: This file should not be used anymore.

15 years ago2003-10-24 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Mon, 27 Oct 2003 10:48:47 +0000 (10:48 +0000)]
2003-10-24  Moritz Schulte  <mo@g10code.com>

* rndw32.c: Removed IS_MODULE -cruft.
* rndlinux.c (rndlinux_gather_random): Likewise.

15 years ago2003-10-24 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Fri, 24 Oct 2003 20:33:30 +0000 (20:33 +0000)]
2003-10-24  Moritz Schulte  <mo@g10code.com>

* serpent.c: Fix an issue on big-endian systems.

15 years ago2003-10-24 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Fri, 24 Oct 2003 16:28:11 +0000 (16:28 +0000)]
2003-10-24  Moritz Schulte  <mo@g10code.com>

* configure.ac: Check for socklen_t.

15 years ago*** empty log message ***
Moritz Schulte [Thu, 23 Oct 2003 15:18:49 +0000 (15:18 +0000)]
*** empty log message ***

15 years ago2003-09-28 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Thu, 23 Oct 2003 15:06:45 +0000 (15:06 +0000)]
2003-09-28  Moritz Schulte  <mo@g10code.com>

* ac.c: Include "cipher.h".

2003-09-27  Moritz Schulte  <mo@g10code.com>

* rndegd.c (do_read): Return nread instead of nbytes; thanks to
Michael Caerwyn.

15 years ago2003-10-11 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Thu, 23 Oct 2003 14:59:19 +0000 (14:59 +0000)]
2003-10-11  Moritz Schulte  <mo@g10code.com>

* acinclude.m4: Update AM_PATH_GPG_ERROR macro.

15 years ago(gcry_err_code): Use GPG_ERR_INLINE instyead of
Werner Koch [Thu, 23 Oct 2003 08:29:42 +0000 (08:29 +0000)]
(gcry_err_code): Use GPG_ERR_INLINE instyead of
__inline__.

15 years ago(lock_pool): Don't print the warning for certain
Werner Koch [Thu, 23 Oct 2003 07:45:07 +0000 (07:45 +0000)]
(lock_pool): Don't print the warning for certain
systems, handle ENOMEM.

15 years ago(_gcry_secmem_dump_stats): Fixed format sepcifier for a
Werner Koch [Tue, 21 Oct 2003 19:17:34 +0000 (19:17 +0000)]
(_gcry_secmem_dump_stats): Fixed format sepcifier for a
size_t.  Reported by Stephane Corthesy.

16 years ago2003-10-11 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Sat, 11 Oct 2003 18:47:11 +0000 (18:47 +0000)]
2003-10-11  Moritz Schulte  <mo@g10code.com>

* acinclude.m4: Update AM_PATH_GPG_ERROR macro.

16 years ago* primegen.c (gcry_prime_generate): Make sure PRIME is set to NULL
Werner Koch [Fri, 10 Oct 2003 14:23:35 +0000 (14:23 +0000)]
* primegen.c (gcry_prime_generate): Make sure PRIME is set to NULL
  even on error.

16 years ago* primegen.c (gen_prime): Bail out if NBITS is less than 16.
Werner Koch [Fri, 10 Oct 2003 14:17:21 +0000 (14:17 +0000)]
* primegen.c (gen_prime): Bail out if NBITS is less than 16.
(prime_generate_internal): Initialize prime variable to suppress
compiler warning.  Check pbits, initialize qbits when passed as
zero.

* primegen.c (prime_generate_internal): New arg
ALL_FACTORS. Changed all callers.
(gcry_prime_generate): Make the factors arg optional. Request
all_factors.
(gcry_prime_group_generator): New.
(gcry_prime_release_factors): New.

* global.c (_gcry_malloc): Handle the no_secure_memory option.

* gcrypt.h (gcry_prime_group_generator): New.
(gcry_prime_release_factors): New.

* prime.c (check_primes): Generate a generator and avoid printing
unless in verbose mode.

16 years ago* sexp.c (sexp_sscan): Check that parenthesis are matching.
Werner Koch [Wed, 8 Oct 2003 08:36:06 +0000 (08:36 +0000)]
* sexp.c (sexp_sscan): Check that parenthesis are matching.

* tsexp.c (check_sscan): New.

16 years ago(gen_prime): Assert that NBITS is never zero, it
Werner Koch [Mon, 6 Oct 2003 12:10:41 +0000 (12:10 +0000)]
(gen_prime): Assert that NBITS is never zero, it
would cause a segv.

16 years ago2003-09-29 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Tue, 30 Sep 2003 20:15:16 +0000 (20:15 +0000)]
2003-09-29  Moritz Schulte  <mo@g10code.com>

* libgcrypt-config.in: Fix --algorithms option.

2003-09-28  Moritz Schulte  <mo@g10code.com>

* g10lib.h: Declare: _gcry_malloc.
(GCRY_ALLOC_FLAG_SECURE): New symbol.

* global.c (_gcry_malloc): New function...
(gcry_malloc): ... use it.
(gcry_malloc_secure): Likewise.

16 years ago2003-09-28 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Sun, 28 Sep 2003 03:32:37 +0000 (03:32 +0000)]
2003-09-28  Moritz Schulte  <mo@g10code.com>

* ath.c: Change License to LGPL.
* ath-pthread-compat.c: Likewise.
* ath-pthread.c: Likewise.
* ath-pth-compat.c: Likewise.
* ath-pth.c: Likewise.
* ath.h: Likewise.
* ath-compat.c: Likewise.

16 years ago2003-09-28 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Sun, 28 Sep 2003 03:08:43 +0000 (03:08 +0000)]
2003-09-28  Moritz Schulte  <mo@g10code.com>

* secmem.c (_gcry_secmem_realloc): Do not forget to release secmem
lock.  Thanks to low halo for triggering this bug.

16 years ago2003-09-02 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Wed, 17 Sep 2003 13:03:43 +0000 (13:03 +0000)]
2003-09-02  Moritz Schulte  <mo@g10code.com>

* Makefile.am (TESTS): Added: prime.

* prime.c: New file.

16 years agoAdded missing entry
Moritz Schulte [Wed, 17 Sep 2003 12:59:22 +0000 (12:59 +0000)]
Added missing entry

16 years agoPost-release version number bumb.
Werner Koch [Thu, 4 Sep 2003 10:51:19 +0000 (10:51 +0000)]
Post-release version number bumb.

16 years agoAbout to release 1.1.43 V1-1-43
Werner Koch [Thu, 4 Sep 2003 10:26:42 +0000 (10:26 +0000)]
About to release 1.1.43

16 years ago* pubkey.c (_gcry_pk_aliased_algo_name): New.
Werner Koch [Thu, 4 Sep 2003 10:11:25 +0000 (10:11 +0000)]
* pubkey.c (_gcry_pk_aliased_algo_name): New.
* ac.c (gcry_ac_open): Use it here.

* pubkey.c (check_keys_crypt): Fix for compatibility mode.

16 years ago(EXTRA_libcipher_la_SOURCES): Add serpent.c
Werner Koch [Thu, 4 Sep 2003 09:05:07 +0000 (09:05 +0000)]
(EXTRA_libcipher_la_SOURCES): Add serpent.c

16 years ago* configure.ac: Require libgpg-error 0.4 due to the prime interface.
Werner Koch [Thu, 4 Sep 2003 08:55:44 +0000 (08:55 +0000)]
* configure.ac: Require libgpg-error 0.4 due to the prime interface.

* gcrypt.h (_GCRY_ERR_SOURCE_DEFAULT): Removed cruft.
(gcry_prime_check_func_t): Renamed arg for clarity.

16 years ago2003-09-02 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Tue, 2 Sep 2003 00:44:20 +0000 (00:44 +0000)]
2003-09-02  Moritz Schulte  <mo@g10code.com>

* gcrypt.h (GCRY_PRIME_FLAG_SPECIAL_FACTOR): New symbol.

2003-09-01  Moritz Schulte  <mo@g10code.com>

* gcrypt.h (gcry_random_level_t): New type.
(gcry_prime_check_func_t): Likewise.
(GCRY_PRIME_FLAG_SECRET): New symbol.
(gcry_prime_generate, gcry_prime_check): Declare functions.

16 years ago2003-09-02 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Tue, 2 Sep 2003 00:42:41 +0000 (00:42 +0000)]
2003-09-02  Moritz Schulte  <mo@g10code.com>

* primegen.c (gcry_prime_check, gcry_prime_generate): New
functions.
(prime_generate_internal): New function, based on
_gcry_generate_elg_prime.
(_gcry_generate_elg_prime): Rewritten as a wrapper for
prime_generate_internal.

16 years ago(Working with hash algorithms): Clarified that HMAC
Werner Koch [Sat, 30 Aug 2003 10:05:23 +0000 (10:05 +0000)]
(Working with hash algorithms): Clarified that HMAC
does not work with all algorithms.

16 years ago* acinclude.m4 (GNUPG_SYS_SYMBOL_UNDERSCORE): Re-implemented.
Werner Koch [Fri, 29 Aug 2003 08:47:40 +0000 (08:47 +0000)]
* acinclude.m4 (GNUPG_SYS_SYMBOL_UNDERSCORE): Re-implemented.
* configure.ac: Use it here.

16 years ago(libgcrypt_pth_la_LDFLAGS): Removed PTH_CFLAGS cruft.
Werner Koch [Thu, 28 Aug 2003 14:24:26 +0000 (14:24 +0000)]
(libgcrypt_pth_la_LDFLAGS): Removed PTH_CFLAGS cruft.

16 years ago(gcry_pk_encrypt): Don't include the flags list in the
Werner Koch [Thu, 28 Aug 2003 14:24:05 +0000 (14:24 +0000)]
(gcry_pk_encrypt): Don't include the flags list in the
return value.  This does not make sense and breaks any programs
parsing the output strictly (e.g. current gpgsm).
(gcry_pk_encrypt): If aliases for the algorithm name exists, take
the first one instead of the regular name to adhere to SPKI
conventions.
(gcry_pk_genkey): Ditto.
(gcry_pk_sign): Ditto. Removed unused KEY_ALGO_NAME.

16 years ago2003-08-19 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Wed, 27 Aug 2003 16:41:22 +0000 (16:41 +0000)]
2003-08-19  Moritz Schulte  <mo@g10code.com>

* cipher.c: Add support for Serpent
* serpent.c: New file.

2003-08-10  Moritz Schulte  <moritz@g10code.com>

* rsa.c (_gcry_rsa_blind, _gcry_rsa_unblind): Declare static.

16 years ago2003-08-27 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Wed, 27 Aug 2003 16:36:41 +0000 (16:36 +0000)]
2003-08-27  Moritz Schulte  <mo@g10code.com>

* basic.c (check_ciphers): Added: Serpent.
Write braces around flags.

16 years ago2003-08-27 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Wed, 27 Aug 2003 16:04:01 +0000 (16:04 +0000)]
2003-08-27  Moritz Schulte  <mo@g10code.com>

* global.c (gcry_control): Remove call to ath_deinit.

* Makefile.am (libgcrypt_real_la_DEPENDENCIES): Fixed.
(libgcrypt_real_la_LIBADD): Fixed.
Removed unecessary variables.

16 years ago2003-08-19 Marcus Brinkmann <marcus@g10code.de>
Moritz Schulte [Wed, 27 Aug 2003 15:04:07 +0000 (15:04 +0000)]
2003-08-19  Marcus Brinkmann  <marcus@g10code.de>

* Makefile.am (SUFFIXES): New variable.
(.S.o, .S.lo, .S.obj): Rewritten.

16 years ago2003-08-27 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Wed, 27 Aug 2003 14:53:29 +0000 (14:53 +0000)]
2003-08-27  Moritz Schulte  <mo@g10code.com>

* libgcrypt-config.in: Adjusted script for new thread handling.

* Makefile.am: New version, based on GPGMEs Makefile.am.

* ath.c, ath-compat.c, ath.h, ath-pth.c, ath-pth-compat.c,
ath-pthread.c, ath-pthread-compat.c: New files, merged from GPGME.
* ath.c, ath.h, ath-pthread.c, ath-pth.c: Removed files.

16 years ago2003-08-27 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Wed, 27 Aug 2003 14:48:23 +0000 (14:48 +0000)]
2003-08-27  Moritz Schulte  <mo@g10code.com>

* configure.ac: Substitute: LIBGCRYPT_CONFIG_LIBS_PTHREAD,
LIBGCRYPT_CONFIG_CFLAGS_PTHREAD, LIBGCRYPT_CONFIG_LIBS_PTH,
LIBGCRYPT_CONFIG_CFLAGS_PTH, LIBGCRYPT_THREAD_MODULES.

16 years ago2003-08-09 Timo Schulz <twoaday@freakmail.de>
Timo Schulz [Sat, 9 Aug 2003 17:21:36 +0000 (17:21 +0000)]
2003-08-09  Timo Schulz  <twoaday@freakmail.de>

        * random.c (getfnc_gather_random): Don't check NAME_OF_DEV_RANDOM
        two times, but also the NAME_OF_DEV_URANDOM device.

16 years ago2003-08-08 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Fri, 8 Aug 2003 01:42:54 +0000 (01:42 +0000)]
2003-08-08  Moritz Schulte  <moritz@g10code.com>

* global.c (gcry_realloc): Remove FIXME about `clearing out
realloced memory', since _gcry_secmem_realloc takes care of
overwriting old memory.

16 years ago2003-08-08 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Thu, 7 Aug 2003 22:36:35 +0000 (22:36 +0000)]
2003-08-08  Moritz Schulte  <moritz@g10code.com>

* pubkey.c (sexp_to_enc): Fixed extraction of S-Expression: do not
fail if no `flags' sub S-Expression is found.

16 years ago2003-08-07 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Thu, 7 Aug 2003 14:51:44 +0000 (14:51 +0000)]
2003-08-07  Moritz Schulte  <moritz@g10code.com>

* configure.ac: Fail, if libgpg-error could not be found.

16 years ago(_gcry_module_release): Don't act if module is NULL.
Werner Koch [Thu, 7 Aug 2003 06:20:53 +0000 (06:20 +0000)]
(_gcry_module_release): Don't act if module is NULL.

16 years ago2003-08-04 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 4 Aug 2003 16:45:06 +0000 (16:45 +0000)]
2003-08-04  Moritz Schulte  <moritz@g10code.com>

* benchmark.c (do_powm): Adjust for new gcry_mpi_scan interface.

16 years agoBumbed version number for next development cycle
Werner Koch [Thu, 31 Jul 2003 06:41:49 +0000 (06:41 +0000)]
Bumbed version number for next development cycle

16 years agoautoupdate of version number V1-1-42
Werner Koch [Thu, 31 Jul 2003 06:36:55 +0000 (06:36 +0000)]
autoupdate of version number

16 years agoAbout to release 1.1.42
Werner Koch [Thu, 31 Jul 2003 05:59:01 +0000 (05:59 +0000)]
About to release 1.1.42

16 years agoUpdated from ftp.gnu.org/gnu/config/
Werner Koch [Wed, 30 Jul 2003 17:04:03 +0000 (17:04 +0000)]
Updated from ftp.gnu.org/gnu/config/

16 years ago2003-07-30 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Wed, 30 Jul 2003 16:42:51 +0000 (16:42 +0000)]
2003-07-30  Moritz Schulte  <moritz@g10code.com>

* gcrypt.texi (Available asymmetric algorithms): Mention
GCRY_AC_ELG_E.

16 years agoMore news items
Werner Koch [Wed, 30 Jul 2003 13:37:34 +0000 (13:37 +0000)]
More news items

16 years ago(Maintainer): Assigned Moritz as Maintainer.
Werner Koch [Wed, 30 Jul 2003 13:13:47 +0000 (13:13 +0000)]
(Maintainer): Assigned Moritz as Maintainer.

16 years ago2003-07-30 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Wed, 30 Jul 2003 11:39:15 +0000 (11:39 +0000)]
2003-07-30  Moritz Schulte  <moritz@g10code.com>

* longlong.h (__clz_tab): Renamed to _gcry_clz_tab.
* mpi-bit.c (__clz_tab): Likewise.

16 years ago2003-07-30 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Wed, 30 Jul 2003 10:52:12 +0000 (10:52 +0000)]
2003-07-30  Moritz Schulte  <moritz@g10code.com>

* NEWS: Include much more complete list of `Interface changes
relative to the 1.1.12 release'.

16 years agocomment fix
Werner Koch [Wed, 30 Jul 2003 07:54:12 +0000 (07:54 +0000)]
comment fix

16 years ago2003-07-30 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Tue, 29 Jul 2003 22:53:03 +0000 (22:53 +0000)]
2003-07-30  Moritz Schulte  <moritz@g10code.com>

* gcrypt.h (enum gcry_ac_id): Added: GCRY_AC_ELG_E.
Reverted change: use gcry_md_flags enumeration list instead of
defines.

16 years ago* gcrypt.h: Renamed index to idx, so avoid warning
Werner Koch [Tue, 29 Jul 2003 12:48:44 +0000 (12:48 +0000)]
* gcrypt.h: Renamed index to idx, so avoid warning
related to the old index function.

16 years ago* global.c (gcry_control): Add GCRYCTL_SET_RANDOM_SEED_FILE and
Werner Koch [Tue, 29 Jul 2003 08:47:39 +0000 (08:47 +0000)]
* global.c (gcry_control): Add GCRYCTL_SET_RANDOM_SEED_FILE and
GCRYCTL_UPDATE_RANDOM_SEED_FILE.
* gcrypt.h: Ditto.

16 years ago2003-07-28 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 28 Jul 2003 13:25:00 +0000 (13:25 +0000)]
2003-07-28  Moritz Schulte  <moritz@g10code.com>

* global.c (gcry_err_code_from_errno, gcry_err_code_to_errno)
(gcry_err_make_from_errno, gcry_error_from_errno): New functions.

* gcrypt.h: Declared: gcry_err_code_from_errno,
gcry_err_code_to_errno, gcry_err_make_from_errno,
gcry_error_from_errno.

16 years agoImproved.
Moritz Schulte [Mon, 28 Jul 2003 13:19:43 +0000 (13:19 +0000)]
Improved.

16 years agoActually include gcrypt-module.h
Werner Koch [Mon, 28 Jul 2003 12:10:36 +0000 (12:10 +0000)]
Actually include gcrypt-module.h

16 years agoMinor char * to unsigned char* changes. The general rule is to use
Werner Koch [Mon, 28 Jul 2003 12:06:42 +0000 (12:06 +0000)]
Minor char * to unsigned char* changes.  The general rule is to use
unsigned char * for memory buffers which are not Nul-terminated

16 years ago2003-07-28 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 28 Jul 2003 10:37:28 +0000 (10:37 +0000)]
2003-07-28  Moritz Schulte  <moritz@g10code.com>

(General public-key related Functions): Fixed some sentences,
thanks to Neil Spring.

16 years ago2003-07-28 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 28 Jul 2003 10:17:44 +0000 (10:17 +0000)]
2003-07-28  Moritz Schulte  <moritz@g10code.com>

* Makefile.am (include_HEADERS): Added: gcrypt-module.h.

* gcrypt.h: Include <gcrypt-module.h>.

* gcrypt-module.h: New file.

16 years ago2003-07-28 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 28 Jul 2003 09:52:49 +0000 (09:52 +0000)]
2003-07-28  Moritz Schulte  <moritz@g10code.com>

* gcrypt.texi (Working with keys): Mention that gcry_pk_testkey
and gcry_ac_key_test only verify private keys.
(Working with keys): Fix typo.

16 years ago* md.c (gcry_md_lookup_func_oid): Allow for empty OID lists.
Werner Koch [Sun, 27 Jul 2003 20:47:07 +0000 (20:47 +0000)]
* md.c (gcry_md_lookup_func_oid): Allow for empty OID lists.

16 years agoNew file with hints on changing applications for the new API.
Werner Koch [Sun, 27 Jul 2003 17:22:35 +0000 (17:22 +0000)]
New file with hints on changing applications for the new API.
unfinished....

16 years ago* gcrypt.h (gcry_mpi_scan, gcry_mpi_print): API change.
Werner Koch [Sun, 27 Jul 2003 11:41:12 +0000 (11:41 +0000)]
* gcrypt.h (gcry_mpi_scan, gcry_mpi_print): API change.
(gcry_mpi_dump): New.

* mpicoder.c (gcry_mpi_scan): New argument BUFLEN to replace the
use of the intial value of NBYTES.
(gcry_mpi_print): Likewise.
(gcry_mpi_dump): New.
(_gcry_log_mpidump): Make use of gcry_mpi_dump.
(mpi_print): Removed.
(gcry_mpi_scan): Allocated mpi in secure memory when required.

* gcrypt.texi: Adjusted description of gcry_mpi_scan and
gcry_mpi_dump. Add gcry_mpi_dump.

16 years ago2003-07-23 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Wed, 23 Jul 2003 16:14:38 +0000 (16:14 +0000)]
2003-07-23  Moritz Schulte  <moritz@g10code.com>

* ac.c (key_copy): New function...
(check_one): ... use it.

16 years agoMoved mail address of a bug reporter from ChangeLog to THANKS for
Werner Koch [Wed, 23 Jul 2003 07:39:34 +0000 (07:39 +0000)]
Moved mail address of a bug reporter from ChangeLog to THANKS for
anti-spam reasons and easier maintenance of changed addresses.

16 years ago2003-07-23 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Tue, 22 Jul 2003 22:28:34 +0000 (22:28 +0000)]
2003-07-23  Moritz Schulte  <moritz@g10code.com>

* ac.c (gcry_ac_data_construct): New argument: include_flags, only
include `flags' S-expression, if include_flags is true.  Adjust
callers.  Thanks for triggering a bug caused by `flags'
sub-S-expression where they are not expected to Ralf Schneider
<ralf@tapfere-schneiderleins.de>.

16 years ago2003-07-22 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 21 Jul 2003 22:51:40 +0000 (22:51 +0000)]
2003-07-22  Moritz Schulte  <moritz@g10code.com>

* basic.c (check_ciphers): Use gcry_cipher_map_name.

2003-07-18  Moritz Schulte  <moritz@g10code.com>

* ac.c (check_run): Renamed to ...
(check_one): ... this, changed calling interface.
(check_run): New function.

* register.c: Adjust gcry_cipher_spec_t structure.

16 years ago2003-07-22 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 21 Jul 2003 22:48:13 +0000 (22:48 +0000)]
2003-07-22  Moritz Schulte  <moritz@g10code.com>

* gcrypt.texi: Added more documentation for the register
mechanism.

16 years ago2003-07-21 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 21 Jul 2003 22:44:06 +0000 (22:44 +0000)]
2003-07-21  Moritz Schulte  <moritz@g10code.com>

* gcrypt.h: Declared: gcry_ac_key_data_get.
(gcry_pk_spec): Renamed member `sexp_names' into `aliases'.

2003-07-20  Moritz Schulte  <moritz@g10code.com>

* gcrypt.h (gcry_md_oid_spec_t): New type.
(gcry_md_spec): New member: oids.

2003-07-19  Moritz Schulte  <moritz@g10code.com>

* gcrypt.h (gcry_cipher_oid_spec_t): New type.
(gcry_cipher_spec): New member: oids;