libgcrypt.git
16 years ago* basic.c (check_aes128_cbc_cts_cipher): New function.
Werner Koch [Sun, 10 Nov 2002 18:01:50 +0000 (18:01 +0000)]
* basic.c (check_aes128_cbc_cts_cipher): New function.
(check_one_cipher): Add flags parameter.
(check_ciphers): Support flags parameter.
(main): Check CTS.

17 years ago* arcfour.c (do_encrypt_stream): Don't use increment op when
Werner Koch [Mon, 14 Oct 2002 18:07:00 +0000 (18:07 +0000)]
* arcfour.c (do_encrypt_stream): Don't use increment op when
assigning to the same variable.

17 years ago2002-10-10 Timo Schulz <ts@winpt.org>
Timo Schulz [Thu, 10 Oct 2002 15:33:30 +0000 (15:33 +0000)]
2002-10-10  Timo Schulz  <ts@winpt.org>

        * pubkey.c (gcry_pk_genkey): Check boundaries.

17 years ago2002-10-10 Timo Schulz <ts@winpt.org>
Timo Schulz [Thu, 10 Oct 2002 15:19:32 +0000 (15:19 +0000)]
2002-10-10  Timo Schulz  <ts@winpt.org>

        * md.c (gcry_md_open): Check that algo is available and only
        valid flags values are used.
        (gcry_md_get_algo): Add error handling.

17 years ago* mpi-mul.c (gcry_mpi_mul_2exp): New. This was declared in
Werner Koch [Fri, 20 Sep 2002 11:40:27 +0000 (11:40 +0000)]
* mpi-mul.c (gcry_mpi_mul_2exp): New. This was declared in
gcrypt.h but only implemented as internal function.  Noted by Timo
but a few minutes to late for today's release.

17 years ago2002-09-20 Timo Schulz <ts@winpt.org>
Timo Schulz [Fri, 20 Sep 2002 11:37:36 +0000 (11:37 +0000)]
2002-09-20  Timo Schulz  <ts@winpt.org>

        * build-dll: Include ASM object files.

17 years agoBumbed version number
Werner Koch [Fri, 20 Sep 2002 11:23:57 +0000 (11:23 +0000)]
Bumbed version number

17 years agoAbout to release 1.1.10. V1-1-10
Werner Koch [Fri, 20 Sep 2002 11:10:58 +0000 (11:10 +0000)]
About to release 1.1.10.

* configure.ac (HAVE_DEV_RANDOM_IOCTL): Don't check for it; it is
not used.
(AS_CHECK_HEADERS): Check for sys/select.h.
* Makefile.am (DIST_SUBDIRS): New to include the w32-dll directory

17 years ago* Makefile.am (DISTCLEANFILES): Include mpi-asm-defs.h
Werner Koch [Fri, 20 Sep 2002 11:10:21 +0000 (11:10 +0000)]
* Makefile.am (DISTCLEANFILES): Include mpi-asm-defs.h

17 years ago* ath.c: Include sys.time.h if sys/select.h does not exist.
Werner Koch [Fri, 20 Sep 2002 11:10:06 +0000 (11:10 +0000)]
* ath.c: Include sys.time.h if sys/select.h does not exist.
(ath_select, ath_waitpid): Shortcut for Windows.
* ath.h: Include some Windows headers.  By Timo.

17 years ago* ath.h: Prefix ath_deinit.
Werner Koch [Fri, 20 Sep 2002 09:39:00 +0000 (09:39 +0000)]
* ath.h: Prefix ath_deinit.

17 years ago2002-09-18 Timo Schulz <ts@winpt.org>
Timo Schulz [Wed, 18 Sep 2002 21:03:04 +0000 (21:03 +0000)]
2002-09-18  Timo Schulz  <ts@winpt.org>

        * configure.ac: Added makefile for the W32 DLL.

17 years agoSome updates for the Libgcrypt W32 DLL process.
Timo Schulz [Wed, 18 Sep 2002 20:52:03 +0000 (20:52 +0000)]
Some updates for the Libgcrypt W32 DLL process.

17 years ago* Makefile.am (.S.lo): Pass -DPIC. i386, PPC and Sparc code
Werner Koch [Wed, 18 Sep 2002 14:33:03 +0000 (14:33 +0000)]
* Makefile.am (.S.lo): Pass -DPIC. i386, PPC and Sparc code
require it.  It worked for me because I am using the i586 code.

17 years ago* benchmark.c: New.
Werner Koch [Tue, 17 Sep 2002 20:08:56 +0000 (20:08 +0000)]
* benchmark.c: New.
(mpi_bench, do_powm): Add a a simple test for RSA.

17 years ago* benchmark.c: New.
Werner Koch [Tue, 17 Sep 2002 13:58:19 +0000 (13:58 +0000)]
* benchmark.c: New.

17 years ago* configure.ac: Check for Pth and Pthreads.
Werner Koch [Tue, 17 Sep 2002 12:41:31 +0000 (12:41 +0000)]
* configure.ac: Check for Pth and Pthreads.

17 years ago* ath.c, ath.h, ath-pth.c, ath-pthread.c: New. Taken from GPGME.
Werner Koch [Tue, 17 Sep 2002 12:41:14 +0000 (12:41 +0000)]
* ath.c, ath.h, ath-pth.c, ath-pthread.c: New. Taken from GPGME.
* mutex.h: Removed.
* Makefile.am (ath_components): New.

17 years ago* global.c (global_init): New. Use it instead of the setting
Werner Koch [Tue, 17 Sep 2002 12:40:05 +0000 (12:40 +0000)]
* global.c (global_init): New.  Use it instead of the setting
any_init_done.  Initialize the ATH system.
(gcry_check_version): Hook global_init in.  This is the suggested
way to initialize the library.
(_gcry_no_internal_locking): Removed.  We simply call a ath_deinit
and leave it to ATH to disbale the locking.

* ath.c, ath.h, ath-pth.c, ath-pthread.c: New. Taken from GPGME.
* mutex.h: Removed.
* Makefile.am (ath_components): New.

17 years ago* random.c: Replaced mutex.h by the new ath.h. Changed all calls.
Werner Koch [Tue, 17 Sep 2002 12:38:22 +0000 (12:38 +0000)]
* random.c: Replaced mutex.h by the new ath.h.  Changed all calls.

17 years ago* des.c (weak_keys): Fixed one entry in the table and compared
Werner Koch [Mon, 26 Aug 2002 10:37:17 +0000 (10:37 +0000)]
* des.c (weak_keys): Fixed one entry in the table and compared
all entries against the literature.
(selftest): Checksum the weak key table.

17 years ago* basic.c (check_ciphers): Check simple DES.
Werner Koch [Mon, 26 Aug 2002 10:36:31 +0000 (10:36 +0000)]
* basic.c (check_ciphers): Check simple DES.

17 years agoset version number to -cvs
Werner Koch [Fri, 23 Aug 2002 20:05:18 +0000 (20:05 +0000)]
set version number to -cvs

17 years agoautofixed version number V1-1-9
Werner Koch [Fri, 23 Aug 2002 18:58:12 +0000 (18:58 +0000)]
autofixed version number

17 years ago* configure.ac (LIBGCRYPT_CONFIG_CFLAGS): Renamed from
Werner Koch [Fri, 23 Aug 2002 18:42:53 +0000 (18:42 +0000)]
* configure.ac (LIBGCRYPT_CONFIG_CFLAGS): Renamed from
LIBGCRYPT_CFLAGS and removed the libpath because it is set by the
config script.
(LIBGCRYPT_LT_REVISION): Set LT version to 5/4/1.

17 years ago* Makefile.am (.S.lo): Fixed for libtool build with --disable-shared.
Werner Koch [Fri, 23 Aug 2002 18:41:37 +0000 (18:41 +0000)]
* Makefile.am (.S.lo): Fixed for libtool build with --disable-shared.

17 years ago* missing-string.c: Removed unneeded strlwr.
Werner Koch [Fri, 23 Aug 2002 18:41:29 +0000 (18:41 +0000)]
* missing-string.c: Removed unneeded strlwr.

* libgcrypt.m4: Made much more simple.
* libgcrypt-config.in: Made --prefix work for --libs.

17 years ago* pubkey.c: Enable keygrip calculation for "openpgp-rsa".
Werner Koch [Wed, 21 Aug 2002 09:34:39 +0000 (09:34 +0000)]
* pubkey.c: Enable keygrip calculation for "openpgp-rsa".

17 years agoTypo fix.
Werner Koch [Wed, 21 Aug 2002 09:34:11 +0000 (09:34 +0000)]
Typo fix.

17 years ago* cipher.c (setup_cipher_table): Don't overwrite the DES entry
Werner Koch [Sat, 17 Aug 2002 09:15:54 +0000 (09:15 +0000)]
* cipher.c (setup_cipher_table): Don't overwrite the DES entry
with the entry for DUMMY.

17 years ago* gcrypt.h: Add GCRY_CIPGER_DES. Included string.h for size_t.
Werner Koch [Wed, 14 Aug 2002 19:07:57 +0000 (19:07 +0000)]
* gcrypt.h: Add GCRY_CIPGER_DES.  Included string.h for size_t.
Suggested by Simon Josefsson.

* gcrypt.texi: Typo fixes.

* des.c (do_des_setkey,do_des_encrypt, do_des_decrypt): New.
(_gcry_des_get_info): Support plain old DES.
* cipher.c (setup_cipher_table): Put DES into the table.

17 years agoTypo fixes
Werner Koch [Wed, 14 Aug 2002 19:07:02 +0000 (19:07 +0000)]
Typo fixes

17 years ago* rndunix.c (_gcry_rndunix_constructor): Prefixed with _gcry_.
Werner Koch [Thu, 25 Jul 2002 14:51:14 +0000 (14:51 +0000)]
* rndunix.c (_gcry_rndunix_constructor): Prefixed with _gcry_.
Noted by Stephan Austermuehle.

17 years ago* cipher.h: Added prototypes for progress functions.
Werner Koch [Thu, 25 Jul 2002 14:50:55 +0000 (14:50 +0000)]
* cipher.h: Added prototypes for progress functions.
* global.c: Include cipher.h for those prototypes.

* stdmem.c (_gcry_private_realloc): Replaced void* by char * for
pointer arithmetic reasons.  Noted by Stephan Austermuehle.

17 years ago* longlong.h: Replaced all K&R multiline strings by ISO ones for
Werner Koch [Thu, 25 Jul 2002 14:50:15 +0000 (14:50 +0000)]
* longlong.h: Replaced all K&R multiline strings by ISO ones for
the sake of modern compilers.  Suggested by Marco Parrone.

17 years ago2002-07-08 Timo Schulz <ts@winpt.org>
Timo Schulz [Mon, 8 Jul 2002 00:31:21 +0000 (00:31 +0000)]
2002-07-08  Timo Schulz  <ts@winpt.org>

        * rndw32.c: Replaced the m_ memory functions with the real
        gcry_ functions. Renamed all g10_ prefixed functions to log_.

17 years ago* mpiutil.c (gcry_mpi_swap): New. V1-1-8
Werner Koch [Tue, 25 Jun 2002 11:12:58 +0000 (11:12 +0000)]
* mpiutil.c (gcry_mpi_swap): New.
* mpi-div.c (gcry_mpi_div): New.
(gcry_mpi_mod): New.
* mpi-inv.c (gcry_mpi_invm): New.
* mpicoder.c (do_get_buffer): Make sure that we allocate at least
one byte.

17 years ago* configure.ac: Set LT version to 5/4/0.
Werner Koch [Tue, 25 Jun 2002 11:12:04 +0000 (11:12 +0000)]
* configure.ac: Set LT version to 5/4/0.

17 years agoautmake updated.
Werner Koch [Tue, 18 Jun 2002 10:02:14 +0000 (10:02 +0000)]
autmake updated.

17 years ago* gcrypt.h: Added a bunch for brief function descriptions.
Werner Koch [Tue, 18 Jun 2002 10:01:56 +0000 (10:01 +0000)]
* gcrypt.h: Added a bunch for brief function descriptions.

17 years ago* hppa1.1/udiv-qrnnd.S: Changes for PIC by Randolph Chung.
Werner Koch [Wed, 12 Jun 2002 08:37:21 +0000 (08:37 +0000)]
* hppa1.1/udiv-qrnnd.S: Changes for PIC by Randolph Chung.

* rsa.c (generate): Use e = 65537 for now.

17 years ago2002-06-05 Timo Schulz <ts@winpt.org>
Timo Schulz [Wed, 5 Jun 2002 18:10:20 +0000 (18:10 +0000)]
2002-06-05  Timo Schulz  <ts@winpt.org>

        * cipher.c (gcry_cipher_encrypt, gcry_cipher_decrypt):
        Check that the input size is a multiple of the blocksize.

17 years ago* misc.c (_gcry_log_printf): Don't initialize a va_list. Noted by
Werner Koch [Tue, 21 May 2002 18:26:35 +0000 (18:26 +0000)]
* misc.c (_gcry_log_printf): Don't initialize a va_list.  Noted by
Jeff Johnson.

17 years agoprototypes fixed V1-1-7
Werner Koch [Tue, 21 May 2002 08:35:09 +0000 (08:35 +0000)]
prototypes fixed

17 years ago* configure.ac: Set LT version to 4/3/0.
Werner Koch [Tue, 21 May 2002 07:05:14 +0000 (07:05 +0000)]
* configure.ac: Set LT version to 4/3/0.

17 years ago* gcrypt.h: Replaced the typedef for byte.
Werner Koch [Tue, 21 May 2002 07:04:42 +0000 (07:04 +0000)]
* gcrypt.h: Replaced the typedef for byte.
* global.c (gcry_set_progress_handler): New.

* primegen.c, elgamal.c, dsa.c (progress): Do not print anything
by default.  Pass an extra identifying string to the callback and
reserved 2 argumenst for current and total counters.  Changed the
register function prototype.

17 years ago* rndegd.c (rndegd_constructor): Fixed name of register function
Werner Koch [Fri, 17 May 2002 08:33:21 +0000 (08:33 +0000)]
* rndegd.c (rndegd_constructor): Fixed name of register function
and prefixed the function name with _gcry_.
* rndw32.c (rndw32_constructor): Ditto.
* tiger.c (tiger_constructor): Ditto.

* Makefile.am: Removed all dynamic loading stuff.
* dynload.c: Ditto. Now only used for the constructor system.

17 years ago* configure.ac: Removed all the dynmaic loading stuff.
Werner Koch [Fri, 17 May 2002 08:33:01 +0000 (08:33 +0000)]
* configure.ac: Removed all the dynmaic loading stuff.

17 years ago* tsexp.c (back_and_forth): Very minimal test of the new functions.
Werner Koch [Thu, 16 May 2002 17:11:21 +0000 (17:11 +0000)]
* tsexp.c (back_and_forth): Very minimal test of the new functions.

* missing-string.c: New.

* gcrypt.h: Add new error codes GCRYERR_SEXP_ and typedefs
GcryMPI, GcrySexp, GcryCipherHd, GcryMDHd as aliases for the old
ones using an underscore.

* global.c (gcry_strerror): Add strings fro the new error codes.
* sexp.c (gcry_sexp_canon_len): Use a macro to convert from new to
old error codes.
(gcry_sexp_create,gcry_sexp_new): New.

17 years ago* configure.ac: Reordered the C_CHECK_FUNCS.
Werner Koch [Thu, 16 May 2002 17:10:58 +0000 (17:10 +0000)]
* configure.ac: Reordered the C_CHECK_FUNCS.

17 years agoFixed quoting error
Werner Koch [Thu, 16 May 2002 17:10:24 +0000 (17:10 +0000)]
Fixed quoting error

17 years ago* random.c (gcry_random_bytes,gcry_random_bytes_secure)
Werner Koch [Wed, 15 May 2002 12:56:38 +0000 (12:56 +0000)]
* random.c (gcry_random_bytes,gcry_random_bytes_secure)
(gcry_randomize): Make sure we are initialized.

17 years ago* config.links: Chnage the way the mpi modules are determined.
Werner Koch [Wed, 15 May 2002 12:53:02 +0000 (12:53 +0000)]
* config.links: Chnage the way the mpi modules are determined.
* Makefile.am: Revamped to better handle modules

* configure.ac: Adjusted for new MPI module stuff.

17 years agoUpdated to automake 1.6
Werner Koch [Wed, 15 May 2002 12:51:46 +0000 (12:51 +0000)]
Updated to automake 1.6

17 years ago* mutex.h (DEFINE_LOCAL_MUTEX): Macro to define a mutex and
Werner Koch [Wed, 15 May 2002 12:51:14 +0000 (12:51 +0000)]
* mutex.h (DEFINE_LOCAL_MUTEX): Macro to define a mutex and
initialize it so that we can detect an unitialized mutex and don't
read from stdin.

17 years agoChange the license to the LGPL. now-less-freedom-protected
Werner Koch [Tue, 14 May 2002 13:11:08 +0000 (13:11 +0000)]
Change the license to the LGPL.

17 years agoRemoved becuase we never implemented it.
Werner Koch [Tue, 14 May 2002 09:41:40 +0000 (09:41 +0000)]
Removed becuase we never implemented it.

17 years ago. last-gpl-version
Werner Koch [Tue, 14 May 2002 08:57:12 +0000 (08:57 +0000)]
.

17 years ago* global.c (gcry_control): Add commands
Werner Koch [Tue, 7 May 2002 15:41:32 +0000 (15:41 +0000)]
* global.c (gcry_control): Add commands
GCRYCTL_ANY_INITIALIZATION_P and GCRYCTL_INITIALIZATION_FINISHED_P
so that other libraries are able to check for required
initializations.

17 years ago* jnlib/: Removed.
Werner Koch [Thu, 2 May 2002 14:10:12 +0000 (14:10 +0000)]
* jnlib/: Removed.
* Makefile.am (SUBDIRS): Removed jnlib.
* configure.ac (jnlib/Makefile): Removed.

* configure.ac: Define _REENTRANT.

17 years ago* random.c (_gcry_fast_random_poll): Initialize the module so the
Werner Koch [Thu, 2 May 2002 14:09:27 +0000 (14:09 +0000)]
* random.c (_gcry_fast_random_poll): Initialize the module so the
mutex can be used.

* primegen.c (small_prime_numbers): Moved table from smallprime.c
* smallprime.c: Fiel removed.

* des.c (leftkey_swap, rightkey_swap, working_memcmp): Made static.

* cipher.c (gcry_cipher_map_name): Map "RIJNDAEL" to "AES".
* rijndael.c (rijndael_get_info): We do only support a 128 bit
blocksize so it makes sense to change the algorithm strings to
AES.

* tiger.c (tiger_final): Removed superfluous token pasting operators.
* md5.c (md5_final): Ditto.

17 years ago* mpicoder.c (gcry_mpi_scan): Don't use normalize on a NULL MPI.
Werner Koch [Thu, 2 May 2002 14:08:48 +0000 (14:08 +0000)]
* mpicoder.c (gcry_mpi_scan): Don't use normalize on a NULL MPI.

17 years ago* gcrypt.h (GCRYCTL_DISABLE_INTERNAL_LOCKING): New.
Werner Koch [Thu, 2 May 2002 14:07:31 +0000 (14:07 +0000)]
* gcrypt.h (GCRYCTL_DISABLE_INTERNAL_LOCKING): New.
* global.c (gcry_control): Implement it.
(_gcry_no_internal_locking): New.
* mutex.h: Prefixed all fucntions with _gcry_.  Bypass all
functions when desired.

* gcrypt.h (GCRYCTL_DISABLE_SECMEM): New.
* global.c (gcry_control,gcry_malloc_secure,gcry_is_secure):
Implement it here.
* secmem.c (_gcry_private_is_secure): Return false if the pool is
not initialized.

* gcrypt.h (GCRYCTL_INITIALIZATION_FINISHED): New.

* gcrypt.h (gcry_cipher_algos): Replaced RINDAEL by AES and change
the macros to expand from rijdael to aes.

* stdmem.c (_gcry_private_malloc): Return NULL for 0 byte allocation.
(_gcry_private_malloc_secure): Ditto.

* g10lib.h:  Copied the JNLIB_GCC macros from ../jnlib/mischelp.h
and removed the inclusion of that file.

17 years ago* version.sgml.in, cipher-ref.sgml, digest-ref.sgml, misc-ref.sgml
Werner Koch [Tue, 16 Apr 2002 10:17:54 +0000 (10:17 +0000)]
* version.sgml.in, cipher-ref.sgml, digest-ref.sgml, misc-ref.sgml
* pubkey-ref.sgml, reference.sgml: Removed.
* gcrypt.texi: New. Based on the old sgml version.
* gpl.texi, fdl.texi: New.
* Makefile.am: Adjusted for use with texinfo.

17 years ago* mpicoder.c (mpi_read_from_buffer): Bail out on a zero length
Werner Koch [Wed, 20 Mar 2002 10:55:30 +0000 (10:55 +0000)]
* mpicoder.c (mpi_read_from_buffer): Bail out on a zero length
buffer because we can't eventually do an malloc of this size.
Reported by Timo.

17 years ago* sexp.c (gcry_sexp_sscan): Don't initialize the dummy
Werner Koch [Mon, 18 Feb 2002 11:53:01 +0000 (11:53 +0000)]
* sexp.c (gcry_sexp_sscan): Don't initialize the dummy
variable.  Suggested by Jordi Mallach.

17 years ago* rndunix.c (rndunix_constructor): Use the the new prefixed
Werner Koch [Mon, 18 Feb 2002 11:52:42 +0000 (11:52 +0000)]
* rndunix.c (rndunix_constructor): Use the the new prefixed
function name.  Reported by Jordi Mallach.

17 years ago* configure.ac (MPI_EXTRA_ASM_OBJS): Use .lo suffix.
Werner Koch [Mon, 18 Feb 2002 11:52:31 +0000 (11:52 +0000)]
* configure.ac (MPI_EXTRA_ASM_OBJS): Use .lo suffix.
(AC_CANONICAL_TARGET): Added.

17 years ago* random.c (add_randomness): Xor new data into the pool and not
Werner Koch [Sun, 10 Feb 2002 21:34:58 +0000 (21:34 +0000)]
* random.c (add_randomness): Xor new data into the pool and not
just copy it.  This avoids any choosen input attacks which are not
serious in our setting because an outsider won't be able to mix
data in and even then we keep going with a PRNG.  Thanks to Stefan
Keller for pointing this out.
* random.c (mix_pool): Carry an extra failsafe_digest buffer
around to make the function more robust.

17 years agoissue #warning only for gcc. V1-1-6
Werner Koch [Thu, 7 Feb 2002 19:16:55 +0000 (19:16 +0000)]
issue #warning only for gcc.
Ready to release 1.1.6

17 years agoReady to release 1.1.6
Werner Koch [Thu, 7 Feb 2002 19:15:51 +0000 (19:15 +0000)]
Ready to release 1.1.6

17 years ago* sexp.c (suitable_encoding,convert_to_hex,convert_to_string)
Werner Koch [Thu, 31 Jan 2002 14:58:11 +0000 (14:58 +0000)]
* sexp.c (suitable_encoding,convert_to_hex,convert_to_string)
(convert_to_token): New.
(gcry_sexp_sprint): Better formatting of advanced encoding, does
now insert LFs and escapes all unprintable characters.
(unquote_string): New.
(sexp_sscan): Implemented the missing conversion of quoted strings.

17 years ago* sexp.c (suitable_encoding,convert_to_hex,convert_to_string)
Werner Koch [Thu, 31 Jan 2002 08:06:14 +0000 (08:06 +0000)]
* sexp.c (suitable_encoding,convert_to_hex,convert_to_string)
(convert_to_token): New.
(gcry_sexp_sprint): Better formatting of advanced encoding, does
now insert LFs and escapes all unprintable characters.

17 years agojnlib/
Werner Koch [Thu, 24 Jan 2002 13:28:35 +0000 (13:28 +0000)]
jnlib/
Replaced by a fresh copy from GnuPG (actually the NewPG
development branch).  Adjusted Makefile.am and jnlib-config.h
accordingly.

* logging.c (log_printf): Do not initialize ARG_PTR with 0, we
don't know the correct type.  Instead, run va_start and va_end
unconditionally.
Reported by Jose Carlos Garcia Sogo <jsogo@debian.org>.

mpi/
* mpi-inv.c (_gcry_mpi_invm): Typo fixes, noted by Carlo Perassi.

17 years ago* tsexp.c (canon_len): Fixed tests.
Werner Koch [Fri, 11 Jan 2002 14:55:06 +0000 (14:55 +0000)]
* tsexp.c (canon_len): Fixed tests.

17 years ago* sexp.c (gcry_sexp_canon_len): Fixed last change.
Werner Koch [Fri, 11 Jan 2002 14:54:58 +0000 (14:54 +0000)]
* sexp.c (gcry_sexp_canon_len): Fixed last change.

17 years agofixed indentation
Werner Koch [Thu, 10 Jan 2002 19:49:52 +0000 (19:49 +0000)]
fixed indentation

17 years ago* pubkey.c (gcry_pk_genkey): Do not release skey - it is static.
Werner Koch [Thu, 10 Jan 2002 19:48:26 +0000 (19:48 +0000)]
* pubkey.c (gcry_pk_genkey): Do not release skey - it is static.
* primegen.c (gen_prime): Of course we should use set_bit
and not set_highbit to set the second high bit.

17 years agoFixed a bug in the memory allocation.
Timo Schulz [Tue, 1 Jan 2002 11:26:05 +0000 (11:26 +0000)]
Fixed a bug in the memory allocation.

17 years agoBump to cvs version
Werner Koch [Thu, 20 Dec 2001 10:05:03 +0000 (10:05 +0000)]
Bump to cvs version

17 years ago* sexp.c (gcry_sexp_canon_len): Describe the error codes and
Werner Koch [Thu, 20 Dec 2001 10:03:34 +0000 (10:03 +0000)]
* sexp.c (gcry_sexp_canon_len): Describe the error codes and
return an error if this is not a S-Exp; i.e. it does not start
with an open parenthesis.

17 years agoLast fixes before the release V1-1-5
Werner Koch [Tue, 18 Dec 2001 17:30:00 +0000 (17:30 +0000)]
Last fixes before the release

17 years ago* Makefile.am (dist-hook): Only look in mpi and scripts for
Werner Koch [Tue, 18 Dec 2001 15:30:01 +0000 (15:30 +0000)]
* Makefile.am (dist-hook): Only look in mpi and scripts for
distfiles; this way we don't include those of a stale "make dist"
directory.
* acinclude.m4 (GNUPG_FIX_HDR_VERSION): Make it work with the new
automake.
* configure.ac: Don't chmod db2any.

17 years ago* rsa.c (generate): Loop until we find the exact modulus size.
Werner Koch [Tue, 18 Dec 2001 15:29:02 +0000 (15:29 +0000)]
* rsa.c (generate): Loop until we find the exact modulus size.
Changed the exponent to 41.
(rsa_get_info): s/usage/r_usage/ to avoid shadow warnings.
* primegen.c (gen_prime): Set 2 high order bits for secret primes.
* Makefile.am (DISTCLEANFILES): Include construct.c.

17 years agoremoved unneeded sources
Werner Koch [Tue, 18 Dec 2001 15:28:38 +0000 (15:28 +0000)]
removed unneeded sources

17 years ago* distfiles: Removed files which are automatically added by automake.
Werner Koch [Tue, 18 Dec 2001 15:28:12 +0000 (15:28 +0000)]
* distfiles: Removed files which are automatically added by automake.

17 years ago* Makefile.am (DISTCLEANFILES): Include libgcrypt.sym
Werner Koch [Tue, 18 Dec 2001 15:27:47 +0000 (15:27 +0000)]
* Makefile.am (DISTCLEANFILES): Include libgcrypt.sym

* sexp.c: Removed the commented test code because we now have a
text in ../tests/

17 years ago* sexp.c: Removed the commented test code because we now have a
Werner Koch [Tue, 18 Dec 2001 10:02:02 +0000 (10:02 +0000)]
* sexp.c: Removed the commented test code because we now have a
test in ../tests/

17 years ago* tsexp.c: New.
Werner Koch [Tue, 18 Dec 2001 10:01:26 +0000 (10:01 +0000)]
* tsexp.c: New.

17 years agoAdded some comments
Werner Koch [Tue, 18 Dec 2001 10:00:58 +0000 (10:00 +0000)]
Added some comments

17 years ago* pubkey.c (gcry_pk_get_keygrip): New - experimental.
Werner Koch [Mon, 17 Dec 2001 15:19:33 +0000 (15:19 +0000)]
* pubkey.c (gcry_pk_get_keygrip): New - experimental.

17 years agoEmpty but this does not mean to reflect reality
Werner Koch [Wed, 12 Dec 2001 12:05:33 +0000 (12:05 +0000)]
Empty but this does not mean to reflect reality

17 years ago* cipher.c: Added OIDs for AES.
Werner Koch [Wed, 12 Dec 2001 12:04:25 +0000 (12:04 +0000)]
* cipher.c: Added OIDs for AES.
(gcry_cipher_mode_from_oid): New.
(gcry_cipher_map_name): Moved OID search code to ..
(search_oid): .. new function.

17 years ago* pubkey.c (gcry_pk_encrypt): Find the signature algorithm by name
Werner Koch [Mon, 10 Dec 2001 17:31:10 +0000 (17:31 +0000)]
* pubkey.c (gcry_pk_encrypt): Find the signature algorithm by name
and not by number.

* pubkey.c (gcry_pk_encrypt,gcry_pk_decrypt,gcry_pk_sign)
(gcry_pk_verify,gcry_pk_testkey, gcry_pk_genkey)
(gcry_pk_get_nbits): Release the arrays.  Noted by Nikos
Mavroyanopoulos.

17 years ago* cipher.c (gcry_cipher_map_name): Look also for OIDs prefixed
Werner Koch [Thu, 6 Dec 2001 20:42:18 +0000 (20:42 +0000)]
* cipher.c (gcry_cipher_map_name): Look also for OIDs prefixed
with "oid."  or "OID.".

17 years ago*** empty log message ***
Werner Koch [Thu, 6 Dec 2001 20:40:14 +0000 (20:40 +0000)]
*** empty log message ***

17 years ago* misc.c (_gcry_log_printf): New.
Werner Koch [Thu, 6 Dec 2001 20:36:39 +0000 (20:36 +0000)]
* misc.c (_gcry_log_printf): New.
* sexp.c (dump_string,gcry_sexp_dump): Use logging functions
instead of stderr.

17 years ago* pubkey.c: Added the rsaEncryption OID to the tables.
Werner Koch [Sat, 24 Nov 2001 14:21:05 +0000 (14:21 +0000)]
* pubkey.c: Added the rsaEncryption OID to the tables.
(sexp_to_key): Add an arg to return the index of the algorithm,
changed all callers.
(gcry_pk_sign): Find the signature algorithm by name and not by
number.
(gcry_pk_get_nbits): Fixed so that we can now really pass a secret
key to get the result.

17 years ago... and fixed last change
Werner Koch [Sat, 24 Nov 2001 10:51:55 +0000 (10:51 +0000)]
... and fixed last change

17 years ago* md.c (gcry_md_map_name): Look also for OIDs prefixed with "oid."
Werner Koch [Sat, 24 Nov 2001 10:47:57 +0000 (10:47 +0000)]
* md.c (gcry_md_map_name): Look also for OIDs prefixed with "oid."
or "OID." so that an OID string can be used as an S-Exp token.