libgcrypt.git
12 years agoUse extra counter to check random pool filling.
Werner Koch [Thu, 23 Aug 2007 07:29:14 +0000 (07:29 +0000)]
Use extra counter to check random pool filling.
Updated the documentation.
Typo and comment fixes.

12 years agoAdd new debug tool for S-expressions.
Werner Koch [Wed, 22 Aug 2007 17:43:39 +0000 (17:43 +0000)]
Add new debug tool for S-expressions.

12 years agoMade all library code LGPL.
Werner Koch [Wed, 22 Aug 2007 09:52:59 +0000 (09:52 +0000)]
Made all library code LGPL.

12 years agoChanged rndw32 to LGPL.
Werner Koch [Wed, 22 Aug 2007 09:11:06 +0000 (09:11 +0000)]
Changed rndw32 to LGPL.
Typo fixes.

12 years agoFixed symbol prefix detection.
Werner Koch [Thu, 26 Jul 2007 09:15:12 +0000 (09:15 +0000)]
Fixed symbol prefix detection.
Typo fixes.

12 years agoAdd an RSA benchmark (fix)
Werner Koch [Wed, 20 Jun 2007 18:07:52 +0000 (18:07 +0000)]
Add an RSA benchmark (fix)

12 years agoAdd an RSA benchmark.
Werner Koch [Wed, 20 Jun 2007 17:02:25 +0000 (17:02 +0000)]
Add an RSA benchmark.

12 years ago2007-06-15 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 15 Jun 2007 13:24:23 +0000 (13:24 +0000)]
2007-06-15  Marcus Brinkmann  <marcus@g10code.de>

* autogen.sh: Use = instead of == in test.

12 years agoPth fix for W32.
Werner Koch [Wed, 6 Jun 2007 17:01:56 +0000 (17:01 +0000)]
Pth fix for W32.

12 years agoCamellia is now LGPLed
Werner Koch [Thu, 31 May 2007 09:48:05 +0000 (09:48 +0000)]
Camellia is now LGPLed

12 years ago2007-05-19 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sat, 19 May 2007 21:31:51 +0000 (21:31 +0000)]
2007-05-19  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac: Fix test for optional UDIV and UDIV_QRNND MPI
modules.

12 years agosrc/
Marcus Brinkmann [Wed, 9 May 2007 22:20:26 +0000 (22:20 +0000)]
src/
2007-05-09  Marcus Brinkmann  <marcus@g10code.de>

* gcrypt.h.in (gcry_ac_io_t): Add name for anonymous union, and mark
all members as internal (actually: deprecated).

cipher/
2007-05-09  Marcus Brinkmann  <marcus@g10code.de>

* ac.c (_gcry_ac_io_init_va, _gcry_ac_io_write, _gcry_ac_io_read):
Adjust users of gcry_ac_io_t because union is not anonymous
anymore.

12 years ago2007-05-09 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 9 May 2007 18:13:31 +0000 (18:13 +0000)]
2007-05-09  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac (ac_cv_mpi_config_done): Unused variable removed.
(ac_cv_mpi_mod_list, MPI_MOD_LIST_LO, MPI_MOD_LIST_O): Removed.
(MPI_MOD_ASM_MPIH_ADD1, MPI_MOD_ASM_MPIH_SUB1,
MPI_MOD_ASM_MPIH_MUL1, MPI_MOD_ASM_MPIH_MUL2,
MPI_MOD_ASM_MPIH_MUL3, MPI_MOD_ASM_MPIH_LSHIFT,
MPI_MOD_ASM_MPIH_RSHIFT, MPI_MOD_ASM_MPIH_UDIV,
MPI_MOD_ASM_MPIH_UDIV_QRNND, MPI_MOD_C_MPIH_ADD1,
MPI_MOD_C_MPIH_SUB1, MPI_MOD_C_MPIH_MUL1, MPI_MOD_C_MPIH_MUL2,
MPI_MOD_C_MPIH_MUL3, MPI_MOD_C_MPIH_LSHIFT, MPI_MOD_C_MPIH_RSHIFT,
MPI_MOD_C_MPIH_UDIV, MPI_MOD_C_MPIH_UDIV_QRNND): New automake
variables.

mpi/
2007-05-09  Marcus Brinkmann  <marcus@g10code.de>

* config.links: Rename assembler file links by suffixing "-asm".
* Makefile.am (CCASCOMPILE, LTCCASCOMPILE, CLEANFILES,
libmpi_la_LIBADD, libmpi_la_DEPENDENCIES, SUFFIXES, .S.o, .S.obj,
.S.lo): Removed variables and targets.
(mpih_add1, mpih_sub1, mpih_mul1, mpih_mul2, mpih_mul3,
mpih_lshift, mpih_rshift, mpih_udiv, mpih_udiv_qrnnd,
nodist_libmpi_la_SOURCES): New variables.
(DISTCLEANFILES): Rename assembler file links by suffixing "-asm".
Add variants for C file links.

12 years agoPost release updates.
Werner Koch [Fri, 4 May 2007 11:01:17 +0000 (11:01 +0000)]
Post release updates.
Allow colons as delimiters for --enable-mpi-path.

12 years agoUpdated automake. libgcrypt-1.3.0
Werner Koch [Fri, 4 May 2007 10:46:12 +0000 (10:46 +0000)]
Updated automake.
Ready for a release.

12 years agoMinor fixes for W32
Werner Koch [Thu, 3 May 2007 20:32:42 +0000 (20:32 +0000)]
Minor fixes for W32

12 years agoDo not make Camellia a default cipher
Werner Koch [Wed, 2 May 2007 17:18:57 +0000 (17:18 +0000)]
Do not make Camellia a default cipher

12 years agoChanged amount of stack to burn
Werner Koch [Wed, 2 May 2007 10:18:46 +0000 (10:18 +0000)]
Changed amount of stack to burn

12 years agoMore info from GCRYCTL_PRINT_CONFIG.
Werner Koch [Wed, 2 May 2007 09:46:53 +0000 (09:46 +0000)]
More info from GCRYCTL_PRINT_CONFIG.
Put Camellia symbols into our namespace.

12 years agoNew files for Camellia.
David Shaw [Wed, 2 May 2007 06:28:23 +0000 (06:28 +0000)]
New files for Camellia.

12 years agoAdd Camellia support.
David Shaw [Wed, 2 May 2007 06:27:11 +0000 (06:27 +0000)]
Add Camellia support.

12 years agoUSE_cipher related fixed (#if instead of #ifdef) by David.
Werner Koch [Tue, 1 May 2007 12:01:47 +0000 (12:01 +0000)]
USE_cipher related fixed (#if instead of #ifdef) by David.

12 years agoDropped GCRYCTL_DUMP_CONFIG in favor of GCRYCTL_PRINT_CONFIG.
Werner Koch [Mon, 30 Apr 2007 17:00:21 +0000 (17:00 +0000)]
Dropped GCRYCTL_DUMP_CONFIG in favor of GCRYCTL_PRINT_CONFIG.

12 years agoAdd support for setting the EGD socket.
Werner Koch [Mon, 30 Apr 2007 15:37:37 +0000 (15:37 +0000)]
Add support for setting the EGD socket.

12 years ago./
Werner Koch [Mon, 30 Apr 2007 14:09:33 +0000 (14:09 +0000)]
./
* README.apichanges: Move to doc/.
* Makefile.am (EXTRA_DIST): Removed that file.
doc/
* HACKING: New.  Two items by Marcus.
* README.apichanges: Move from .. to here.
* Makefile.am (EXTRA_DIST): Add new files.
mpi/
* config.links: Create a file mod-source-info.h.
* Makefile.am (DISTCLEANFILES): Add that file.
* mpiutil.c (_gcry_mpi_get_hw_config): New.
src/
* global.c (gcry_control): New.

* gcrypt.h.in (GCRYCTL_DUMP_CONFIG): New.
tests/
* version.c: New.
* Makefile.am (TESTS): Add version.

12 years agocipher/
Marcus Brinkmann [Sun, 29 Apr 2007 23:49:56 +0000 (23:49 +0000)]
cipher/
2007-04-30  Marcus Brinkmann  <marcus@g10code.de>

        * ecc.c (ec2os): Fix relocation of short numbers.

        * ecc.c (generate_key): Do not allocate D, which will be allocated
        by GEN_K.  Remove G.  Fix test if g_x, g_y resp. q_x, q_y are
        requested.
        (_gcry_ecc_generate): Release unneeded members of SK.
        * pubkey.c (sexp_to_key): Release NAME.

tests/
2007-04-30  Marcus Brinkmann  <marcus@g10code.de>

        * benchmark.c (ecc_bench): Release KEY_SPEC.

12 years ago2007-04-28 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sun, 29 Apr 2007 01:32:10 +0000 (01:32 +0000)]
2007-04-28  Marcus Brinkmann  <marcus@g10code.de>

        * configure.ac: Allow to specify additional search directories
        with --enable-mpi-path.

mpi/
2007-04-28  Marcus Brinkmann  <marcus@g10code.de>

        * config.links: Add additional assembler search directories.

12 years agocipher/
Marcus Brinkmann [Sat, 28 Apr 2007 18:51:15 +0000 (18:51 +0000)]
cipher/
2007-04-28  Marcus Brinkmann  <marcus@g10code.de>

* ac.c (gcry_ac_mpi): Remove member NAME_PROVIDED.
(ac_data_mpi_copy, _gcry_ac_data_set, _gcry_ac_data_get_name)
(_gcry_ac_data_get_index, ac_data_construct): Adjust handling of
NAME accordingly.

tests/
2007-04-28  Marcus Brinkmann  <marcus@g10code.de>

* ac-data.c (check_run): Don't give redundant
GCRY_AC_FLAG_DEALLOC
in addition to GCRY_AC_FLAG_COPY.  Don't release LABEL1 or MPI0,
as those are donated to libgcrypt, but do release MPI0 and MPI2.

12 years agoSupport more curves.
Werner Koch [Fri, 20 Apr 2007 10:52:30 +0000 (10:52 +0000)]
Support more curves.

12 years agoEnhanced support for ECDSA.
Werner Koch [Wed, 18 Apr 2007 12:59:00 +0000 (12:59 +0000)]
Enhanced support for ECDSA.
Along with the latest libksba it is now possible for gpgsm to import
an ECC certificate.

12 years ago./
Werner Koch [Mon, 16 Apr 2007 15:09:30 +0000 (15:09 +0000)]
./
* configure.ac: Check for sysconf.
* acinclude.m4 (GNUPG_CHECK_MLOCK): Try to use sysconf to get the
page size and use getpagesize only then if available.

cipher/
* ecc.c (_gcry_ecc_generate): Renamed DUMMY to CURVE and use it.

src/
* secmem.c (init_pool): Use sysconf() if available to determine
page size.

12 years ago2007-04-13 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 13 Apr 2007 00:34:49 +0000 (00:34 +0000)]
2007-04-13  Marcus Brinkmann  <marcus@g10code.de>

* ac.c (ac_data_construct): Cast const away to suppress compiler
warning.

12 years ago2007-04-13 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 13 Apr 2007 00:33:37 +0000 (00:33 +0000)]
2007-04-13  Marcus Brinkmann  <marcus@g10code.de>

* ecc.c (ecc_generate): Avoid compiler warning for unused argument
DUMMY.
(ecc_verify): Avoid compiler warning for unused arguments CMP and
OPAQUEV.

12 years ago2007-04-12 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 13 Apr 2007 00:29:02 +0000 (00:29 +0000)]
2007-04-12  Marcus Brinkmann  <marcus@g10code.de>

* ac-schemes.c (scheme_spec): Revert last change.

12 years ago2007-04-12 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 12 Apr 2007 00:13:27 +0000 (00:13 +0000)]
2007-04-12  Marcus Brinkmann  <marcus@g10code.de>

* ac-schemes.c (scheme_spec): Remove const qualifier from member M.
(es_check): Remove const qualifier from C and M2.

12 years ago2007-04-09 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Mon, 9 Apr 2007 16:00:03 +0000 (16:00 +0000)]
2007-04-09  Marcus Brinkmann  <marcus@g10code.de>

* gcrypt.texi: Fix some typos.

12 years agoRewrote the ECDSA implementation.
Werner Koch [Wed, 28 Mar 2007 10:47:25 +0000 (10:47 +0000)]
Rewrote the ECDSA implementation.

12 years agoDid some performance experiments and added code for Barrett reduction.
Werner Koch [Fri, 23 Mar 2007 19:55:14 +0000 (19:55 +0000)]
Did some performance experiments and added code for Barrett reduction.

12 years agoSome tweaks to ecc.c and a new benchmark.
Werner Koch [Thu, 22 Mar 2007 17:07:34 +0000 (17:07 +0000)]
Some tweaks to ecc.c and a new benchmark.

12 years agoExperimental support for ECDSA.
Werner Koch [Thu, 22 Mar 2007 13:55:05 +0000 (13:55 +0000)]
Experimental support for ECDSA.
This is not ready but the key generation and the self-test works.

12 years agoNew code from Sergi Blanch i Torne.
Werner Koch [Wed, 21 Mar 2007 19:55:39 +0000 (19:55 +0000)]
New code from Sergi Blanch i Torne.
Need some mangling for use with Libgcrypt, as this
code is designed to work with GnuPG 1.4.6.

12 years agoFixed typo introduced back in October
Werner Koch [Fri, 16 Mar 2007 08:29:42 +0000 (08:29 +0000)]
Fixed typo introduced back in October

12 years agoRemoved global is_initalization flag.
Werner Koch [Wed, 14 Mar 2007 16:36:39 +0000 (16:36 +0000)]
Removed global is_initalization flag.

12 years agoCode cleanups.
Werner Koch [Wed, 14 Mar 2007 16:05:58 +0000 (16:05 +0000)]
Code cleanups.
More documentation.

12 years agoSome RNG cleanups.
Werner Koch [Tue, 13 Mar 2007 16:48:30 +0000 (16:48 +0000)]
Some RNG cleanups.

12 years agoAdd support for ADM64. From Werner Dittmann.
Werner Koch [Tue, 13 Mar 2007 11:39:11 +0000 (11:39 +0000)]
Add support for ADM64.  From Werner Dittmann.
Cosmetic changes.

12 years agoPorted last changes from 1.2.
Werner Koch [Fri, 23 Feb 2007 17:47:56 +0000 (17:47 +0000)]
Ported last changes from 1.2.
Updated some tests.
Support for passphrase generated Elgamal keys.

12 years agoFixed bug#596 adn minor cleanups
Werner Koch [Thu, 22 Feb 2007 18:25:27 +0000 (18:25 +0000)]
Fixed bug#596 adn minor cleanups

12 years agoTweaks for W32
Werner Koch [Thu, 22 Feb 2007 16:37:12 +0000 (16:37 +0000)]
Tweaks for W32

12 years agoA lot of cleanups as well as minor API changes.
Werner Koch [Wed, 21 Feb 2007 13:26:38 +0000 (13:26 +0000)]
A lot of cleanups as well as minor API changes.
Ported some changes from 1.2 to here.

12 years agoNew configure option --disable-endian-check.
Werner Koch [Tue, 20 Feb 2007 11:28:12 +0000 (11:28 +0000)]
New configure option --disable-endian-check.

12 years ago* gcrypt.h.in: Include stdlib.h for the sake fo the trheading
Werner Koch [Mon, 12 Feb 2007 14:03:48 +0000 (14:03 +0000)]
* gcrypt.h.in: Include stdlib.h for the sake fo the trheading
  macros.  Suggested by Andreas Metzler.

* secmem.c (ptr_into_pool_p): New.
  (_gcry_private_is_secure): Implement in terms of new function.
  (BLOCK_VALID): Removed. Replaced all users by new function.

12 years agoAdded OIDs from pkcs#1
Werner Koch [Tue, 30 Jan 2007 20:12:02 +0000 (20:12 +0000)]
Added OIDs from pkcs#1

12 years ago* rndlinux.c (set_cloexec_flag): New.
Werner Koch [Mon, 18 Dec 2006 19:02:48 +0000 (19:02 +0000)]
* rndlinux.c (set_cloexec_flag): New.
(open_device): Set close-on-exit flags.  Suggested by Max
Kellermann.  Fixes Debian#403613.

Cleaned up last Makefile changes.

13 years ago2006-11-05 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sun, 5 Nov 2006 20:52:09 +0000 (20:52 +0000)]
2006-11-05  Moritz Schulte  <moritz@g10code.com>

* Makefile.am (AM_CFLAGS): Added -I$(top_builddir)/src so that the
new gcrypt.h is used, not the one installed in the system.

2006-11-05  Moritz Schulte  <moritz@g10code.com>

* Makefile.am (AM_CFLAGS): Added -I$(top_builddir)/src so that the
new gcrypt.h is used, not the one installed in the system.

2006-11-05  Moritz Schulte  <moritz@g10code.com>

* Makefile.am (AM_CFLAGS): Added -I$(top_builddir)/src so that the
new gcrypt.h is used, not the one installed in the system.

13 years agoUndo last change, which was non-intentionally commited
Moritz Schulte [Sun, 5 Nov 2006 18:08:44 +0000 (18:08 +0000)]
Undo last change, which was non-intentionally commited

13 years ago2006-11-05 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sun, 5 Nov 2006 17:56:41 +0000 (17:56 +0000)]
2006-11-05  Moritz Schulte  <moritz@g10code.com>

* gcrypt.texi (General public-key related Functions): Typo.

13 years agoSee ChangeLog. There are still problems in ac.c.
Werner Koch [Wed, 25 Oct 2006 18:28:49 +0000 (18:28 +0000)]
See ChangeLog.  There are still problems in ac.c.

13 years agoApplied two simple patches.
Werner Koch [Mon, 23 Oct 2006 09:14:16 +0000 (09:14 +0000)]
Applied two simple patches.

13 years agoLet secmem init return an error if the memeory could not be locked.
Werner Koch [Thu, 19 Oct 2006 10:34:46 +0000 (10:34 +0000)]
Let secmem init return an error if the memeory could not be locked.

13 years agoVarious minor changes.
Werner Koch [Tue, 17 Oct 2006 17:44:49 +0000 (17:44 +0000)]
Various minor changes.
Support for DSA2.

13 years agoFix small typos that I should have fixed before committing the last
Marcus Brinkmann [Thu, 12 Oct 2006 21:22:35 +0000 (21:22 +0000)]
Fix small typos that I should have fixed before committing the last
change.

13 years ago2006-10-12 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 12 Oct 2006 21:08:41 +0000 (21:08 +0000)]
2006-10-12  Marcus Brinkmann  <marcus@g10code.de>

        * configure.ac (FALLBACK_SOCKLEN_T): Third time is a charm.
        Define gcry_socklen_t, to avoid conflicts with socklen_t
        definitions by autoconf.

src/
2006-10-12  Marcus Brinkmann  <marcus@g10code.de>

        * gcrypt.h.in: Replace socklen_t with gcry_socklen_t.

13 years ago2006-10-11 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 11 Oct 2006 12:25:50 +0000 (12:25 +0000)]
2006-10-11  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac (FALLBACK_SOCKLEN_T): Rewrite in terms of
socklen.m4.

m4/
2006-10-11  Marcus Brinkmann  <marcus@g10code.de>

* fallback.m4: Removed again.

13 years ago2006-10-11 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 11 Oct 2006 12:01:17 +0000 (12:01 +0000)]
2006-10-11  Marcus Brinkmann  <marcus@g10code.de>

* acinclude.m4 (GNUPG_FIX_HDR_VERSION): Removed.
* configure.ac: Do not call GNUPG_FIX_HDR_VERSION.

src/
2006-10-11  Marcus Brinkmann  <marcus@g10code.de>

* gcrypt.h.in: Replace version by @VERSION@.

13 years ago2006-10-10 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 10 Oct 2006 18:27:28 +0000 (18:27 +0000)]
2006-10-10  Marcus Brinkmann  <marcus@g10code.de>

        * configure.ac: Invoke AC_CHECK_SOCKLEN_TYPE.
        (AC_CONFIG_FILES): Add src/gcrypt.h.
        (AC_CONFIG_SRCDIR): Change to src/libgcrypt.vers.

m4/
2006-10-10  Marcus Brinkmann  <marcus@g10code.de>

        * fallback.m4: New file from Pth.

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

        * gcrypt.h: Add fallback type for socklen_t.  Move to ...
        * gcrypt.h.in: ... this file.
        * Makefile.am (EXTRA_DIST): Add gcrypt.h.in.

13 years agofix gcc4 warning (David) and other collected fixes.
Werner Koch [Thu, 5 Oct 2006 08:01:11 +0000 (08:01 +0000)]
fix gcc4 warning (David) and other collected fixes.

13 years agoAdded SEED cipher
Werner Koch [Tue, 29 Aug 2006 10:21:09 +0000 (10:21 +0000)]
Added SEED cipher

13 years agoUpdated standard files
Werner Koch [Mon, 28 Aug 2006 10:52:37 +0000 (10:52 +0000)]
Updated standard files

13 years agoFixed a problem with shifting MPIs by 0.
Werner Koch [Mon, 28 Aug 2006 09:40:39 +0000 (09:40 +0000)]
Fixed a problem with shifting MPIs by 0.
Add a way to check whether the RNG is in fake mode.

13 years agoFixed gcry_mpi_set_bit and enhanced mpi_rshift.
Werner Koch [Fri, 4 Aug 2006 10:18:14 +0000 (10:18 +0000)]
Fixed gcry_mpi_set_bit and enhanced mpi_rshift.
Cleaned up andom-daemon initialization.

13 years ago2006-07-29 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sat, 29 Jul 2006 00:11:31 +0000 (00:11 +0000)]
2006-07-29  Marcus Brinkmann  <marcus@g10code.de>

* secmem.c (init_pool): Close FD after establishing the mapping.

13 years agoCollected changes - see ChangeLogs
Werner Koch [Wed, 26 Jul 2006 11:10:45 +0000 (11:10 +0000)]
Collected changes - see ChangeLogs

13 years agoFixup email address by contributor.
Marcus Brinkmann [Wed, 12 Jul 2006 20:59:54 +0000 (20:59 +0000)]
Fixup email address by contributor.

13 years ago2006-07-12 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 12 Jul 2006 19:36:27 +0000 (19:36 +0000)]
2006-07-12  Marcus Brinkmann  <marcus@g10code.de>

* ath.c (ath_mutex_destroy): Microoptimize destruction of unused
statitically initialized mutexes.  Suggested by Victor Stinner
<haypo@inl.fr>.

13 years ago2006-07-12 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 12 Jul 2006 19:26:52 +0000 (19:26 +0000)]
2006-07-12  Marcus Brinkmann  <marcus@g10code.de>

* gcrypt.h (GCRY_THREAD_OPTION_PTHREAD_IMPL,
(GCRY_THREAD_OPTION_PTH_IMPL): Add missing initializers to
suppress gcc warning.
Submitted by Victor Stinner <haypo@inl.fr>.

13 years ago2006-07-04 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 4 Jul 2006 13:08:57 +0000 (13:08 +0000)]
2006-07-04  Marcus Brinkmann  <marcus@g10code.de>

        * ath.c: Avoid warning about double defined type byte and other
        hacks to let it build for W32 (backported from
LIBGCRYPT-1-2-BRANCH).
        * ath.h, gcrypt.h, tests/benchmark.c, src/types.h: Likewise.

13 years ago2006-07-04 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 4 Jul 2006 13:06:04 +0000 (13:06 +0000)]
2006-07-04  Marcus Brinkmann  <marcus@g10code.de>

* ath.c: Avoid warning about double defined type byte and other
hacks to let it build for W32 (backported from LIBGCRYPT-1-2-BRANCH).
* ath.h, gcrypt.h, tests/benchmark.c, src/types.h: Likewise.

13 years ago2006-07-04 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 4 Jul 2006 12:54:17 +0000 (12:54 +0000)]
2006-07-04  Marcus Brinkmann  <marcus@g10code.de>

* ath.c: Avoid warning about double defined type byte and other
hacks to let it build for W32 (backported from LIBGCRYPT-1-2-BRANCH).

13 years ago2006-07-04 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 4 Jul 2006 12:32:21 +0000 (12:32 +0000)]
2006-07-04  Marcus Brinkmann  <marcus@g10code.de>

* gcrypt.h: Revert last change, and instead:
[_WIN32 || __WIN32__]: Do not include <sys/socket.h>, but
<winsock2.h> and <ws2tcpip.h>.
Suggested by Simon Josefsson <jas@extundo.com>.

13 years ago2006-07-04 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 4 Jul 2006 11:56:28 +0000 (11:56 +0000)]
2006-07-04  Marcus Brinkmann  <marcus@g10code.de>

* sha512.c: Fix typo in copyright notice.

13 years ago2006-07-04 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 4 Jul 2006 11:48:49 +0000 (11:48 +0000)]
2006-07-04  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac: Call AC_LIBTOO_WIN32_DLL and AC_LIBTOOL_RC.

13 years ago2006-07-04 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 4 Jul 2006 11:45:43 +0000 (11:45 +0000)]
2006-07-04  Marcus Brinkmann  <marcus@g10code.de>

* Makefile.am (install-data-local, uninstall-local, %.lo,
(install-def-file, uninstall-def-file): New targets.
(LTRCCOMPILE, gcrypt_res, gcrypt_res_ldflag, no_undefined,
(export_symbols, gcrypt_deps): New variables.
* versioninfo.rc.in: New file.
* libgcrypt.def: New file from ../w32-dll/libgcrypt.def.

13 years ago2006-07-04 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 4 Jul 2006 11:44:01 +0000 (11:44 +0000)]
2006-07-04  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac: Call gl_TYPE_SOCKLEN_T instead of the other
socklen_t checks.

m4/
2006-07-04  Marcus Brinkmann  <marcus@g10code.de>

* sys_socket_h.m4, socklen.m4, onceonly.m4: New files from gnulib.

src/
2006-07-04  Marcus Brinkmann  <marcus@g10code.de>

* gcrypt.h [!HAVE_SYS_SOCKET_H]: Do not include sys/socket.h, but
the appropriate windows socket header.

13 years agoChanged xmalloc style calls to proper malloc calls with error returns at
Werner Koch [Wed, 21 Jun 2006 09:19:13 +0000 (09:19 +0000)]
Changed xmalloc style calls to proper malloc calls with error returns at
many (but not all) places.

13 years ago2006-06-08 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 8 Jun 2006 11:49:38 +0000 (11:49 +0000)]
2006-06-08  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac (PTH_LIBS): Add --all to pth-config invocation.

13 years agoChanged value of GCRY_MD_SHA224 from 306 to 11.
Werner Koch [Fri, 28 Apr 2006 13:38:40 +0000 (13:38 +0000)]
Changed value of GCRY_MD_SHA224 from 306 to 11.

13 years agocipher/ChangeLog:
Moritz Schulte [Sat, 22 Apr 2006 16:09:23 +0000 (16:09 +0000)]
cipher/ChangeLog:

2006-04-22  Moritz Schulte  <moritz@g10code.com>

* random-daemon.c (_gcry_daemon_initialize_basics): New argument:
SOCKETNAME.  Passing on to connect_to_socket() if non-NULL.
(connect_to_socket, writen, readn, call_daemon): New functions.
(_gcry_daemon_randomize, _gcry_daemon_get_random_bytes)
(_gcry_daemon_create_nonce): Call call_daemon().
(RANDOM_DAEMON_SOCKET): New symbol.
(daemon_socket): New static variable.

* random.h (_gcry_daemon_initialize_basics): New parameter:
SOCKETNAME.
(_gcry_set_random_daemon_socket): New declaration.

* random.c (initialize_basics): Pass DAEMON_SOCKET_NAME to
_gcry_daemon_initialize_basics.
(_gcry_set_random_daemon_socket): New function, setting
DAEMON_SOCKET_NAME.

src/ChangeLog:

2006-04-22  Moritz Schulte  <moritz@g10code.com>

* gcrypt.h (enum gcry_ctl_cmds): New commands:
GCRYCTL_SET_RANDOM_DAEMON_SOCKET, GCRYCTL_USE_RANDOM_DAEMON.  *
global.c (gcry_control): Handle new commands, calling
_gcry_set_random_daemon_socket() and _gcry_use_random_daemon().

13 years agosrc/ChangeLog:
Moritz Schulte [Sat, 1 Apr 2006 13:20:04 +0000 (13:20 +0000)]
src/ChangeLog:

2006-04-01  Moritz Schulte  <moritz@g10code.com>

* gcrypt.h (gcry_ac_eme_pkcs_v1_5): Removed members: key, handle;
added member: key_size.

* secmem.c (MB_FLAG_ACTIVE): write braces around MB_FLAG_ACTIVE
definition.

cipher/ChangeLog:

2006-04-01  Moritz Schulte  <moritz@g10code.com>

* ac.c (eme_pkcs_v1_5_encode): Use KEY_SIZE directly, no need to
call gcry_ac_key_get_nbits.
(eme_pkcs_v1_5_decode): Likewise.
(ac_es_dencode_prepare_pkcs_v1_5): Fill options_em structure with
key_size.
(_gcry_ac_data_dump, gcry_ac_data_dump): New functions.
(_gcry_ac_data_to_sexp, _gcry_ac_data_from_sexp): More or less
rewritten; changed S-Expression format so that it matches the one
used in pubkey.c.

13 years agoMade ist compile - not it won't work yet.
Werner Koch [Fri, 17 Mar 2006 16:32:26 +0000 (16:32 +0000)]
Made ist compile - not it won't work yet.

13 years agoMore changes.
Werner Koch [Fri, 17 Mar 2006 16:24:27 +0000 (16:24 +0000)]
More changes.

13 years agoWrote random daemon and client.
Werner Koch [Wed, 15 Mar 2006 11:46:50 +0000 (11:46 +0000)]
Wrote random daemon and client.

13 years agoAdd a way to manually test the seed file locking
Werner Koch [Tue, 14 Mar 2006 13:26:55 +0000 (13:26 +0000)]
Add a way to manually test the seed file locking

13 years agoUse quick key generation.
Werner Koch [Tue, 14 Mar 2006 13:13:11 +0000 (13:13 +0000)]
Use quick key generation.
Cleaned up output; i.e. take care of --verbose.

13 years agoFixed hmac for larger blocksizes algorithms
Werner Koch [Mon, 13 Mar 2006 08:57:47 +0000 (08:57 +0000)]
Fixed hmac for larger blocksizes algorithms

13 years agoApplied pacthes from Brad Hards.
Werner Koch [Fri, 10 Mar 2006 10:23:52 +0000 (10:23 +0000)]
Applied pacthes from Brad Hards.
Note, that the HMAC tests for SHA-384 and SHA-512 are failing.

13 years agoApplied OFB mode patch by Brad Harris
Werner Koch [Tue, 7 Mar 2006 19:26:21 +0000 (19:26 +0000)]
Applied OFB mode patch by Brad Harris

13 years ago2006-01-08 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sun, 8 Jan 2006 02:10:46 +0000 (02:10 +0000)]
2006-01-08  Moritz Schulte  <moritz@g10code.com>

* gcrypt.texi: Added documentation for more gcry_control commands.

* gcrypt.texi: Fixed several typos; thanks to Tommi Vainikainen.

2005-12-16  Moritz Schulte  <moritz@g10code.com>

* gcrypt.texi (MPI formats): Fix return types of functions:
gcry_mpi_scan, gcry_mpi_print, gcry_mpi_aprint.

13 years agoAssorted changeds
Werner Koch [Thu, 8 Dec 2005 15:34:16 +0000 (15:34 +0000)]
Assorted changeds

13 years ago2005-11-26 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sat, 26 Nov 2005 15:58:08 +0000 (15:58 +0000)]
2005-11-26  Moritz Schulte  <moritz@g10code.com>

* gcrypt.texi: New chapter: Prime numbers.