libgcrypt.git
16 years ago2003-03-30 Simon Josefsson <jas@extundo.com>
Moritz Schulte [Mon, 31 Mar 2003 00:21:35 +0000 (00:21 +0000)]
2003-03-30  Simon Josefsson  <jas@extundo.com>

* gcrypt.h (enum gcry_control_cmds): Add GCRY_SET_CTR.
(enum gcry_cipher_modes): Add GCRY_CIPHER_MODE_CTR.
(gcry_cipher_setctr): New macro to set counter.

16 years ago2003-03-30 Simon Josefsson <jas@extundo.com>
Moritz Schulte [Mon, 31 Mar 2003 00:19:42 +0000 (00:19 +0000)]
2003-03-30  Simon Josefsson  <jas@extundo.com>

* gcrypt.texi: Add CTR.

16 years ago2003-03-31 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 31 Mar 2003 00:16:17 +0000 (00:16 +0000)]
2003-03-31  Moritz Schulte  <moritz@g10code.com>

* cipher.c (do_ctr_decrypt): Made do_ctr_encrypt act as a wrapper
for do_ctr_encrypt, since these functions are identical.

2003-03-30  Simon Josefsson  <jas@extundo.com>

* cipher.c (struct gcry_cipher_handle): Add counter field.
(gcry_cipher_open): Add CTR.
(cipher_reset): Clear counter field.
(do_ctr_encrypt, do_ctr_decrypt): New functions.
(cipher_encrypt, cipher_decrypt): Call CTR functions.
(gcry_cipher_ctl): Add SET_CTR to set counter.

16 years agoAdded some missing ChangeLog entries.
Moritz Schulte [Sun, 30 Mar 2003 13:26:27 +0000 (13:26 +0000)]
Added some missing ChangeLog entries.

16 years ago2003-03-26 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Wed, 26 Mar 2003 11:01:43 +0000 (11:01 +0000)]
2003-03-26  Moritz Schulte  <moritz@g10code.com>

* NEWS: Mention RSA blinding.

16 years ago2003-03-19 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Wed, 26 Mar 2003 10:58:24 +0000 (10:58 +0000)]
2003-03-19  Moritz Schulte  <moritz@g10code.com>

* cipher.h (PUBKEY_FLAG_NO_BLINDING): New symbol.

16 years ago2003-03-26 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Wed, 26 Mar 2003 10:56:50 +0000 (10:56 +0000)]
2003-03-26  Moritz Schulte  <moritz@g10code.com>

* dynload.c (_gcry_enum_gnupgext_pubkeys): Adjust `encrypt' and
`decrypt' function arguments.
(_gcry_enum_gnupgext_pubkeys): Likewise.
* dynload.h: Likewise.

* pubkey.c (dummy_decrypt): Add argument: int flags.
(dummy_encrypt): Likewise.

* elgamal.c (_gcry_elg_encrypt): Add argument: int flags.
(_gcry_elg_decrypt): Likewise.

* rsa.c (_gcry_rsa_encrypt): Add argument: int flags.
(_gcry_rsa_decrypt): Likewise.

* pubkey.c: Add `flags' argument to members `encrypt' and
`decrypt' of struct `pubkey_table_s'.

* rsa.h: Add `flags' argument to function declarations.
* elgamal.h: Likewise.

* pubkey.c (sexp_data_to_mpi): New variable: int parsed_flags.
(sexp_data_to_mpi): Set `parsed_flags'.
(sexp_data_to_mpi): New argument: int *flags.
(gcry_pk_encrypt): New variable: int flags.
(gcry_pk_encrypt): Pass `flags' to pubkey_encrypt.
(pubkey_encrypt): New variable: int flags.
(pubkey_encrypt): Pass `flags' to pubkey encrypt function.
(pubkey_decrypt): Likewise.
(pubkey_decrypt): Pass `flags' to pubkey encrypt function.
(gcry_pk_encrypt): Include `flags' s-exp in return list.
(sexp_to_enc): New argument: int *flags.
(gcry_pk_decrypt): New variable: int flags.
(gcry_pk_decrypt): Pass `flags' to pubkey_decrypt.
(sexp_to_enc): New variable: int parsed_flags.
(sexp_to_enc): Set `parsed_flags'.

16 years ago2003-03-26 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Wed, 26 Mar 2003 10:21:34 +0000 (10:21 +0000)]
2003-03-26  Moritz Schulte  <moritz@g10code.com>

* Makefile.am (TESTS): Added pubkey.

* pubkey.c: New file.

16 years ago2003-03-24 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 24 Mar 2003 19:32:29 +0000 (19:32 +0000)]
2003-03-24  Moritz Schulte  <moritz@g10code.com>

* NEWS: Mention new CBC_MAC flag.

* AUTHORS (Maintainer): Update entry for Simon Josefsson.

16 years ago2003-03-22 Simon Josefsson <jas@extundo.com>
Moritz Schulte [Mon, 24 Mar 2003 19:31:42 +0000 (19:31 +0000)]
2003-03-22  Simon Josefsson  <jas@extundo.com>

* gcrypt.texi: Add CBC-MAC.

16 years ago2003-03-22 Simon Josefsson <jas@extundo.com>
Moritz Schulte [Mon, 24 Mar 2003 19:30:30 +0000 (19:30 +0000)]
2003-03-22  Simon Josefsson  <jas@extundo.com>

* gcrypt.h: Add GCRYCTL_SET_CBC_MAC and GCRY_CIPHER_CBC_MAC.

16 years ago2003-03-22 Simon Josefsson <jas@extundo.com>
Moritz Schulte [Mon, 24 Mar 2003 19:29:28 +0000 (19:29 +0000)]
2003-03-22  Simon Josefsson  <jas@extundo.com>

* basic.c (check_cbc_mac_cipher): New.
(main): Use it.

16 years ago2003-03-22 Simon Josefsson <jas@extundo.com>
Moritz Schulte [Mon, 24 Mar 2003 19:28:11 +0000 (19:28 +0000)]
2003-03-22  Simon Josefsson  <jas@extundo.com>

* cipher.c (gcry_cipher_open, do_cbc_encrypt)
(gcry_cipher_encrypt): Support GCRY_CIPHER_CBC_MAC.
(gcry_cipher_ctl): Support GCRYCTL_SET_CBC_MAC.

16 years ago* g10lib.h: Adjusted primegen.c prototypes.
Werner Koch [Wed, 19 Mar 2003 11:59:45 +0000 (11:59 +0000)]
* g10lib.h: Adjusted primegen.c prototypes.

16 years ago* keygen.c (check_rsa_keys): Don't expect an exponent when asking
Werner Koch [Wed, 19 Mar 2003 11:57:55 +0000 (11:57 +0000)]
* keygen.c (check_rsa_keys): Don't expect an exponent when asking
for e=0.
(check_generated_rsa_key): Just print exponent if EXPECTED_E is 0.

* primegen.c (gen_prime): New args EXTRA_CHECK and EXTRA_CHECK_ARG
to allow for a user callback.  Changed all callers.
(_gcry_generate_secret_prime)
(_gcry_generate_public_prime): Ditto, pass them to gen_prime.
* rsa.c (check_exponent): New.
(generate): Use a callback to ensure that a given exponent is
actually generated.

16 years agoMerged
Werner Koch [Wed, 19 Mar 2003 11:55:35 +0000 (11:55 +0000)]
Merged

16 years agoRemoved jnlib, since it's not used.
Moritz Schulte [Wed, 12 Mar 2003 17:10:34 +0000 (17:10 +0000)]
Removed jnlib, since it's not used.

16 years ago2003-03-12 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Wed, 12 Mar 2003 15:15:54 +0000 (15:15 +0000)]
2003-03-12  Moritz Schulte  <moritz@g10code.com>

* primegen.c: Initialize `no_of_small_prime_numbers' statically.
(gen_prime): Remove calculation of `no_of_small_prime_numbers'.

16 years ago* sexp.c (sexp_sscan): Initialize NM. Thanks to Ian Peters for
Werner Koch [Wed, 12 Mar 2003 10:47:18 +0000 (10:47 +0000)]
* sexp.c (sexp_sscan): Initialize NM.  Thanks to Ian Peters for
valgrinding this.

16 years ago2003-03-06 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Thu, 6 Mar 2003 21:55:44 +0000 (21:55 +0000)]
2003-03-06  Moritz Schulte  <mo@g10code.com>

* secmem.h (GCRY_SECMEM_FLAG_NO_WARNING,
GCRY_SECMEM_FLAG_SUSPEND_WARNING): New symbols.

* global.c (gcry_control): Use
GCRY_SECMEM_FLAG_{NO,SUSPEND}_WARNING, instead of hard-coded
values.
* secmem.c (_gcry_secmem_set_flags): Likewise.
* secmem.c (_gcry_secmem_get_flags): Likewise.

16 years ago2003-03-06 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Thu, 6 Mar 2003 21:49:34 +0000 (21:49 +0000)]
2003-03-06  Moritz Schulte  <mo@g10code.com>

* autogen.sh (run): New function.
Let automake run with -a for adding missing files automatically

16 years ago2003-03-04 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Tue, 4 Mar 2003 18:20:05 +0000 (18:20 +0000)]
2003-03-04  Moritz Schulte  <moritz@g10code.com>

* TODO: Remove item about resetting handles, since
gcry_cipher_reset is implemented by now.

* NEWS: Mentioned gcry_cipher_reset.

16 years ago2003-03-02 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Tue, 4 Mar 2003 18:19:19 +0000 (18:19 +0000)]
2003-03-02  Moritz Schulte  <moritz@g10code.com>

* basic.c (check_one_cipher): Use gcry_cipher_reset() instead of
gcry_cipher_close(), gcry_cipher_open and gcry_cipher_setkey().

16 years ago2003-03-04 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Tue, 4 Mar 2003 18:17:05 +0000 (18:17 +0000)]
2003-03-04  Moritz Schulte  <moritz@g10code.com>

* gcrypt.texi (Cipher Functions): Added gcry_cipher_reset.

16 years ago2003-03-03 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Tue, 4 Mar 2003 18:09:33 +0000 (18:09 +0000)]
2003-03-03  Moritz Schulte  <moritz@g10code.com>

* misc.c: Removed old FIXME, since there is already a function to
set the value of `verbosity_level'.

* gcrypt.h: Removed enumeration list: gcry_ctl_cmds.
New enumeration lists: gcry_global_control_cmds,
gcry_control_cmds, gcry_info_cmds, gcry_algo_info_cmds.

2003-03-02  Moritz Schulte  <moritz@g10code.com>

* gcrypt.h (gcry_cipher_reset): New macro for resetting a handle.

16 years ago2003-03-02 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Tue, 4 Mar 2003 18:07:42 +0000 (18:07 +0000)]
2003-03-02  Moritz Schulte  <moritz@g10code.com>

* cipher.c (struct gcry_cipher_handle): New member: algo_index.
(gcry_cipher_open): Allocate memory for two cipher contexts.
Initialize algo_index.
(cipher_setkey): Duplicate context into reserved memory.
(cipher_reset): New function, which resets the context and clear
the IV.
(gcry_cipher_ctl): Call cipher_reset.

16 years ago2003-03-03 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Tue, 4 Mar 2003 18:05:00 +0000 (18:05 +0000)]
2003-03-03  Moritz Schulte  <moritz@g10code.com>

* md.c (gcry_md_ctl): Rewritten to use same style like the other
functions dispatchers.

16 years ago2003-02-28 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sat, 1 Mar 2003 23:22:12 +0000 (23:22 +0000)]
2003-02-28  Moritz Schulte  <moritz@g10code.com>

* secmem.c (DEFAULT_PAGESIZE): New symbol.
(init_pool): Use DEFAULT_PAGESIZE.

2003-02-23  Moritz Schulte  <moritz@g10code.com>

* secmem.h: Fix typo in declaration of _gcry_secmem_term.

* sexp.c: Move macro definitions of `digitp', `octdigit', `alphap'
and `hexdigit' ...
* g10lib.h: ... here.

* misc.c (_gcry_burn_stack): New function (former name:
burn_stack).

* g10lib.h (burn_stack): Declare _gcry_burn_stack().

16 years ago2003-02-23 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Fri, 28 Feb 2003 01:41:14 +0000 (01:41 +0000)]
2003-02-23  Moritz Schulte  <moritz@g10code.com>

* cipher.c: Remove (bogus) `digitp' macro definition.
* md.c: Likewise.

* blowfish.c (burn_stack): Removed.
* arcfour.c (burn_stack): Likewise.
* cast5.c (burn_stack): Likewise.
* des.c (burn_stack): Likewise.
* md4.c (burn_stack): Likewise.
* md5.c (burn_stack): Likewise.
* random.c (burn_stack): Likewise.
* rijndael.c (burn_stack): Likewise.
* rmd160.c (burn_stack): Likewise.
* sha1.c (burn_stack): Likewise.
* sha256.c (burn_stack): Likewise.
* tiger.c (burn_stack): Likewise.
* twofish.c (burn_stack): Likewise.

* blowfish.c: Changed all occurences of burn_stack to
_gcry_burn_stack.
* arcfour.c: Likewise.
* cast5.c: Likewise.
* des.c: Likewise.
* md4.c: Likewise.
* md5.c: Likewise.
* random.c: Likewise.
* rijndael.c: Likewise.
* rmd160.c: Likewise.
* sha1.c: Likewise.
* sha256.c: Likewise.
* tiger.c: Likewise.
* twofish.c: Likewise.

* arcfour.c (_gcry_arcfour_get_info): Use GCRY_CIPHER_ARCFOUR
instead of hard-coded value `301'.

16 years ago* random.c (_gcry_register_random_progress): New.
Werner Koch [Fri, 24 Jan 2003 10:58:04 +0000 (10:58 +0000)]
* random.c (_gcry_register_random_progress): New.
(_gcry_random_progress): New.

* rndlinux.c (gather_random): Call the random progress function.

16 years ago* global.c (gcry_set_progress_handler): Register a random progress
Werner Koch [Fri, 24 Jan 2003 10:57:50 +0000 (10:57 +0000)]
* global.c (gcry_set_progress_handler): Register a random progress
handler.

16 years ago* gcrypt.texi (gcry_pk_decrypt): Described use of FLAGS
Werner Koch [Thu, 23 Jan 2003 13:06:13 +0000 (13:06 +0000)]
* gcrypt.texi (gcry_pk_decrypt): Described use of FLAGS

16 years ago* keygen.c: New.
Werner Koch [Thu, 23 Jan 2003 13:05:52 +0000 (13:05 +0000)]
* keygen.c: New.

16 years ago* gcrypt.h (GCRY_ENABLE_QUICK_RANDOM): New.
Werner Koch [Thu, 23 Jan 2003 13:05:05 +0000 (13:05 +0000)]
* gcrypt.h (GCRY_ENABLE_QUICK_RANDOM): New.
* global.c (gcry_control):

16 years ago* rsa.c (generate): New arg USE_E to request a specific public
Werner Koch [Thu, 23 Jan 2003 13:04:43 +0000 (13:04 +0000)]
* rsa.c (generate): New arg USE_E to request a specific public
exponent.
(_gcry_rsa_generate): Ditto.
* elgamal.c (_gcry_elg_generate): Must add an dummy argument
instead of USE_E.
* dsa.c (_gcry_dsa_generate): Ditto.
* pubkey.c (dummy_generate): Ditto.
(pubkey_generate): Add USE_E arg and pass it down.
(gcry_pk_genkey): Detect "rsa-use-e" parameter and pass it to generate.

* pubkey.c (sexp_to_enc): New arg RET_MODERN.
(gcry_pk_decrypt): Make use of it to return a real S-expression.
Return better error codes.
(gcry_pk_verify): Return better error codes.

16 years ago* gcrypt.h (gcry_random_add_bytes): Add QUALITY argument.
Werner Koch [Tue, 21 Jan 2003 13:52:50 +0000 (13:52 +0000)]
* gcrypt.h (gcry_random_add_bytes): Add QUALITY argument.
* random.c (gcry_random_add_bytes): Add QUALITY argument, let
function return an error code and disable its core for now.

16 years ago2003-01-21 Timo Schulz <twoaday@freakmail.de>
Timo Schulz [Tue, 21 Jan 2003 12:05:51 +0000 (12:05 +0000)]
2003-01-21  Timo Schulz  <twoaday@freakmail.de>

        * random.c (gcry_random_add_bytes): New. Function to add external
        random to the pool.

16 years ago* README (Configure options): New.
Werner Koch [Tue, 21 Jan 2003 09:06:54 +0000 (09:06 +0000)]
* README (Configure options): New.
* configure.ac (have_ld_version_script): New option
--enable-ld-version-script.

16 years ago* crc.c: New.
Werner Koch [Tue, 21 Jan 2003 09:06:38 +0000 (09:06 +0000)]
* crc.c: New.
* Makefile.am (EXTRA_PROGRAMS, EXTRA_crc_SOURCES): Add crc.c.
* md.c (gcry_md_get_algo_dlen): Add values for CRC.

16 years ago* gcrypt.texi (Hash Functions): Add CRC.
Werner Koch [Tue, 21 Jan 2003 09:06:13 +0000 (09:06 +0000)]
* gcrypt.texi (Hash Functions): Add CRC.

16 years ago* basic.c (check_digests): Add CRC.
Werner Koch [Tue, 21 Jan 2003 09:05:50 +0000 (09:05 +0000)]
* basic.c (check_digests): Add CRC.
(check_one_md): Print computed and expected values on error.

16 years ago* gcrypt.h (gcry_md_algos): Add GCRY_MD_CRC32,
Werner Koch [Tue, 21 Jan 2003 09:05:31 +0000 (09:05 +0000)]
* gcrypt.h (gcry_md_algos): Add GCRY_MD_CRC32,
GCRY_MD_CRC32_RFC1510, GCRY_MD_CRC24_RFC2440.

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.

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

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

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

17 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)

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

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

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

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

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

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

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

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