libgcrypt.git
15 years ago*** empty log message *** V1-1-94
Werner Koch [Mon, 29 Mar 2004 09:07:26 +0000 (09:07 +0000)]
*** empty log message ***

15 years agoAdded
Werner Koch [Mon, 29 Mar 2004 08:40:44 +0000 (08:40 +0000)]
Added

15 years ago* configure.ac: Set LT to C12/A1/R0.
Werner Koch [Mon, 29 Mar 2004 08:38:43 +0000 (08:38 +0000)]
* configure.ac: Set LT to C12/A1/R0.

* libgcrypt-config.in (Options): Ignore the obsolete --threads
option for now.

15 years ago2004-03-17 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 17 Mar 2004 15:01:20 +0000 (15:01 +0000)]
2004-03-17  Marcus Brinkmann  <marcus@g10code.de>

* libgcrypt-config.in (includedir, libdir): Quote'em.  Use
$gpg_error_cflags and $gpg_error_libs.  Fix construction of
$includes.

15 years ago2004-03-14 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sat, 13 Mar 2004 23:23:25 +0000 (23:23 +0000)]
2004-03-14  Marcus Brinkmann  <marcus@g10code.de>

* libgcrypt-config.in (includedir, libdir): New variables.  For
--cflags, don't test $cflags.  Also check against /include for the
GNU/Hurd.  Don't overwrite but extend $cflags_final.  Likewise for
--libs.

15 years ago2004-03-10 Marcus Brinkmann <marcus@g10code.de> marcus-after-thread-cbs
Marcus Brinkmann [Thu, 11 Mar 2004 01:44:44 +0000 (01:44 +0000)]
2004-03-10  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac (LIBGCRYPT_CONFIG_LIBS_PTHREAD,
LIBGCRYPT_CONFIG_CFLAGS_PTHREAD, LIBGCRYPT_CONFIG_LIBS_PTH,
LIBGCRYPT_CONFIG_CFLAGS_PTH, have_pth, have_pthread, AC_CHECK_PTH,
AC_CHECK_LIB(pthread), HAVE_PTH, HAVE_PTHREAD): Removed.

doc/
2004-03-11  Marcus Brinkmann  <marcus@g10code.de>

* gcrypt.texi (Multi Threading): Partially document new thread
support.

src/
2004-03-10  Marcus Brinkmann  <marcus@g10code.de>

* Makefile.am (ltlib_libgcrypt_pthread, ltlib_libgcrypt_pth): Removed.
(lib_LTLIBRARIES): Remove those variables from here.
(libgcrypt_pthread_la_SOURCES, libgcrypt_pthread_la_LDFLAGS,
(libgcrypt_pthread_la_DEPENDENCIES, libgcrypt_pthread_la_LIBADD,
(libgcrypt_pth_la_SOURCES, libgcrypt_pth_la_LDFLAGS,
(libgcrypt_pth_la_DEPENDENCIES, libgcrypt_pth_la_LIBADD,
(noinst_LTLIBRARIES): Removed.
(libgcrypt_real_la_SOURCES): Merge with ...
(libgcrypt_la_SOURCES): ... likewise.
(libgcrypt_real_la_DEPENDENCIES): Merge with ...
(libgcrypt_la_DEPENDENCIES): ... this.
(libgcrypt_real_la_LIBADD): Merge with ...
(libgcrypt_la_LIBADD): ... this.
* libgcrypt-config.in (libs_pthread, libs_pth, cflags_pth)
(cflags_pthread, thread_module, thread_modules): Removed.
(Options): Remove --thread option from help output.  If the option
is specified, output an error and exit.
For --cflags and --libs option, remove pth and pthread from output.
* gcrypt.h: Include <sys/types.h> and <sys/socket.h>.
(enum gcry_ctl_cmds): Add GCRYCTL_SET_THREAD_CBS.
(gcry_thread_cbs): New struct.
* global.c (gcry_control): Implement GCRYCTL_SET_THREAD_CBS.
(global_init): Don't call ath_init here.
* ath.h: Rewritten.
* ath.c: Rewritten.

15 years agoPost release development preparation. marcus-before-thread-cbs
Werner Koch [Sat, 6 Mar 2004 19:11:18 +0000 (19:11 +0000)]
Post release development preparation.

15 years ago. V1-1-93
Werner Koch [Sat, 6 Mar 2004 19:09:55 +0000 (19:09 +0000)]
.

15 years ago* configure.ac (LIBGCRYPT_CONFIG_SONAME_NUMBER): Replaced by
Werner Koch [Sat, 6 Mar 2004 18:47:46 +0000 (18:47 +0000)]
* configure.ac (LIBGCRYPT_CONFIG_SONAME_NUMBER): Replaced by
LIBGCRYPT_CONPIG_API_VERSION.  Set it to 1.  Set LT to C11/A0/R1.

* libgcrypt-config.in: s/--soname-number/--api-version/
* libgcrypt.m4: Changed test for API version.

15 years ago* configure.ac (LIBGCRYPT_CONFIG_SONAME_NUMBER): New.
Werner Koch [Fri, 5 Mar 2004 13:57:47 +0000 (13:57 +0000)]
* configure.ac (LIBGCRYPT_CONFIG_SONAME_NUMBER): New.

* libgcrypt.m4: Optionally check the SONAME number.

* libgcrypt-config.in: Add option --soname-number

15 years ago* hppa1.1/udiv-qrnnd.S: Alignment fix from Lamont Jones for
Werner Koch [Wed, 3 Mar 2004 08:08:43 +0000 (08:08 +0000)]
* hppa1.1/udiv-qrnnd.S: Alignment fix from Lamont Jones for
Debian.  Taken from gnupg-1.3.

* longlong.h: Added PowerPC 64 bit code from GPM-4.1.2 but didn't
enable it yet.  Some whitespace changes in HPPA to fix assembler
problems on HP-UX.  From gnupg 1.3

* mpiutil.c (_gcry_mpi_alloc_limb_space): Better allocate
something even if NLIMBS is passed as 0.

* config.links: Updated system list to match gnupg 1.3.

15 years ago* Makefile.am (TEST): Add benchmark.
Werner Koch [Wed, 3 Mar 2004 08:08:05 +0000 (08:08 +0000)]
* Makefile.am (TEST): Add benchmark.

* benchmark.c (md_bench, cipher_bench): Allow NULL arg to to run
tests for all algorithms.
(main): Run all tests by default.

15 years agoTypo fixes.
Werner Koch [Wed, 3 Mar 2004 08:07:22 +0000 (08:07 +0000)]
Typo fixes.

15 years ago* gcrypt.texi (Calculations): Typo fix.
Werner Koch [Wed, 3 Mar 2004 08:06:16 +0000 (08:06 +0000)]
* gcrypt.texi (Calculations): Typo fix.

15 years ago2004-03-01 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 2 Mar 2004 05:45:40 +0000 (05:45 +0000)]
2004-03-01  Marcus Brinkmann  <marcus@g10code.de>

* Makefile.am (libgcrypt_la_SOURCES): Add ath.c.
* ath.c (ath_init): Add missing function.

15 years ago2004-03-01 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Mon, 1 Mar 2004 17:30:20 +0000 (17:30 +0000)]
2004-03-01  Marcus Brinkmann  <marcus@g10code.de>

* Makefile.am (ath_pth_src): Removed.
(ath_pthread_src): Removed.
(libgcrypt_la_SOURCES): Remove ath-compat, $(ath_pth_src) and
$(ath_pthread_src).
* ath-compat.c, ath-pth-compat.c, ath-pthread-compat.c: Files
removed.

15 years agoTypo fix and checked recent changes
Werner Koch [Wed, 25 Feb 2004 18:27:35 +0000 (18:27 +0000)]
Typo fix and checked recent changes

15 years agopost release version bump.
Werner Koch [Fri, 20 Feb 2004 20:07:22 +0000 (20:07 +0000)]
post release version bump.

15 years ago* configure.ac: Set LT to C11/A0/R0. V1-1-92
Werner Koch [Fri, 20 Feb 2004 19:00:31 +0000 (19:00 +0000)]
* configure.ac: Set LT to C11/A0/R0.

* gcrypt.h (GCRY_PRIME_CHECK_AT_GOT_PRIME)
(GCRY_PRIME_CHECK_AT_FINISH),
(GCRY_PRIME_CHECK_AT_MAYBE_PRIME): New.

15 years ago* primegen.c (check_prime): New args CB_FUNC and CB_ARG; call them
Werner Koch [Fri, 20 Feb 2004 18:32:40 +0000 (18:32 +0000)]
* primegen.c (check_prime): New args CB_FUNC and CB_ARG; call them
at different stages.  Pass these arguments through all callers.

* gcrypt.h (GCRY_PRIME_CHECK_AT_GOT_PRIME)
(GCRY_PRIME_CHECK_AT_FINISH),
(GCRY_PRIME_CHECK_AT_MAYBE_PRIME): New.

15 years agoAdded support for a 40 bit RFC2268 cipher. Thanks to Nikos.
Werner Koch [Fri, 13 Feb 2004 12:44:15 +0000 (12:44 +0000)]
Added support for a 40 bit RFC2268 cipher.  Thanks to Nikos.

15 years ago* secmem.c (_gcry_secmem_init): Do not print the "not locked into
Werner Koch [Tue, 3 Feb 2004 12:13:16 +0000 (12:13 +0000)]
* secmem.c (_gcry_secmem_init): Do not print the "not locked into
core warning" if the NO_WARNING flag has been set.

* sexp.c (sexp_sscan): Allocate result in secure memory if BUFFER
is in secure memory. Switch to secure memory for the a secure %b
format item. Extra paranoid wipe on error.
(gcry_sexp_release): Added paranoid wiping for securely allocated
S-expressions.

* tsexp.c (basic): New pass to check secure memory switching.

15 years agoAdded simple test programm for getrusage - CVS only.
Werner Koch [Mon, 26 Jan 2004 11:56:11 +0000 (11:56 +0000)]
Added simple test programm for getrusage - CVS only.

15 years ago2004-01-25 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Sun, 25 Jan 2004 12:05:41 +0000 (12:05 +0000)]
2004-01-25  Moritz Schulte  <mo@g10code.com>

* primegen.c (prime_generate_internal): Do not forget to free
`q_factor'; fixed by Brieuc Jeunhomme.
(prime_generate_internal): Do not forget to free `prime'.

15 years ago2004-01-25 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Sun, 25 Jan 2004 12:04:30 +0000 (12:04 +0000)]
2004-01-25  Moritz Schulte  <mo@g10code.com>

* THANKS: Updated.

15 years ago2004-01-25 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Sun, 25 Jan 2004 12:03:36 +0000 (12:03 +0000)]
2004-01-25  Moritz Schulte  <mo@g10code.com>

* gcrypt.texi (General cipher functions): Fixed descriptions of
the arguments for GCRYCTL_GET_KEYLEN, GCRYCTL_GET_BLKLEN; reported
by Randy.

15 years ago2004-01-25 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Sun, 25 Jan 2004 12:01:23 +0000 (12:01 +0000)]
2004-01-25  Moritz Schulte  <mo@g10code.com>

* ath.h: Include <config.h>.

15 years ago2004-01-12 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Thu, 15 Jan 2004 07:41:28 +0000 (07:41 +0000)]
2004-01-12  Moritz Schulte  <mo@g10code.com>

* ac.c (check_one): Adjust to new ac API.

15 years ago2004-01-14 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Thu, 15 Jan 2004 03:55:32 +0000 (03:55 +0000)]
2004-01-14  Moritz Schulte  <mo@g10code.com>

* ac.c (gcry_ac_data_set): New argument: flags; slightly
rewritten.
(gcry_ac_data_get_name, gcry_ac_data_get_index): Likewise.
(gcry_ac_key_pair_generate): New argument: misc_data; modified
order of arguments.
(gcry_ac_key_test): New argument: handle.
(gcry_ac_key_get_nbits, gcry_ac_key_get_grip): Likewise.
Use GCRY_AC_FLAG_NO_BLINDING instead of
GCRY_AC_DATA_FLAG_NO_BLINDING.
(gcry_ac_mpi): New member: flags.
(gcry_ac_data_search, gcry_ac_data_add): Removed functions.

15 years ago2004-01-12 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Thu, 15 Jan 2004 03:52:49 +0000 (03:52 +0000)]
2004-01-12  Moritz Schulte  <mo@g10code.com>

* gcrypt.h: Adjusted declarations of: gcry_ac_data_set,
gcry_ac_data_get_name, gcry_ac_data_get_index,
gcry_ac_key_pair_generate, gcry_ac_key_test,
gcry_ac_key_get_nbits, gcry_ac_key_get_grip.

* gcrypt.h (GCRY_AC_FLAG_DATA_NO_BLINDING): Removed symbol.
(GCRY_AC_FLAG_DEALLOC, GCRY_AC_FLAG_COPY)
(GCRY_AC_FLAG_NO_BLINDING): New symbols.

* global.c (gcry_strdup): Removed function.
* string.c: New file.
* Makefile.am (libgcrypt_real_la_SOURCES): Added: string.c.
* string.c (gcry_strdup): New function.
* gcrypt.h (gcry_strdup): Declare.

15 years ago(is_prime): Release A2.
Werner Koch [Mon, 22 Dec 2003 09:09:31 +0000 (09:09 +0000)]
(is_prime): Release A2.

15 years ago(wipememory, wipememory2): New; taken from gnupg.
Werner Koch [Fri, 19 Dec 2003 19:50:14 +0000 (19:50 +0000)]
(wipememory, wipememory2): New; taken from gnupg.

15 years ago* mpi-internal.h [M_DEBUG]: Removed this unused code.
Werner Koch [Fri, 19 Dec 2003 19:50:04 +0000 (19:50 +0000)]
* mpi-internal.h [M_DEBUG]: Removed this unused code.
(struct karatsuba_ctx): Added TSPACE_NLIMBS and TP_NLIMBS.
* mpiutil.c (_gcry_mpi_free_limb_space): Add arg NLIMBS and wipe
out the memory.  Changed all callers.
* mpih-mul.c (_gcry_mpih_mul_karatsuba_case): Keep track of
allocated limbs.
* mpi-div.c (_gcry_mpi_tdiv_qr): Keep track of allocated limbs.
* mpi-mul.c (gcry_mpi_mul): Ditto.
* mpi-pow.c (gcry_mpi_powm): Ditto.

* mpiutil.c (gcry_mpi_randomize): Use gcry_create_nonce if WEAK
random has been requested.

15 years ago* md.c: Moved a couple of functions down below the data structure
Werner Koch [Fri, 19 Dec 2003 19:49:35 +0000 (19:49 +0000)]
* md.c: Moved a couple of functions down below the data structure
definitions.
(struct gcry_md_context): New field ACTUAL_HANDLE_SIZE.
(md_open): Set it here.
(strcut gcry_md_list): New field ACTUAL_STRUCT_SIZE.
(md_enable): Set it here.
(md_close): Wipe the context memory.
secure memory.
* cipher.c (struct gcry_cipher_handle): New field ACTUAL_HANDLE_SIZE.
(gcry_cipher_open): Set it here.
(gcry_cipher_close): Use it to always wipe out the handle data.

* md.c: Minor code and comment cleanups.

15 years agoPost release version number bump
Werner Koch [Fri, 19 Dec 2003 11:45:48 +0000 (11:45 +0000)]
Post release version number bump

15 years agoAdded Manifest files.
Werner Koch [Fri, 19 Dec 2003 11:44:33 +0000 (11:44 +0000)]
Added Manifest files.

15 years ago(gcry_mpi_randomize): Use gcry_create_nonce if WEAK V1-1-91
Werner Koch [Fri, 19 Dec 2003 10:30:48 +0000 (10:30 +0000)]
(gcry_mpi_randomize): Use gcry_create_nonce if WEAK
random has been requested.

15 years agoBumbed LT version to C10/A3/R1.
Werner Koch [Fri, 19 Dec 2003 09:20:59 +0000 (09:20 +0000)]
Bumbed LT version to C10/A3/R1.

15 years ago* ac.c (gcry_ac_open): Make sure HANDLE gets initialized even when
Werner Koch [Fri, 19 Dec 2003 09:20:41 +0000 (09:20 +0000)]
* ac.c (gcry_ac_open): Make sure HANDLE gets initialized even when
the function is not successful.
(gcry_ac_close): Allow a NULL handle.
(gcry_ac_key_destroy, gcry_ac_key_pair_destroy): Ditto.
(gcry_ac_key_get_grip): Return INV_OBJ on error.

* primegen.c (prime_generate_internal): Fixed error code for
failed malloc.  Replaced the !err if chain by gotos.
(gcry_prime_group_generator): Remove the extra sanity check.

* md.c: Minor code and comment cleanups.

15 years agoMostly indendation changes. Completed the Manifest.
Werner Koch [Thu, 11 Dec 2003 15:46:12 +0000 (15:46 +0000)]
Mostly indendation changes.  Completed the Manifest.

15 years ago* dsa.c: Unified indentation style.
Werner Koch [Tue, 9 Dec 2003 14:10:32 +0000 (14:10 +0000)]
* dsa.c: Unified indentation style.
* elgamal.c: Ditto.
* des.c (des_key_schedule): Code beautifications.
* blowfish.c: Changed indentation style.
* cast5.c (do_cast_setkey): Ditto.

15 years ago* pubkey.c (gcry_pk_encrypt): Replaced the chain of if(!err) tests
Werner Koch [Tue, 9 Dec 2003 13:17:03 +0000 (13:17 +0000)]
* pubkey.c (gcry_pk_encrypt): Replaced the chain of if(!err) tests
by straightforward gotos. Other cleanups.
(gcry_pk_decrypt): Ditto.
(gcry_pk_sign): Ditto.
(gcry_pk_verify): Ditto.
(gcry_pk_genkey): Ditto.  Use strtoul instead of strtol.
(gcry_pk_ctl): Use GPG_ERR_INV_ARG to indicate bad arguments.

15 years agoRemoved the files we now keep in the top dir.
Werner Koch [Mon, 8 Dec 2003 21:48:54 +0000 (21:48 +0000)]
Removed the files we now keep in the top dir.

15 years agokeep the libtool macros here.
Werner Koch [Mon, 8 Dec 2003 21:45:34 +0000 (21:45 +0000)]
keep the libtool macros here.

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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

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

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

15 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

15 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.

15 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

15 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.

15 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.

15 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.

15 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.