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

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

12 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

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

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

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

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

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

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

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

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

12 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@.

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

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

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

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

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

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

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

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

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

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

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

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

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

12 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).

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

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

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

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

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

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

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

* ac-data.c: Added way more test cases.

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

* gcrypt.texi (MPI formats): Document that for gcry_mpi_scan and
in the case of GCRYMPI_FMT_HEX, BUFLEN must be zero.

13 years ago2005-11-02 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Wed, 2 Nov 2005 16:54:12 +0000 (16:54 +0000)]
2005-11-02  Moritz Schulte  <moritz@g10code.com>

* NEWS: Documented minor API changes.

13 years ago(no commit message)
Moritz Schulte [Wed, 2 Nov 2005 16:51:30 +0000 (16:51 +0000)]

13 years agosrc/ChangeLog
Moritz Schulte [Wed, 2 Nov 2005 16:41:33 +0000 (16:41 +0000)]
src/ChangeLog
src/gcrypt.h
TODO
cipher/pubkey.c
cipher/cipher.c
cipher/ChangeLog

13 years agoChangeLog:
Moritz Schulte [Tue, 1 Nov 2005 11:21:54 +0000 (11:21 +0000)]
ChangeLog:

2005-11-01  Moritz Schulte  <moritz@g10code.com>

* pubkey.c (gcry_pk_algo_info): Don't forget to break after switch
case.

13 years agoChangeLog:
Moritz Schulte [Mon, 31 Oct 2005 21:36:01 +0000 (21:36 +0000)]
ChangeLog:

2005-10-31  Moritz Schulte  <moritz@g10code.com>

* gcrypt.texi: Added more gcry_control related descriptions.

13 years agosrc/ChangeLog:
Moritz Schulte [Mon, 31 Oct 2005 21:33:46 +0000 (21:33 +0000)]
src/ChangeLog:

2005-10-31  Moritz Schulte  <moritz@g10code.com>

* global.c: Added documentation.

13 years agodoc/ChangeLog:
Moritz Schulte [Sun, 16 Oct 2005 12:12:40 +0000 (12:12 +0000)]
doc/ChangeLog:

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

* gcrypt.texi (Controlling the library): Start documenting the
existing control commands.

13 years ago2005-10-16 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sun, 16 Oct 2005 09:02:41 +0000 (09:02 +0000)]
2005-10-16  Moritz Schulte  <moritz@g10code.com>

* global.c (global_init): Use gcry_error_t instead of
gcry_err_code_t; use goto instead of if constructs.

13 years ago2005-10-16 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sun, 16 Oct 2005 08:46:06 +0000 (08:46 +0000)]
2005-10-16  Moritz Schulte  <moritz@g10code.com>

* stdmem.c: Inserted description of the layered memory management
in Libgcrypt.

13 years ago2005-10-16 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sun, 16 Oct 2005 08:45:41 +0000 (08:45 +0000)]
2005-10-16  Moritz Schulte  <moritz@g10code.com>

* g10lib.h: Removed GCC_ATTR_PURE macro definitions, since
gcrypt.h does already contain such a macro named
_GCRY_GCC_ATTR_PURE, which we can use here as well.

Likewise for GCC_ATTR_MALLOC and _GCRY_GCC_ATTR_MALLOC.

* stdmem.h: Use _GCRY_GCC_ATTR_MALLOC instead of GCC_ATTR_MALLOC.
* secmem.h: Likewise.

13 years agosrc/ChangeLog:
Moritz Schulte [Sun, 16 Oct 2005 08:12:19 +0000 (08:12 +0000)]
src/ChangeLog:

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

* g10lib.h: Removed G10_I18N_H related check; it seems to be a
GnuPG relict (Libgcrypt does not define this symbol anywhere).
(FLAG_MODULE_DISABLED): Don't forget parantheses around shifted
value.

13 years ago2005-10-09 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sun, 9 Oct 2005 13:32:35 +0000 (13:32 +0000)]
2005-10-09  Moritz Schulte  <moritz@g10code.com>

* global.c (gcry_control): Call global_init() after passing thread
cbs to ath.  global_init() MUST to be called AFTER passing the cbs
to ath and BEFORE calling library functions, which make use of
ath.  This change combines cbs installing with ath initialization
and thus removes the need to call other library initialization
functions inbetween like e.g. gcry_check_version().

13 years agompi/ChangeLog:
Moritz Schulte [Sun, 9 Oct 2005 12:29:17 +0000 (12:29 +0000)]
mpi/ChangeLog:

2005-10-09  Moritz Schulte  <moritz@g10code.com>

* mpi-cmp.c (gcry_mpi_cmp_ui): Rewritten; correctly handle case of
zero limbs in U.

13 years ago(no commit message)
Moritz Schulte [Sat, 1 Oct 2005 12:35:17 +0000 (12:35 +0000)]

13 years ago2005-10-01 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sat, 1 Oct 2005 12:34:34 +0000 (12:34 +0000)]
2005-10-01  Moritz Schulte  <moritz@g10code.com>

* ath.c: Assign copyright to FSF.
* ath.h: Likewise.

13 years ago2005-09-15 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Thu, 15 Sep 2005 17:51:14 +0000 (17:51 +0000)]
2005-09-15  Moritz Schulte  <moritz@g10code.com>

* Makefile.am (EXTRA_DIST): Depend on README.SVN, not on README.CVS.

13 years ago2005-09-15 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Thu, 15 Sep 2005 16:24:48 +0000 (16:24 +0000)]
2005-09-15  Moritz Schulte  <moritz@g10code.com>

* Makefile.am (TESTS): Added keygrip.
* keygrip.c: New.

13 years agoMade gcry_prime_check more robust (and slower).
Werner Koch [Mon, 22 Aug 2005 09:30:25 +0000 (09:30 +0000)]
Made gcry_prime_check more robust (and slower).

13 years agoadded remaining 2 tests.
Werner Koch [Fri, 19 Aug 2005 07:58:27 +0000 (07:58 +0000)]
added remaining 2 tests.

13 years agoAdded hmac test
Werner Koch [Thu, 18 Aug 2005 16:05:22 +0000 (16:05 +0000)]
Added hmac test

13 years agoRenamed readme to match the software used
Werner Koch [Fri, 29 Jul 2005 14:06:40 +0000 (14:06 +0000)]
Renamed readme to match the software used

13 years ago2005-06-25 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sat, 25 Jun 2005 20:05:35 +0000 (20:05 +0000)]
2005-06-25  Moritz Schulte  <moritz@g10code.com>

* configure.ac: Removed src/libgcrypt.pc from AC_CONFIG_FILES.

13 years ago2005-06-25 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sat, 25 Jun 2005 20:04:17 +0000 (20:04 +0000)]
2005-06-25  Moritz Schulte  <moritz@g10code.com>

* Makefile.am (pkgconfigdir, pkgconfig_DATA): Removed variables.
* libgcrypt.pc.in: Removed file - we do not want to support a
second, foreign configuration system.

14 years ago2005-06-17 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Fri, 17 Jun 2005 12:59:03 +0000 (12:59 +0000)]
2005-06-17  Moritz Schulte  <moritz@g10code.com>

* global.c (gcry_xstrdup): Removed superfluous strcpy call.

14 years agoMove detection of basic stuff to the top. For
Werner Koch [Fri, 10 Jun 2005 15:13:00 +0000 (15:13 +0000)]
Move detection of basic stuff to the top.  For
example we need to know whether gcc is used before testing for it.
Reported by Ralf Fassel.

14 years ago2005-04-27 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Wed, 27 Apr 2005 19:29:24 +0000 (19:29 +0000)]
2005-04-27  Moritz Schulte  <moritz@g10code.com>

* mpiutil.c (gcry_mpi_randomize): Store random data in secure
memory if the given MPI is secure - not the other way around (argl).

14 years agoChangeLog:
Moritz Schulte [Fri, 22 Apr 2005 22:39:44 +0000 (22:39 +0000)]
ChangeLog:

2005-04-23  Moritz Schulte  <moritz@g10code.com>

* acinclude.m4 (TYPE_SOCKLEN_T): New type definition test;
provided by Albert Chin.
* configure.ac: Don't use $(CMD) as it's not portable; use `CMD` nstead.
Simpler -lnsl/-lsocket test.
Use TYPE_SOCKLEN_T test.
Don't forget to set `random_modules' correctly.

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

* configure.ac: Added support for pkgconfig; provided by Albert
Chin.

cipher/ChangeLog:

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

* ac.c (_gcry_ac_io_write, _gcry_ac_io_read): Initialize err to
make the compiler happy.
Always use errno, now that gcry_malloc() is guaranteed to set
errno on failure.
(_gcry_ac_data_to_sexp): Don't forget to goto out after error in
loop.
(_gcry_ac_data_to_sexp): Remove unused variable: mpi_list;
(_gcry_ac_data_to_sexp): Always deallocate sexp_buffer.
(_gcry_ac_data_from_sexp): Don't forget to initialize data_set_new.
(_gcry_ac_data_from_sexp): Handle special case, which is
necessary, since gcry_sexp_nth() does not distinguish between
"element does not exist" and "element is the empty list".
(_gcry_ac_io_init_va): Use assert to make sure that mode and type
are correct.
Use gcry_error_t types where gcry_err_code_t types have been used
before.

mpi/ChangeLog:

2005-04-23  Moritz Schulte  <moritz@g10code.com>

* Makefile.am: Don't assume the compiler will pre-process the .S
files. Some compilers, like those from HP and IBM, don't do
this. So, we use the same solution gnupg-1.4.0 does. Preprocess
first and then compile.

* hppa1.1/mpih-mul3.S: Add "level 1.1" directive to disable
warning about using PA-RISC1.1 opcodes.
* hppa1.1/mpih-mul2.S: Likewise.
* hppa1.1/mpih-mul1.S: Likewise.
* hppa1.1/udiv-qrnnd.S: Likewise.

src/ChangeLog:

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

* Makefile.am (pkgconfigdir, pkgconfig_DATA): New; support for
pkgconfig provided by Albert Chin.
* libgcrypt.pc.in (Cflags): New file.

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

* g10lib.h (_gcry_ac_init): Declare.
* global.c (global_init): Call _gcry_ac_init; don't forget to set
err.

tests/ChangeLog:

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

* tsexp.c: Include <config.h> in case HAVE_CONFIG_H is defined;
thanks to Albert Chin.
* testapi.c: Likewise.
* register.c: Likewise.
* pubkey.c: Likewise.
* prime.c: Likewise.
* pkbench.c: Likewise.
* keygen.c: Likewise.
* benchmark.c: Likewise.
* basic.c: Likewise.
* ac-schemes.c: Likewise.
* ac-data.c: Likewise.
* ac.c: Likewise.

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

* ac-data.c (check_run): Include new test.

14 years agoadded new author with CA
Werner Koch [Fri, 22 Apr 2005 12:33:23 +0000 (12:33 +0000)]
added new author with CA

14 years ago(whitespacep): New.
Werner Koch [Thu, 14 Apr 2005 17:50:16 +0000 (17:50 +0000)]
(whitespacep): New.
(sexp_sscan): Replaced isdigit and isspace by whitespacep and
digitp.

14 years ago2005-04-12 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Tue, 12 Apr 2005 20:19:51 +0000 (20:19 +0000)]
2005-04-12  Moritz Schulte  <moritz@g10code.com>

* ac.c (_gcry_ac_io_write, _gcry_ac_io_read): Initialize err to
make the compiler happy.
Always use errno, now that gcry_malloc() is guaranteed to set
errno on failure.
(_gcry_ac_data_to_sexp): Don't forget to goto out after error in
loop.
(_gcry_ac_data_to_sexp): Remove unused variable: mpi_list;
(_gcry_ac_data_to_sexp): Always deallocate sexp_buffer.
(_gcry_ac_data_from_sexp): Don't forget to initialize data_set_new.
(_gcry_ac_data_from_sexp): Handle special case, which is
necessary, since gcry_sexp_nth() does not distinguish between
"element does not exist" and "element is the empty list".
(_gcry_ac_io_init_va): Use assert to make sure that mode and type
are correct.
Use gcry_error_t types where gcry_err_code_t types have been used
before.

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

* configure.ac: Integrate Whirlpool.

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

* gcrypt.texi (Available hash algorithms): Add entry for Whirlpool.

2005-03-30  Moritz Schulte  <moritz@g10code.com>

* gcrypt.texi (Working with IO objects): Document ac io objects;
adjust ac scheme functions, which do now use io objects.

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.