libgcrypt.git
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.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

15 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

15 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

15 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

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

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

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

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

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

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

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

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

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

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

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

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

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

15 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

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

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

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

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

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

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

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

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

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

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

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

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

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

* pubkey.c (gcry_pk_lookup_func_name): Use new member name
`aliases' instead of `sexp_names'.

* ac.c (gcry_ac_key_data_get): New function.

* cipher.c (gcry_cipher_lookup_func_name): Fix return value.

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

* blowfish.c: Adjusted for new gcry_cipher_spec_t structure.
* cast5.c: Likewise.
* twofish.c: Likewise.
* arcfour.c: Likewise.
* rijndael.c (rijndael_oids, rijndael192_oids, rijndael256_oids):
New variables, adjust for new gcry_cipher_spec_t structure.
* des.c (oids_tripledes): New variable, adjust for new
gcry_cipher_spec_t structure.

* md.c (oid_table): Removed.

* tiger.c (oid_spec_tiger): New variable.
(digest_spec_tiger): Adjusted for new gry_md_spec_t structure.

* sha512.c (oid_spec_sha512): New variable.
(digest_spec_sha512): Adjusted for new gry_md_spec_t structure.

* sha512.c (oid_spec_sha384): New variable.
(digest_spec_sha384): Adjusted for new gry_md_spec_t structure.

* sha256.c (oid_spec_sha256): New variable.
(digest_spec_sha256): Adjusted for new gry_md_spec_t structure.

* sha1.c (oid_spec_sha1): New variable.
(digest_spec_sha1): Adjusted for new gry_md_spec_t structure.

* rmd160.c (oid_spec_rmd160): New variable.
(digest_spec_rnd160): Adjusted for new gry_md_spec_t structure.

* md5.c (oid_spec_md5): New variable.
(digest_spec_md5): Adjusted for new gry_md_spec_t structure.

* md4.c (oid_spec_md4): New variable.
(digest_spec_md4): Adjusted for new gry_md_spec_t structure.

* crc.c (digest_spec_crc32, digest_spec_crc32_rfc1510,
digest_spec_crc32_rfc2440): Adjusted for new gry_md_spec_t
structure.

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

* md.c (gcry_md_lookup_func_oid): New function.
(search_oid): New function, copied from cipher.c.
(gcry_md_map_name): Adjust for new search_oid_interface.

* cipher.c (oid_table): Removed table.
(gcry_cipher_lookup_func_oid): New function.
(search_oid): Rewritten to use the module functions.
(gcry_cipher_map_name): Adjust for new search_oid interface.
(gcry_cipher_mode_from_oid): Likewise.

15 years agoForgot to fix the conflict here.
Werner Koch [Fri, 18 Jul 2003 13:45:21 +0000 (13:45 +0000)]
Forgot to fix the conflict here.

15 years ago* gcrypt.h (gcry_mpi_set_opaque): Add a warning comment.
Werner Koch [Fri, 18 Jul 2003 13:44:36 +0000 (13:44 +0000)]
* gcrypt.h (gcry_mpi_set_opaque): Add a warning comment.

15 years ago* gcrypt.texi (Misc): Add a warning on the use of opaque values.
Werner Koch [Fri, 18 Jul 2003 11:44:42 +0000 (11:44 +0000)]
* gcrypt.texi (Misc): Add a warning on the use of opaque values.

15 years agoTODO: We need to describe all API changes in NEW before a release.
Werner Koch [Fri, 18 Jul 2003 11:34:07 +0000 (11:34 +0000)]
TODO: We need to describe all API changes in NEW before a release.

15 years ago* md.c (gcry_md_hash_buffer): Convert ERR to gpg_error_t in
Werner Koch [Fri, 18 Jul 2003 11:31:20 +0000 (11:31 +0000)]
* md.c (gcry_md_hash_buffer): Convert ERR to gpg_error_t in
gpg_strerror.
Solved a few conflicts.

15 years ago2003-07-15 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 14 Jul 2003 22:55:36 +0000 (22:55 +0000)]
2003-07-15  Moritz Schulte  <moritz@g10code.com>

* secmem.c (compress_pool): Remove function, since unused blocks
are automatically concatenad.

15 years ago*** empty log message ***
Moritz Schulte [Mon, 14 Jul 2003 22:38:06 +0000 (22:38 +0000)]
*** empty log message ***

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

* cipher.c (gcry_cipher_lookup_func_name): Also check the cipher
name aliases, not just the primary name.
(gcry_cipher_map_name): Remove kludge for aliasing Rijndael to
AES.

* arcfour.c, blowfish.c, cast5.c, des.c, twofish.c: Adjust cipher
specification structures.

* rijndael.c (rijndael_names, rijndael192_names,
rijndael256_names): New variables, use them in the cipher
specifications.

* rmd160test.c: Removed file.

* ac.c, arcfour.c, blowfish.c, cast5.c, cipher.c, des.c, dsa.c,
elgamal.c, md.c, pubkey.c, random.c, rijndael.c, rsa.c, twofish.c:
Used gcry_err* wrappers for libgpg symbols.

* primegen.c (gen_prime): Correct the order arguments to
extra_check.

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

* ac.c: Replaced all public occurences of gpg_error_t with
gcry_error_t.
* cipher.c: Likewise.
* md.c: Likewise.
* pubkey.c: Likewise.
* random.c: Likewise.

* cipher.c: Added support for TWOFISH128.

15 years ago2003-07-14 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 14 Jul 2003 22:34:22 +0000 (22:34 +0000)]
2003-07-14  Moritz Schulte  <moritz@g10code.com>

* rmd160test.c: Removed file.

15 years ago2003-07-15 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 14 Jul 2003 22:33:41 +0000 (22:33 +0000)]
2003-07-15  Moritz Schulte  <moritz@g10code.com>

* gcrypt.h: Bumped version number up to 1.1.42-cvs.

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

* gcrypt.h (gcry_cipher_spec): New member: aliases.

* Makefile.am (noinst_PROGRAMS, testapi_SOURCES, testapai_LDADD,
benchmark_SOURCES, benchmark_LDADD): Removed.

* benchmark.c, testapi.c: Removed files.

* mpi.h: Removed disabled typedef.
* g10lib.h: Likewise.

* benchmark.c, g10lib.h, gcrypt.h, global.c, module.c, sexp.c:
Used gcry_err* wrappers for libgpg-error symbols.

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

* global.c: Likewise.

* gcrypt.h: New type: gcry_error_t, gcry_err_code_t and
gcry_err_source_t.
(gcry_err_make, gcry_error, gcry_err_code, gcry_err_source): New
functions.

* global.c (gcry_strerror): New function.
(gcry_strsource): New function.

* gcrypt.h: New symbol: GCRY_CIPHER_TWOFISH128.

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

* gcrypt.h (enum gcry_md_flags): Removed, used define instead,
since that is more common than an enumeration list when it comes
to flags that can be bitwise ORed.

15 years ago2003-07-14 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 14 Jul 2003 22:26:09 +0000 (22:26 +0000)]
2003-07-14  Moritz Schulte  <moritz@g10code.com>

* mpicoder.c: Used gcry_err* wrappers for libgpg-error symbols.

15 years ago2003-07-14 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 14 Jul 2003 22:25:58 +0000 (22:25 +0000)]
2003-07-14  Moritz Schulte  <moritz@g10code.com>

* benchmark.c: New file.
* testapi.c: New file.

15 years ago2003-07-14 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 14 Jul 2003 22:24:35 +0000 (22:24 +0000)]
2003-07-14  Moritz Schulte  <moritz@g10code.com>

* register.c: Adjust cipher specification structure.

* Makefile.am (EXTRA_PROGRAMS): Set to: benchmark testapi.
(check_PROGRAMS): Set to: $(TESTS).

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

* ac.c, basic.c, keygen.c, register.c, sexp.c, tsexp.c: Used
gcry_err* wrappers for libgpg symbols.

* basic.c (check_ciphers): Added: GCRY_CIPHER_TWOFISH128.