libgcrypt.git
16 years ago* basic.c (check_one_md): Kludge to check a one million "a".
Werner Koch [Mon, 20 Jan 2003 16:58:20 +0000 (16:58 +0000)]
* basic.c (check_one_md): Kludge to check a one million "a".
(check_digests): Add checks for SHA-256.

* sha256.c: New.
* bithelp.h (ror): New.
* Makfile.am: Add sha256.c.
* md.c (oid_table): Add values for SHA256 et al.
(gcry_md_get_algo_dlen): Likewise

* configure.ac (LIBGCRYPT_LT_REVISION): Bumbed up.

16 years agoPost-release version number updates.
Werner Koch [Mon, 20 Jan 2003 11:29:00 +0000 (11:29 +0000)]
Post-release version number updates.

16 years agoAbout to release 1.1.12 V1-1-12
Werner Koch [Mon, 20 Jan 2003 10:30:23 +0000 (10:30 +0000)]
About to release 1.1.12

16 years ago*** empty log message ***
Werner Koch [Mon, 20 Jan 2003 10:25:21 +0000 (10:25 +0000)]
*** empty log message ***

16 years ago* basic.c (check_pubkey): Check the keygrip for the sample key.
Werner Koch [Mon, 20 Jan 2003 10:22:41 +0000 (10:22 +0000)]
* basic.c (check_pubkey): Check the keygrip for the sample key.

16 years ago* pubkey.c (gcry_pk_get_keygrip): Implemented keygrips for DSA
Werner Koch [Mon, 20 Jan 2003 10:20:45 +0000 (10:20 +0000)]
* pubkey.c (gcry_pk_get_keygrip): Implemented keygrips for DSA
and ElGamal.

16 years ago* gcrypt.texi: Most functions are now documented. Still need to
Werner Koch [Sun, 19 Jan 2003 20:37:33 +0000 (20:37 +0000)]
* gcrypt.texi: Most functions are now documented.  Still need to
fine tune the menu structure, document some utility functions,
mark up indices and references and add examples.

16 years ago* cipher.c (gcry_cipher_encrypt): Reworked so that the output will
Werner Koch [Fri, 17 Jan 2003 16:42:23 +0000 (16:42 +0000)]
* cipher.c (gcry_cipher_encrypt): Reworked so that the output will
never contain the plaintext even if the caller did not checked the
return value.

* md.c (gcry_md_get_algo): Changed error code to GCRYERR_GENERAL
because we don't have an invalid md algo but no algorithm enabled.

* pubkey.c (gcry_pk_genkey): Changed error code for bounds check
of table parameters to GCRYERR_INTERNAL.

* md.c (gcry_md_open): Partly reverted Timo's change from
2002-10-10 by removing the check for the algorithm.  An algorithm
of 0 is allowed and anyway we should not double check it or check
it using a different function.  Also fixed the flags check.

* pubkey.c (gcry_pk_encrypt): Make sure that R_CIPH points to NULL
on error.
(gcry_pk_decrypt): Ditto for R_PLAIN.
(gcry_pk_sign): Ditto for R_SIG.
(gcry_pk_genkey): Ditto for R_KEY.

16 years ago* longlong.h: Removed some spaces between backslashes and newlines.
Werner Koch [Wed, 15 Jan 2003 14:02:23 +0000 (14:02 +0000)]
* longlong.h: Removed some spaces between backslashes and newlines.

16 years ago* basic.c (verify_one_signature,check_pubkey_sign)
Werner Koch [Wed, 15 Jan 2003 14:02:01 +0000 (14:02 +0000)]
* basic.c (verify_one_signature,check_pubkey_sign)
(check_pubkey): New.
(main): Check public key functions. Add a --debug option.

* sexp.c (gcry_sexp_length): Fixed.  This was seriously broken.

* pubkey.c (sexp_data_to_mpi): New.  This handles pkcs1 padding.
(gcry_pk_sign, gcry_pk_verify): Use it here.
(gcry_pk_encrypt): And here.
(pubkey_verify): Add debug code.
(sexp_to_enc): Handle flags in the input and return the pkcs1 flag
in a new parameter.
(gcry_pk_decrypt): Prepare for future pkcs1 handling.

16 years ago* libgcrypt.vers: Temporary export _gcry_generate_elg_prime for
Werner Koch [Thu, 2 Jan 2003 11:58:04 +0000 (11:58 +0000)]
* libgcrypt.vers: Temporary export _gcry_generate_elg_prime for
use by GNUTLS.

16 years agoPost-release version number bump.
Werner Koch [Sat, 21 Dec 2002 17:04:46 +0000 (17:04 +0000)]
Post-release version number bump.

16 years ago* configure.ac (LIBGCRYPT_LT_CURRENT: Bumbed to 6/5/0 due to a new V1-1-11
Werner Koch [Sat, 21 Dec 2002 15:54:49 +0000 (15:54 +0000)]
* configure.ac (LIBGCRYPT_LT_CURRENT: Bumbed to 6/5/0 due to a new
interface

16 years agotypo fix
Werner Koch [Sat, 21 Dec 2002 15:54:36 +0000 (15:54 +0000)]
typo fix

16 years ago* gcrypt.h: Make use of gcc's pure and malloc attributes
Werner Koch [Sat, 21 Dec 2002 15:53:17 +0000 (15:53 +0000)]
* gcrypt.h: Make use of gcc's pure and malloc attributes
(gcry_md_putc): Use a helper variable to avoid multiple
evaluation of H.
* g10lib.h, stdmem.h, secmem.h: Use gcc attributes pure and malloc.

* stdmem.c (use_m_guard): Don't default to yes.

16 years ago* global.c (global_init): The meat was never run due to a faulty
Werner Koch [Thu, 19 Dec 2002 11:19:18 +0000 (11:19 +0000)]
* global.c (global_init): The meat was never run due to a faulty
check. Thanks to Nikos for pointing this out.

* global.c (gcry_control): Return 1 and not -1 for the
initialization tests.

16 years ago* configure.ac (have_pthread): Check for pthreads in libc.
Werner Koch [Thu, 19 Dec 2002 11:10:19 +0000 (11:10 +0000)]
* configure.ac (have_pthread): Check for pthreads in libc.
(have_ld_version_script): New.

16 years ago* libgcrypt.vers: New.
Werner Koch [Thu, 19 Dec 2002 11:10:00 +0000 (11:10 +0000)]
* libgcrypt.vers: New.
* Makefile.am: Use this instead of the build symbol file.

16 years ago* global.c (gcry_control) <initialization>: Call the random module
Werner Koch [Thu, 19 Dec 2002 09:04:15 +0000 (09:04 +0000)]
* global.c (gcry_control) <initialization>: Call the random module
initializer to make sure that the pool lock flag has been
initialized.

16 years ago* random.c (_gcry_random_initialize): New.
Werner Koch [Thu, 19 Dec 2002 09:04:01 +0000 (09:04 +0000)]
* random.c (_gcry_random_initialize): New.

16 years ago* md.c: Added another oddball OIW OID (sha-1WithRSAEncryption).
Werner Koch [Thu, 12 Dec 2002 15:13:11 +0000 (15:13 +0000)]
* md.c: Added another oddball OIW OID (sha-1WithRSAEncryption).

16 years ago* global.c (gcry_calloc,gcry_calloc_secure): Check for overflow.
Werner Koch [Mon, 9 Dec 2002 10:43:45 +0000 (10:43 +0000)]
* global.c (gcry_calloc,gcry_calloc_secure): Check for overflow.
Noted by Florian Weimer.

16 years ago* basic.c (check_digests): Add another test for MD4. By Simon
Werner Koch [Sat, 23 Nov 2002 11:42:57 +0000 (11:42 +0000)]
* basic.c (check_digests): Add another test for MD4.  By Simon
Josefsson.

16 years agoPrivate notes of mine (might be in German)
Werner Koch [Sat, 23 Nov 2002 11:42:05 +0000 (11:42 +0000)]
Private notes of mine (might be in German)

16 years ago* md.c (load_digest_module): Enlarged checked_algos bitmap.
Werner Koch [Sat, 23 Nov 2002 11:40:36 +0000 (11:40 +0000)]
* md.c (load_digest_module): Enlarged checked_algos bitmap.
* md4.c (func_table):  Fixed entry for md4.
Both by Simon Josephson.
(transform): Copy data to get the alignment straight. Tested only
on i386.

16 years ago* config.sub, config.guess: Updated from ftp.gnu.org/gnu/config
Werner Koch [Tue, 12 Nov 2002 19:36:56 +0000 (19:36 +0000)]
* config.sub, config.guess: Updated from ftp.gnu.org/gnu/config
to version 2002-11-08.

16 years agoAccidently commited an empty file - here comes the spice.
Werner Koch [Sun, 10 Nov 2002 19:04:54 +0000 (19:04 +0000)]
Accidently commited an empty file - here comes the spice.

16 years ago* configure.ac (MODULES_IN_CIPHER): Add md4.c. By Simon Josefsson.
Werner Koch [Sun, 10 Nov 2002 18:03:45 +0000 (18:03 +0000)]
* configure.ac (MODULES_IN_CIPHER): Add md4.c.  By Simon Josefsson.

16 years ago* cipher.c (gcry_cipher_open): Don't reject CTS flag.
Werner Koch [Sun, 10 Nov 2002 18:03:28 +0000 (18:03 +0000)]
* cipher.c (gcry_cipher_open): Don't reject CTS flag.
(do_cbc_encrypt, do_cbc_decrypt, cipher_encrypt)
(gcry_cipher_encrypt, cipher_decrypt)
(gcry_cipher_decrypt): Support CTS flag.
(gcry_cipher_ctl): Toggle CTS flag.
* md4.c: New. By by Simon Josefsson.
* Makefile.am (EXTRA_PROGRAMS): Add md4.c.
* md.c (oid_table,gcry_md_get_algo_dlen): MD4 support.

16 years agotypo fixes
Werner Koch [Sun, 10 Nov 2002 18:02:50 +0000 (18:02 +0000)]
typo fixes

16 years ago* gcrypt.h (gcry_ctl_cmds): New GCRYCTL_SET_CBC_CTS control flag.
Werner Koch [Sun, 10 Nov 2002 18:02:34 +0000 (18:02 +0000)]
* gcrypt.h (gcry_ctl_cmds): New GCRYCTL_SET_CBC_CTS control flag.
(gcry_cipher_flags): New GCRY_CIPHER_CBC_CTS gcry_cipher_open() flag.
(gcry_cipher_cts): New macro for toggling CTS.

* gcrypt.h (GCRY_MD_MD4): New.  We use a non OpenPGP value here.

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.

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

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

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

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

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

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

16 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

16 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

16 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".

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

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

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

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

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

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

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