libgcrypt.git
14 years ago2005-04-11 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 11 Apr 2005 12:02:35 +0000 (12:02 +0000)]
2005-04-11  Moritz Schulte  <moritz@g10code.com>

* basic.c (check_digests): Add tests for Whirlpool.

14 years ago2005-04-11 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 11 Apr 2005 12:01:28 +0000 (12:01 +0000)]
2005-04-11  Moritz Schulte  <moritz@g10code.com>

* whirlpool.c: New file.
* md.c (digest_table): Add whirlpool.
* Makefile.am (EXTRA_libcipher_la_SOURCES): Added: whirlpool.c.

14 years ago2005-04-11 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 11 Apr 2005 11:58:29 +0000 (11:58 +0000)]
2005-04-11  Moritz Schulte  <moritz@g10code.com>

* gcrypt.h (gcry_md_algos): Added: GCRY_MD_WHIRLPOOL.
* cipher.h (_gcry_digest_spec_whirlpool): Declare.

14 years agoReverted last change, as it was unnecessary.
Moritz Schulte [Sun, 10 Apr 2005 19:00:27 +0000 (19:00 +0000)]
Reverted last change, as it was unnecessary.

14 years ago2005-04-09 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sat, 9 Apr 2005 16:57:54 +0000 (16:57 +0000)]
2005-04-09  Moritz Schulte  <moritz@g10code.com>

* tiger.c: Do not forget to include file types.h.
* md.c: Likewise.  These changes make Libgcrypt actually INCLUDE
the Tiger algorithm.

14 years ago2005-03-30 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Wed, 30 Mar 2005 19:06:08 +0000 (19:06 +0000)]
2005-03-30  Moritz Schulte  <moritz@g10code.com>

* ac.c (_gcry_ac_data_from_sexp): Use length of SEXP_CUR, not
length of SEXP; do not forget to set SEXP_TMP to NULL after it has
been released.

(struct gcry_ac_mpi): New member: name_provided.
(_gcry_ac_data_set): Rename variable `name_final' to `name_cp';
remove const qualifier; change code to not cast away const
qualifiers; use name_provided member as well.
(_gcry_ac_data_set, _gcry_ac_data_get_name): Use name_provided
member of named mpi structure.

(gcry_ac_name_to_id): Do not forget to initialize err.
(_gcry_ac_data_get_index): Do not forget to initialize mpi_return;
use gcry_free() instead of free(); remove unnecessary cast; rename
mpi_return and name_return to mpi_cp and name_cp; adjust code.
(ac_data_mpi_copy): Do not cast away const qualifier.
(ac_data_values_destroy): Likewise.
(ac_data_construct): Likewise.

(ac_data_mpi_copy): Initialize flags to GCRY_AC_FLAG_DEALLOC.
(ac_data_extract): Use GCRY_AC_FLAG_DEALLOC instead of
GCRY_AC_FLAG_COPY.

(_gcry_ac_io_init_va, _gcry_ac_io_init, gcry_ac_io_init)
(gcry_ac_io_init_va, _gcry_ac_io_write, _gcry_ac_io_read)
(_gcry_ac_io_read_all, _gcry_ac_io_process): New functions.
(gry_ac_em_dencode_t): Use gcry_ac_io_t in prototype instead of
memroy strings directly; adjust encode/decode functions to use io
objects.
(emsa_pkcs_v1_5_encode_data_cb): New function ...
(emsa_pkcs_v1_5_encode): ... use it here.
(ac_data_dencode): Use io objects.
(_gcry_ac_data_encode, _gcry_ac_data_decode, gcry_ac_data_encode)
(gcry_ac_data_decode): Likewise.
(_gcry_ac_data_encrypt_scheme, gcry_ac_data_encrypt_scheme)
(_gcry_ac_data_decrypt_scheme, gcry_ac_data_decrypt_scheme)
(_gcry_ac_data_sign_scheme, gcry_ac_data_sign_scheme)
(_gcry_ac_data_verify_scheme, gcry_ac_data_verify_scheme):
Likewise.

14 years ago2005-03-30 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Wed, 30 Mar 2005 19:05:25 +0000 (19:05 +0000)]
2005-03-30  Moritz Schulte  <moritz@g10code.com>

* ac-schemes.c: New file.
* ac-data.c: New file.
* Makefile.am (TESTS): Added ac-schemes and ac-data.

14 years ago2005-03-30 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Wed, 30 Mar 2005 18:40:02 +0000 (18:40 +0000)]
2005-03-30  Moritz Schulte  <moritz@g10code.com>

* libgcrypt.vers: Added: gcry_ac_io_init, gry_ac_io_init_va.

* gcrypt.h (gcry_ac_data_read_cb_t, gcry_ac_data_write_cb_t,
gcry_ac_io_mode_t, gcry_ac_io_type_t, gcry_ac_io_t): New types.
(gcry_ac_io_init_va): Declare function.
(gcry_ac_data_encode, gcry_ac_data_decode,
gcry_ac_data_encrypt_scheme, gcry_ac_data_decrypt_scheme,
gcry_ac_data_sign_scheme, gcry_ac_data_verify_scheme): Use
gcry_ac_io_type_t objects instead of memory strings directly.

14 years ago(_gcry_rndw32_gather_random_fast): While adding data
Werner Koch [Wed, 23 Mar 2005 08:53:54 +0000 (08:53 +0000)]
(_gcry_rndw32_gather_random_fast): While adding data
use the size of the object and not the one of its address.  Bug
reported by Sascha Kiefer.

14 years agoForgot to commit this (updated).
Moritz Schulte [Tue, 22 Mar 2005 21:30:17 +0000 (21:30 +0000)]
Forgot to commit this (updated).

14 years ago2005-03-03 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Tue, 22 Mar 2005 21:24:09 +0000 (21:24 +0000)]
2005-03-03  Moritz Schulte  <moritz@g10code.com>

* libgcrypt.vers: Added: gcry_ac_data_to_sexp() and
gcry_ac_data_from_sexp().

14 years ago2005-03-19 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sat, 19 Mar 2005 18:56:32 +0000 (18:56 +0000)]
2005-03-19  Moritz Schulte  <moritz@g10code.com>

* gcrypt.texi (Working with cipher handles): Clarify CTS mode.

14 years ago2005-03-19 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sat, 19 Mar 2005 17:35:27 +0000 (17:35 +0000)]
2005-03-19  Moritz Schulte  <moritz@g10code.com>

* cipher.c (do_cbc_encrypt): Be careful to not overwrite data,
which is to be used later on.  This happend, in case CTS is
enabled and OUTBUF is equal to INBUF.

14 years ago(gcry_pk_get_keygrip): Allow for shadowed-private-key.
Werner Koch [Fri, 25 Feb 2005 10:48:10 +0000 (10:48 +0000)]
(gcry_pk_get_keygrip): Allow for shadowed-private-key.

14 years agoSee ChangeLogs
Werner Koch [Tue, 22 Feb 2005 17:54:27 +0000 (17:54 +0000)]
See ChangeLogs

14 years ago(_gcry_malloc): Make sure ERRNO is set if we return
Werner Koch [Tue, 22 Feb 2005 17:49:27 +0000 (17:49 +0000)]
(_gcry_malloc): Make sure ERRNO is set if we return
NULL.  Remove unneeded initialization of M to allow the compiler
to catch errors.
(gcry_realloc): Make sure ERRNO is set if we return NULL>

14 years ago2005-02-16 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Wed, 16 Feb 2005 19:48:35 +0000 (19:48 +0000)]
2005-02-16  Moritz Schulte  <moritz@g10code.com>

* mpiutil.c (_gcry_mpi_alloc_limb_space): Rewritten, fixed memory
corruption.

14 years ago2005-02-13 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sun, 13 Feb 2005 18:41:15 +0000 (18:41 +0000)]
2005-02-13  Moritz Schulte  <moritz@g10code.com>

* serpent.c: Updated from 1.2 branch:

s/u32_t/u32/ and s/byte_t/byte/.  Too match what we have always
used and are using in all other files too
(serpent_test): Moved prototype out of a fucntion.

14 years ago2005-02-13 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sun, 13 Feb 2005 18:26:41 +0000 (18:26 +0000)]
2005-02-13  Moritz Schulte  <moritz@g10code.com>

* gcrypt.texi (Using cryptographic functions): Document new
encoding and scheme crypto functionality.

14 years ago2005-02-07 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sun, 13 Feb 2005 18:15:20 +0000 (18:15 +0000)]
2005-02-07  Moritz Schulte  <moritz@g10code.com>

* ac.c: Major parts rewritten.
* pubkey.c (_gcry_pk_get_elements): New function.

14 years ago2005-02-13 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sun, 13 Feb 2005 18:13:22 +0000 (18:13 +0000)]
2005-02-13  Moritz Schulte  <moritz@g10code.com>

* gcrypt.h: Declare new functions: gcry_ac_data_encrypt_scheme,
gcry_ac_data_decrypt_scheme, gcry_ac_data_sign_scheme,
gcry_ac_data_verify_scheme, gcry_ac_data_encode,
gcry_ac_data_decode, gcry_ac_data_to_sexp, gcry_ac_data_from_sexp.
New types: gcry_ac_emsa_pkcs_v1_5_t, gcry_ac_ssa_pkcs_v1_5_t,
gcry_md_algo_t.
New enumeration lists: gcry_ac_scheme_t, gcry_ac_em_t.
* libgcrypt.vers: Added new ac functions.
* g10lib.h: Declare function: _gcry_pk_get_elements.
* mpi.h (mpi_get_ui): New macro.
Declare function: _gcry_mpi_get_ui.

14 years ago2005-02-03 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Thu, 3 Feb 2005 19:42:56 +0000 (19:42 +0000)]
2005-02-03  Moritz Schulte  <moritz@g10code.com>

* gcrypt.texi: Fixed several typos; thanks to Michele Baldessari.

14 years ago2005-02-03 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Thu, 3 Feb 2005 19:41:41 +0000 (19:41 +0000)]
2005-02-03  Moritz Schulte  <moritz@g10code.com>

* THANKS: Updated.

14 years agoUpdated to use @copying. Fixed list of copyright
Werner Koch [Tue, 4 Jan 2005 20:49:00 +0000 (20:49 +0000)]
Updated to use @copying.  Fixed list of copyright
years; we had real changes in 2004.  Fixed some formatting issues.

14 years ago(mpi_optional_modules): Move entry for powerpc64
Werner Koch [Thu, 16 Dec 2004 16:34:56 +0000 (16:34 +0000)]
(mpi_optional_modules): Move entry for powerpc64
before generic powerpc.  Suggested by Rafael ��vila de Esp��ndola.

14 years ago(serpent_setkey): Moved prototype of serpent_test to
Werner Koch [Thu, 9 Dec 2004 17:04:47 +0000 (17:04 +0000)]
(serpent_setkey): Moved prototype of serpent_test to
outer scope.

14 years agoRemoved trailing commas. This time comitting to the right repository.
Werner Koch [Tue, 9 Nov 2004 17:57:38 +0000 (17:57 +0000)]
Removed trailing commas.  This time comitting to the right repository.

14 years agoDid some spell checking
Werner Koch [Tue, 12 Oct 2004 10:13:53 +0000 (10:13 +0000)]
Did some spell checking

14 years ago* sexp.c (sexp_sscan): Removed C++ style comments. Noted by Yoann
Werner Koch [Tue, 12 Oct 2004 08:55:42 +0000 (08:55 +0000)]
* sexp.c (sexp_sscan): Removed C++ style comments.  Noted by Yoann
Vandoorselaere.
* secmem.h (_gcry_secmem_set_flags,_gcry_secmem_get_flags):
Removed __pure__.
(GCRY_SECMEM_FLAG_NO_WARNING): Put macro value into parens.

15 years agoRemoved `mpi' from TESTS, which was added unintenionally.
Moritz Schulte [Wed, 15 Sep 2004 22:46:30 +0000 (22:46 +0000)]
Removed `mpi' from TESTS, which was added unintenionally.

15 years ago2004-09-15 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Wed, 15 Sep 2004 20:36:10 +0000 (20:36 +0000)]
2004-09-15  Moritz Schulte  <moritz@g10code.com>

* pkbench.c: Include <time.h>.

15 years ago2004-09-11 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Wed, 15 Sep 2004 19:01:18 +0000 (19:01 +0000)]
2004-09-11  Moritz Schulte  <moritz@g10code.com>

* pubkey.c (pubkey_table): Added an alias entry for GCRY_PK_ELG_E.

15 years ago2004-08-24 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Tue, 24 Aug 2004 20:22:46 +0000 (20:22 +0000)]
2004-08-24  Moritz Schulte  <moritz@g10code.com>

* gcrypt.texi (Miscellaneous): Document gcry_mpi_randomize.

15 years ago2004-08-24 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Tue, 24 Aug 2004 19:56:25 +0000 (19:56 +0000)]
2004-08-24  Moritz Schulte  <moritz@g10code.com>

* pkbench.c (context_init): Improve generation of test data.

15 years ago2004-08-23 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 23 Aug 2004 13:34:51 +0000 (13:34 +0000)]
2004-08-23  Moritz Schulte  <moritz@g10code.com>

* global.c: Do not include <assert.h>.
* sexp.c: Likewise.
* module.c: Likewise.
* misc.c: Likewise.

15 years ago2004-08-23 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 23 Aug 2004 13:33:15 +0000 (13:33 +0000)]
2004-08-23  Moritz Schulte  <moritz@g10code.com>

* ac.c: Do not include <assert.h>.
* rndegd.c: Likewise.
* sha1.c: Likewise.
* rndunix.c: Likewise.
* rndlinux.c: Likewise.
* rmd160.c: Likewise.
* md5.c: Likewise.
* md4.c: Likewise.
* cipher.c: Likewise.
* crc.c: Likewise.
* blowfish.c: Likewise.

15 years ago2004-08-23 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 23 Aug 2004 12:32:19 +0000 (12:32 +0000)]
2004-08-23  Moritz Schulte  <moritz@g10code.com>

* Makefile.am (TESTS): Added: pkbench.
* pkbench.c: New file.

15 years ago2004-08-23 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 23 Aug 2004 12:15:35 +0000 (12:15 +0000)]
2004-08-23  Moritz Schulte  <moritz@g10code.com>

* pubkey.c (dummy_generate, dummy_check_secret_key)
(dummy_encrypt, dummy_decrypt, dummy_sign, dummy_verify): Return
err code GPG_ERR_NOT_IMPLEMENTED instead of aborting through
log_bug().
(dummy_get_nbits): Return 0 instead of aborting though log_bug().

15 years ago2004-08-18 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sun, 22 Aug 2004 08:49:31 +0000 (08:49 +0000)]
2004-08-18  Moritz Schulte  <moritz@g10code.com>

* secmem.c (_gcry_secmem_init): Try to lock pool into core not
only when running with root privileges.

15 years ago(sexp_data_to_mpi): Changed the zero random byte
Werner Koch [Thu, 19 Aug 2004 10:18:00 +0000 (10:18 +0000)]
(sexp_data_to_mpi): Changed the zero random byte
substituting code to actually do clever things.  Thanks to
Matthias Urlichs for noting the implementation problem.

15 years agoImproved.
Moritz Schulte [Wed, 18 Aug 2004 13:28:29 +0000 (13:28 +0000)]
Improved.

15 years ago2004-08-18 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Wed, 18 Aug 2004 13:26:50 +0000 (13:26 +0000)]
2004-08-18  Moritz Schulte  <moritz@g10code.com>

* gcrypt.texi (Multi Threading): Document
GCRY_THREAD_OPTION_PTH_IMPL, GCRY_THREAD_OPTION_PTHREAD_IMPL.

15 years ago2004-08-10 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Tue, 10 Aug 2004 16:33:47 +0000 (16:33 +0000)]
2004-08-10  Moritz Schulte  <moritz@g10code.com>

* gcrypt.h: Include <sys/time.h>, thanks to Simon Josefsson.

15 years ago*** empty log message ***
Moritz Schulte [Mon, 9 Aug 2004 11:14:55 +0000 (11:14 +0000)]
*** empty log message ***

15 years ago2004-08-09 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 9 Aug 2004 10:41:31 +0000 (10:41 +0000)]
2004-08-09  Moritz Schulte  <moritz@g10code.com>

* THANKS: Updated.

15 years ago2004-08-09 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 9 Aug 2004 10:33:30 +0000 (10:33 +0000)]
2004-08-09  Moritz Schulte  <moritz@g10code.com>

* pubkey.c (gcry_pk_sign): Fixed memory leak; fix provided by
Modestas Vainius.

15 years ago(do_encrypt): Fix alignment problem. Bugs found by
Werner Koch [Fri, 16 Jul 2004 17:25:30 +0000 (17:25 +0000)]
(do_encrypt): Fix alignment problem.  Bugs found by
Matthias Urlichs.
(do_decrypt): Ditto.
(keySched, keySched2): Use 2 macros along with unions in the key
schedule context.

15 years ago2004-07-14 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Wed, 14 Jul 2004 16:48:17 +0000 (16:48 +0000)]
2004-07-14  Moritz Schulte  <moritz@g10code.com>

* rsa.c (_gcry_rsa_decrypt): Don't forget to free "a".  Thanks to
Nikos Mavroyanopoulos.

15 years ago2004-07-04 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sun, 4 Jul 2004 16:40:35 +0000 (16:40 +0000)]
2004-07-04  Moritz Schulte  <moritz@g10code.com>

* THANKS: Updated.

15 years ago2004-07-04 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sun, 4 Jul 2004 16:40:08 +0000 (16:40 +0000)]
2004-07-04  Moritz Schulte  <moritz@g10code.com>

* serpent.c: Use "u32_t" instead of "unsigned long", do not
declare S-Box variables as "register".  Fixes failure on
OpenBSD/sparc64, reported by Nikolay Sturm.

15 years ago* random.c (initialize): Factored out some code to ..
Werner Koch [Fri, 7 May 2004 13:52:11 +0000 (13:52 +0000)]
* random.c (initialize): Factored out some code to ..
(initialize_basics): .. new function.
(_gcry_random_initialize): Just call initialize_basics unless the
new arg FULL is set to TRUE.
(_gcry_fast_random_poll): Don't do anything unless the random
system has been really initialized.

* gcrypt.h: Added GCRYCTL_FAST_POLL.
(gcry_fast_random_poll): New.
* global.c (gcry_control) <INITIALIZATION_FINISHED>: Do only basic
random subsystem init.
(gcry_control) <FAST_POLL>: New.

15 years ago2004-05-07 Moritz Schulte <moritz@g10code.de>
Moritz Schulte [Thu, 6 May 2004 23:07:23 +0000 (23:07 +0000)]
2004-05-07  Moritz Schulte  <moritz@g10code.de>

* THANKS: Updated.

15 years ago2004-05-07 Moritz Schulte <moritz@g10code.de>
Moritz Schulte [Thu, 6 May 2004 23:05:17 +0000 (23:05 +0000)]
2004-05-07  Moritz Schulte  <moritz@g10code.de>

* gcrypt.texi: Merged several fixes reported by Umberto Salsi.

15 years ago2004-05-07 Moritz Schulte <moritz@g10code.de>
Moritz Schulte [Thu, 6 May 2004 23:04:31 +0000 (23:04 +0000)]
2004-05-07  Moritz Schulte  <moritz@g10code.de>

* ac.c (gcry_ac_open): Do not dereference NULL pointer.  Reported
by Umberto Salsi.

15 years ago2004-04-22 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 22 Apr 2004 18:24:45 +0000 (18:24 +0000)]
2004-04-22  Marcus Brinkmann  <marcus@g10code.de>

* libgcrypt.m4: Quote first argument to AC_DEFUN.

15 years ago2004-04-02 Thomas Schwinge <schwinge@nic-nac-project.de>
Marcus Brinkmann [Mon, 19 Apr 2004 14:05:38 +0000 (14:05 +0000)]
2004-04-02  Thomas Schwinge  <schwinge@nic-nac-project.de>

* autogen.sh: Added ACLOCAL_FLAGS.

15 years agoPrepared development branch (actually CVS HEAD)
Werner Koch [Thu, 15 Apr 2004 09:46:37 +0000 (09:46 +0000)]
Prepared development branch (actually CVS HEAD)

15 years agoFixed typo in Makefile.am V1-2-0 V1-2-1
Werner Koch [Thu, 15 Apr 2004 09:12:34 +0000 (09:12 +0000)]
Fixed typo in Makefile.am

15 years agoAdded Manifest to Makefile.am
Werner Koch [Thu, 15 Apr 2004 09:06:52 +0000 (09:06 +0000)]
Added Manifest to Makefile.am

15 years agoAdded missing files.
Werner Koch [Thu, 15 Apr 2004 09:05:13 +0000 (09:05 +0000)]
Added missing files.

15 years agoAbout to release 1.2
Werner Koch [Thu, 15 Apr 2004 09:00:22 +0000 (09:00 +0000)]
About to release 1.2

15 years ago* config.guess, config.sub, ltmain.sh: Updated to those from
Werner Koch [Tue, 6 Apr 2004 13:24:24 +0000 (13:24 +0000)]
* config.guess, config.sub, ltmain.sh: Updated to those from
libtools 1.5.4.

* libtool.m4: Updated from 1.5.4

15 years ago(_gcry_secmem_realloc): Fixed double unlock; bug
Werner Koch [Mon, 29 Mar 2004 12:41:45 +0000 (12:41 +0000)]
(_gcry_secmem_realloc): Fixed double unlock; bug
manifested itself due to the more rigorous checking in the changed
ath.h

15 years agopost-release version bumb
Werner Koch [Mon, 29 Mar 2004 09:09:37 +0000 (09:09 +0000)]
post-release version bumb

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.