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

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.

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

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

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

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

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

14 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

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

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

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.