libgcrypt.git
16 years ago2003-04-16 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Wed, 16 Apr 2003 16:21:34 +0000 (16:21 +0000)]
2003-04-16  Moritz Schulte  <moritz@g10code.com>

* rand-internal.h: Removed declarations for constructor functions.

* md.c (md_copy): Call _gcry_module_use for incrementing the usage
counter of the digest modules.

* rsa.c: Do not include "rsa.h".
* dsa.c: Do not include "dsa.h".
* elgamal.c: Do not include "elgamal.h".
* des.c: Do not include "des.h".
* cast5.c: Do not include "cast5.h".
* blowfish.c: Do not include "blowfish.h".
* arcfour.c: Do not include "arcfour.h".

* Makefile.am (libcipher_la_DEPENDENCIES): Removed.
(libcipher_la_LIBADD): Removed.
Use Automake conditionals for conditional compilation.

2003-04-13  Moritz Schulte  <moritz@g10code.com>

* cipher.c (gcry_cipher_open): Call REGISTER_DEFAULT_CIPHERS.

* md.c (gcry_md_list): New member: module.
(md_enable): New variable: module, changed use of module and
digest.
(md_enable): Initialize member: module.
(md_close): Call _gcry_module_release.

* cipher.c (gcry_cipher_open): New variable: module, changed use of
module and cipher.
(struct gcry_cipher_handle): New member: module.
(gcry_cipher_open): Initialize member: module.
(gcry_cipher_close): Call _gcry_module_release.

2003-04-09  Moritz Schulte  <moritz@g10code.com>

* cipher.c: Include "ath.h".
* md.c: Likewise.
* pubkey.c: Likewise.

* cipher.c (ciphers_registered_lock): New variable.
* md.c (digests_registered_lock): New variable.
* pubkey.c (pubkeys_registered_lock): New variable.

* rndlinux.c (gnupgext_version, func_table): Removed definitions.
(gnupgext_enum_func): Removed function.
(_gcry_rndlinux_constructor): Removed function.

* rndegd.c (gnupgext_version, func_table): Removed definitions.
(gnupgext_enum_func): Removed function.
(_gcry_rndegd_constructor): Removed function.

* rndunix.c (gnupgext_version, func_table): Removed definitions.
(gnupgext_enum_func): Removed function.
(_gcry_rndunix_constructor): Removed function.

* rndw32.c (gnupgext_version, func_table): Removed definitions.
(gnupgext_enum_func): Removed function.
(_gcry_rndw32_constructor): Removed function.

* rndegd.c (rndegd_connect_socket): Simplify code for creating the
egd socket address.
(rndegd_connect_socket): Call log_fatal use instead of
g10_log_fatal.
(egd_gather_random): Renamed to ...
(rndegd_gather_random): ... here.

2003-04-08  Moritz Schulte  <moritz@g10code.com>

* rndlinux.c: Do not include "dynload.h".
* rndunix.c: Likewise.
* rndw32.c: Likewise.

* rndegd.c (rndegd_connect_socket): Factored out from ...
(egd_gather_random): here; call it.
(egd_socket): New variable.
(egd_gather_random): Initialize fd with egd_socket, do not declare
fd static.
(do_read): Merged few changes from GnuPG. FIXME - not finished?
Do not include "dynload.h".

* rndw32.c (gather_random): Renamed to rndw32_gather_random, do
not declare static.
(gather_random_fast): Renamed to rndw32_gather_random_fast, do not
declare static.

* rndunix.c (gather_random): Renamed to rndunix_gather_random, do
not declare static.
* rndegd.c (gather_random): Renamed to rndegd_gather_random, do
not declare static.
* rndlinux.c (gather_random): Renamed to rndlinux_gather_random,
do not declare static.

2003-04-07  Moritz Schulte  <moritz@g10code.com>

* Makefile.am (libcipher_la_SOURCES): Removed construct.c.
(libcipher_la_SOURCES): Added sha1.c, sha256.c, rmd160.c, md4.c,
md5.c, tiger.c and crc.c
(EXTRA_PROGRAMS): Removed sha1, sha256, rmd160, md4, md5, tiger
and crc.  Removed definitions: EXTRA_md4_SOURCES,
EXTRA_md5_SOURCES, EXTRA_rmd160_SOURCES, EXTRA_sha1_SOURCES,
EXTRA_sha256_SOURCES, EXTRA_tiger_SOURCES and EXTRA_crc_SOURCES,
BUILT_SOURCES, DISTCLEANFILES.

* pubkey.c: Do not include "elgamal.h", "dsa.h" and "rsa.h".

* Makefile.am (libcipher_la_SOURCES): Removed rsa.h, elgamal.h,
dsa.h, des.h, cast5.h, arcfour.h and blowfish.h.

* rsa.h: Removed file.
* elgamal.h: Removed file.
* dsa.h: Removed file.
* des.h: Removed file.
* cast5.h: Removed file.
* arcfour.h: Removed file.
* blowfish.h: Removed file.

* Makefile.am (libcipher_la_SOURCES): Removed dynload.c and
dynload.h.

* rsa.c (pubkey_spec_rsa): New variable.
* dsa.c (pubkey_spec_rsa): New variable.
* elgamal.c (pubkey_spec_elg): New variable.

* rsa.c (_gcry_rsa_get_info): Removed function.
* elgamal.c (_gcry_elg_get_info): Removed function.
* dsa.c (_gcry_dsa_get_info): Removed function.

* tiger.c (tiger_get_info): Removed function.
(gnupgext_version, func_table): Removed definitions.
(gnupgext_enum_func): Removed function.
(_gcry_tiger_constructor): Removed function.

* sha1.c (sha1_get_info): Removed function.
(gnupgext_version, func_table): Removed definitions.
(gnupgext_enum_func): Removed function.
(_gcry_sha1_constructor): Removed function.

* sha256.c (sha256_get_info): Removed function.
(gnupgext_version, func_table): Removed definitions.
(gnupgext_enum_func): Removed function.
(_gcry_sha256_constructor): Removed function.

* rmd160.c (rmd160_get_info): Removed function.
(gnupgext_version, func_table): Removed definitions.
(gnupgext_enum_func): Removed function.
(_gcry_rmd160_constructor): Removed function.

* md5.c (md5_get_info): Removed function.
(gnupgext_version, func_table): Removed definitions.
(gnupgext_enum_func): Removed function.
(_gcry_md5_constructor): Removed function.

* md4.c (md4_get_info): Removed function.
(gnupgext_version, func_table): Removed definitions.
(gnupgext_enum_func): Removed function.
(_gcry_md4_constructor): Removed function.

* crc.c (crc_get_info): Removed function.

* arcfour.c (do_arcfour_setkey): Changed type of context argument
to `void *', added local variable for cast, adjusted callers.
(arcfour_setkey): Likewise.
(encrypt_stream): Likewise.
* cast5.c (cast_setkey): Likewise.
(encrypt_block): Likewise.
* rijndael.c (rijndael_setkey): Likewise.
(rijndael_encrypt): Likewise.
(rijndael_decrypt): Likewise.
* twofish.c (twofish_setkey): Likewise.
(twofish_encrypt): Likewise.
(twofish_decrypt): Likewise.
* des.c (do_des_setkey): Likewise.
(do_des_encrypt): Likewise.
(do_des_encrypt): Likewise.
(do_tripledes_encrypt): Likewise.
(do_tripledes_encrypt): Likewise.
* blowfish.c (bf_setkey: Likewise.
(encrypt_block): Likewise.
(decrypt_block): Likewise.

* arcfour.c (encrypt_stream): Likewise.

* rijndael.c (gnupgext_version, func_table): Removed definitions.
(gnupgext_enum_func) Removed function.

* twofish.c (gnupgext_version, func_table): Removed definitions.
(gnupgext_enum_func) Removed function.

* cast5.c (CIPHER_ALGO_CAST5): Removed.

* blowfish.c (FNCCAST_SETKEY, FNCCAST_CRYPT): Removed macros.
(CIPHER_ALGO_BLOWFISH): Removed symbol.
* cast5.c (FNCCAST_SETKEY, FNCCAST_CRYPT): Likewise.
* des.c (selftest_failed): Removed.
(initialized): New variable.
(do_des_setkey): Run selftest, if not yet done.
(FNCCAST_SETKEY, FNCCAST_CRYPT): Removed macros.

* arcfour.c (_gcry_arcfour_get_info): Removed function.
* blowfish.c (_gcry_blowfish_get_info): Removed function.
* cast5.c (_gcry_cast5_get_info): Removed function.
* des.c (_gcry_des_get_info): Removed function.
* rijndael.c (_gcry_rijndael_get_info): Removed function.
* twofish.c (_gcry_twofish_get_info): Removed function.

* arcfour.c (cipher_spec_arcfour): New variable.
* twofish.c (cipher_spec_twofish, cipher_spec_twofish128): New
variables.
* rijndael.c (cipher_spec_aes, cipher_spec_aes192,
cipher_spec256): New variables.
* des.c (cipher_spec_des, cipher_spec_tripledes): New variables.
* cast5.c (cipher_spec_cast5): New variable.
* blowfish.c (cipher_spec_blowfish): Likewise.

* twofish.c: Do not include "dynload.h".
* rijndael.c: Likewise.
* des.c: Likewise.
* cast5.c: Likewise.
* blowfish.c: Likewise.
* cipher.c: Likewise.
* crc.c: Likewise.
* md4.c: Likewise.
* md5.c: Likewise.
* md.c: Likewise.
* pubkey.c: Likewise.
* rijndael.c: Likewise.
* sha1.c: Likewise.
* sha256.c: Likewise.

* arcfour.c: Include "cipher.h".
* twofish.c: Likewise.
* rijndael.c: Likewise.
* des.c: Likewise.
* cast5.c: Likewise.
* blowfish.c: Likewise.

* twofish.c (twofish_setkey): Declared argument `key' const.
(twofish_encrypt): Declared argument `inbuf' const.
(twofish_decrypt): Likewise.

* rijndael.c (rijndael_setkey): Declared argument `key' const.
(rijndael_encrypt): Declared argument `inbuf' const.
(rijndael_decrypt): Likewise.

* des.c (do_des_setkey): Declared argument `key' const.
(do_tripledes_setkey): Likewise.
(do_des_encrypt): Declared argument `inbuf' const.
(do_des_decrypt): Likewise.
(do_tripledes_encrypt): Likewise.
(do_tripledes_decrypt): Likewise.

* cast5.c (encrypt_block): Declared argument `inbuf' const.
(decrypt_block): Likewise.
(cast_setkey): Declared argument `key' const.

* blowfish.c (do_bf_setkey): Declared argument `key' const.
(encrypt_block): Declared argument `inbuf' const.
(encrypt_block): Likewise.

* cipher.c: Remove CIPHER_ALGO_DUMMY related code.
Removed struct cipher_table_s.
Changed definition of cipher_table.
Removed definition of disabled_algos.
(ciphers_registered, default_ciphers_registered): New variables.
(REGISTER_DEFAULT_CIPHERS): New macro.
(dummy_setkey): Declared argument `key' const.
(dummy_encrypt_block): Declared argument `inbuf' const.
(dummy_encrypt_block): Likewise.
(dummy_encrypt_stream): Likewise.
(dummy_encrypt_stream): Likewise.
(dummy_setkey): Use `unsigned char' instead of `byte'.
(dummy_encrypt_block): Likewise.
(dummy_decrypt_block): Likewise.
(dummy_encrypt_stream): Likewise.
(dummy_decrypt_stream): Likewise.
(gcry_cipher_register_default): New function.
(gcry_cipher_lookup_func_id): New function.
(gcry_cipher_lookup_func_name): New function.
(gcry_cipher_lookup_id): New function.
(gcry_cipher_lookup_name): New function.
(gcry_cipher_id_new): New function.
(gcry_cipher_register): New function.
(gcry_cipher_unregister): New function.
(setup_cipher_table): Removed function.
(load_cipher_modules): Removed function.
(gcry_cipher_map_name): Adjusted to use new module management.
(cipher_algo_to_string): Likewise.
(disable_cipher_algo): Likewise.
(check_cipher_algo): Likewise.
(cipher_get_keylen): Likewise.
(cipher_get_blocksize): Likewise.
(gcry_cipher_open): Likewise.
(struct gcry_cipher_handle): Replaced members algo, algo_index,
blocksize, setkey, encrypt, decrypt, stencrypt, stdecrypt with one
member: cipher.
(gcry_cipher_open): Adjusted code for new handle structure.
(cipher_setkey): Likewise.
(cipher_setiv): Likewise.
(cipher_reset): Likewise.
(do_ecb_encrypt): Likewise.
(do_ecb_decrypt): Likewise.
(do_cbc_encrypt): Likewise.
(do_cbc_decrypt): Likewise.
(do_cfb_encrypt): Likewise.
(do_cfb_decrypt): Likewise.
(do_ctr_encrypt): Likewise.
(cipher_encrypt): Likewise.
(gcry_cipher_encrypt): Likewise.
(cipher_decrypt): Likewise.
(gcry_cipher_decrypt): Likewise.
(cipher_sync): Likewise.
(gcry_cipher_ctl): Likewise.

* pubkey.c: Removed struct pubkey_table_s.
Changed definition of pubkey_table.
Removed definition of disabled_algos.
(pubkeys_registered, default_pubkeys_registered): New variables.
(REGISTER_DEFAULT_PUBKEYS): New macro.
(setup_pubkey_table): Removed function.
(load_pubkey_modules): Removed function.
(gcry_pubkey_register_default): New function.
(gcry_pubkey_lookup_func_id): New function.
(gcry_pubkey_lookup_func_name): New function.
(gcry_pubkey_lookup_id): New function.
(gcry_pubkey_lookup_name): New function.
(gcry_pubkey_id_new): New function.
(gcry_pubkey_register): New function.
(gcry_pubkey_unregister): New function.
(gcry_pk_map_name): Adjusted to use new module management.
(gcry_pk_algo_name): Likewise.
(disable_pubkey_algo): Likewise.
(check_pubkey_algo): Likewise.
(pubkey_get_npkey): Likewise.
(pubkey_get_nskey): Likewise.
(pubkey_get_nsig): Likewise.
(pubkey_get_nenc): Likewise.
(pubkey_generate): Likewise.
(pubkey_check_secret_key): Likewise.
(pubkey_encrypt): Likewise.
(pubkey_decrypt): Likewise.
(pubkey_sign): Likewise.
(pubkey_verify): Likewise.
(gcry_pk_get_nbits): Likewise.
(gcry_pk_algo_info): Likewise.

* md.c: Removed struct md_digest_list_s.
(digest_list): Changed definition.
(digests_registered, default_digests_registered): New variables.
(REGISTER_DEFAULT_DIGESTS): New macro.
(new_list_item): Removed function.
(setup_md_table): Removed function.
(load_digest_module): Removed function.
(gcry_digest_register_default): New function.
(gcry_digest_lookup_func_id): New function.
(gcry_digest_lookup_func_name): New function.
(gcry_digest_lookup_id): New function.
(gcry_digest_lookup_name): New function.
(gcry_digest_id_new): New function.
(gcry_digest_register): New function.
(gcry_digest_unregister): New function.
(GcryDigestEntry): New type.
(struct gcry_md_context): Adjusted type of `list'.
(gcry_md_map_name): Adjusted to use new module management.
(digest_algo_to_string): Likewise.
(check_digest_algo): Likewise.
(md_enable): Likewise.
(md_digest_length): Likewise.
(md_asn_oid): Likewise.

2003-04-07  Moritz Schulte  <moritz@g10code.com>

* pubkey.c: Replaced PUBKEY_ALGO_DSA with GCRY_PK_DSA,
PUBKEY_ALGO_RSA with GCRY_PK_RSA and PUBKEY_ALGO_ELGAMAL with
GCRY_PK_ELG.

* dsa.c: Replaced PUBKEY_ALGO_DSA with GCRY_PK_DSA.

2003-04-01  Moritz Schulte  <moritz@g10code.com>

* des.c: Removed checks for GCRY_CIPHER_3DES and GCRY_CIPHER_DES.

16 years ago* longlong.h (umul_ppmm): Support SH3 and SH4. Thanks to
Werner Koch [Tue, 15 Apr 2003 12:48:04 +0000 (12:48 +0000)]
* longlong.h (umul_ppmm): Support SH3 and SH4.  Thanks to
kazuya.s@jp.yokogawa.com.

16 years ago* mpicoder.c (gcry_mpi_print): Fixed testing against possible
Werner Koch [Wed, 2 Apr 2003 08:40:21 +0000 (08:40 +0000)]
* mpicoder.c (gcry_mpi_print): Fixed testing against possible
uninitialized LEN.  Valgrinded by Nikos Mavroyanopoulos.

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

* benchmark.c (cipher_bench): Added CTR mode.

16 years agoUpdated.
Moritz Schulte [Mon, 31 Mar 2003 14:19:55 +0000 (14:19 +0000)]
Updated.

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

* basic.c (check_one_cipher): New.  Test CTR.
(main): Call it.
(check_ciphers): Check CTR mode.

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.

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.

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.