libgcrypt.git
15 years ago2003-06-14 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sat, 14 Jun 2003 15:58:17 +0000 (15:58 +0000)]
2003-06-14  Moritz Schulte  <moritz@g10code.com>

* basic.c: Replaced calls to gcry_strerror with calls to
gpg_strerror.
(check_one_md): Adjust for new gcry_md_copy API.

* tsexp.c: Likewise.
* keygen.c: Likewise.

15 years ago2003-06-11 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sat, 14 Jun 2003 15:56:19 +0000 (15:56 +0000)]
2003-06-11  Moritz Schulte  <moritz@g10code.com>

* gcrypt.h: Remove support libgpg-error special handling.

15 years ago2003-06-11 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sat, 14 Jun 2003 15:54:37 +0000 (15:54 +0000)]
2003-06-11  Moritz Schulte  <moritz@g10code.com>

* configure.ac: Remove --enable-libgpg-error flag.
Ue AC_PATH_GPG_ERROR.

15 years ago2003-06-11 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Fri, 13 Jun 2003 16:19:47 +0000 (16:19 +0000)]
2003-06-11  Moritz Schulte  <moritz@g10code.com>

* md.c (_gcry_md_init): New function.
* cipher.c (_gcry_cipher_init): New function.
* pubkey.c (_gcry_pk_init): New function.

15 years ago2003-06-11 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Fri, 13 Jun 2003 16:12:54 +0000 (16:12 +0000)]
2003-06-11  Moritz Schulte  <moritz@g10code.com>

* g10lib.h: Declare: _gcry_cipher_init, _gcry_md_init,
_gcry_pk_init.

15 years ago2003-06-11 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Fri, 13 Jun 2003 16:11:45 +0000 (16:11 +0000)]
2003-06-11  Moritz Schulte  <moritz@g10code.com>

* global.c (global_init): Call: _gcry_cipher_init, _gcry_md_init,
_gcry_pk_init.
* global.c (gcry_strerror): Remove compatibility code.

15 years agon2003-06-12 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Fri, 13 Jun 2003 15:56:01 +0000 (15:56 +0000)]
n2003-06-12  Moritz Schulte  <moritz@g10code.com>

* basic.c: Changed here and there, reorganized pubkey checks,
added DSA and ELG keys.

15 years ago* gcrypt.h (gcry_md_get_algo): Reverted to old API. This is a
Werner Koch [Fri, 13 Jun 2003 11:38:22 +0000 (11:38 +0000)]
* gcrypt.h (gcry_md_get_algo): Reverted to old API.  This is a
convenience function anyway and error checking is not approriate.
(gcry_md_is_enabled): New.
(gcry_md_is_secure): Replaced macro by function and reverted to old
API.

15 years ago* rijndael.c (do_encrypt): Hack to force correct alignment. It
Werner Koch [Wed, 11 Jun 2003 12:06:23 +0000 (12:06 +0000)]
* rijndael.c (do_encrypt): Hack to force correct alignment.  It
seems not to be not sufficient, though.  We should rework this
fucntions and remove all these ugly casts.  Let the compiler
optimize or have an assembler implementation.

15 years ago2003-06-09 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 9 Jun 2003 14:20:32 +0000 (14:20 +0000)]
2003-06-09  Moritz Schulte  <moritz@g10code.com>

* Makefile.am: Removed rules serpent, since that is not commited
yet.

15 years ago2003-06-09 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 9 Jun 2003 14:04:18 +0000 (14:04 +0000)]
2003-06-09  Moritz Schulte  <moritz@g10code.com>

* NEWS: Mention API changes and libgpg-error.

2003-05-25  Moritz Schulte  <moritz@g10code.com>

* configure.ac (USE_LIBGPG_ERROR): Implementation of the
--enable-libgpg-error switch.
Define USE_LIBGPG_ERROR in LIBGCRYPT_CONFIG_FLAGS, in case
libgpg-error is used.

15 years ago2003-06-09 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 9 Jun 2003 14:00:20 +0000 (14:00 +0000)]
2003-06-09  Moritz Schulte  <moritz@g10code.com>

* basic.c, keygen.c, pubkey.c, register.c, tsexp.c: Changed to use
new API.

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

* tsexp.c (canon_len): Adjust for new gcry_sexp_canon_len API.

15 years ago2003-06-09 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 9 Jun 2003 13:55:11 +0000 (13:55 +0000)]
2003-06-09  Moritz Schulte  <moritz@g10code.com>

* gcrypt.texi (Version Check): Changed description of
gcry_check_version; the user now *must* call the function to
initialize the library.

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

* gcrypt.texi: Change for libgpg-error.

15 years ago2003-06-08 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 9 Jun 2003 13:50:37 +0000 (13:50 +0000)]
2003-06-08  Moritz Schulte  <moritz@g10code.com>

* pubkey.c (gcry_pk_encrypt): Improve calculation for size of the
format string.

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

* arcfour.c, bithelp.h, blowfish.c, cast5.c, cipher.c, crc.c,
des.c, dsa.c, elgamal.c, md4.c, md5.c, md.c, primegen.c, pubkey.c,
rand-internal.h, random.c, random.h, rijndael.c, rmd160.c,
rmd160test.c, rmd.h, rndeged.c, rndlinux.c, rndunix.c, rndw32.c,
rsa.c, sha1.c, sha256.c, sha512.c, tiger.c, twofish.c: Edited all
preprocessor instructions to remove whitespace before the '#'.
This is not required by C89, but there are some compilers out
there that don't like it.  Replaced any occurence of the now
deprecated type names with the new ones.

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

* pubkey.c (gcry_pk_encrypt): Construct an arg_list and use
gcry_sexp_build_array instead of gcry_sexp_build.
(gcry_pk_sign): Likewise.
(gcry_pk_genkey): Likewise.

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

* dsa.c (_gcry_dsa_generate): Do not check wether the algorithm ID
does indeed belong to DSA.
(_gcry_dsa_sign): Likewise.
(_gcry_dsa_verify): Likewise.
(_gcry_dsa_get_nbits): Likewise.

* elgamal.c (_gcry_elg_check_secret_key): Do not check wether the
algorithm ID does indeed belong to ElGamal.
(_gcry_elg_encrypt): Likewise.
(_gcry_elg_decrypt): Likewise.
(_gcry_elg_sign): Likewise.
(_gcry_elg_verify): Likewise.
(_gcry_elg_get_nbits): Likewise.
(_gcry_elg_generate): Likewise.

* rsa.c (_gcry_rsa_generate): Do not check wether the algorithm ID
does indeed belong to RSA.
(_gcry_rsa_encrypt): Likewise.
(_gcry_rsa_decrypt): Likewise.
(_gcry_rsa_sign): Likewise.
(_gcry_rsa_verify): Likewise.
(_gcry_rsa_get_nbits): Likewise.

2003-05-30  Moritz Schulte  <moritz@g10code.com>

* md.c (md_get_algo): Return zero in case to algorithm is enabled.

* md.c (gcry_md_info): Adjusted for new no-errno-API.
(md_final): Likewise.
(gcry_md_get_algo): Likewise.
* pubkey.c (gcry_pk_get_keygrip): Likewise.
(gcry_pk_ctl): Likewise.
(gcry_pk_algo_info): Likewise.
* des.c (selftest): Likewise.

2003-05-29  Moritz Schulte  <moritz@g10code.com>

* md.c (md_enable): Do not forget to release module on error.
(gcry_md_open): Adjusted for new no-errno-API.
(md_open): Likewise.
(md_copy): Likewise.
(gcry_md_copy): Likewise.
(gcry_md_setkey): Likewise.
(gcry_md_algo_info): Likewise.

* cipher.c (gcry_cipher_open): Adjusted for new no-errno-API and
also fixed a locking bug.
(gcry_cipher_encrypt): Adjusted for new no-errno-API.
(gcry_cipher_decrypt): Likewise.
(gcry_cipher_ctl): Likewise.
(gcry_cipher_info): Likewise.
(gcry_cipher_algo_info): Likewise.

2003-05-28  Moritz Schulte  <moritz@g10code.com>

* md.c (md_enable): Adjusted for libgpg-error.
(gcry_md_enable): Likewise.
(gcry_digest_register_default): Likewise.
(gcry_digest_register): Likewise.
(check_digest_algo): Likewise.
(prepare_macpads): Likewise.
(gcry_md_setkey): Likewise.
(gcry_md_ctl): Likewise.
(gcry_md_get): Likewise.
(gcry_md_algo_info): Likewise.
(gcry_md_info): Likewise.
* dsa.c (_gcry_dsa_generate): Likewise.
(_gcry_dsa_check_secret_key): Likewise.
(_gcry_dsa_sign): Likewie.
(_gcry_dsa_verify): Likewise.
* twofish.c (do_twofish_setkey): Likewise.
(twofish_setkey): Likewise.
* cipher.c (gcry_cipher_register): Likewise.

2003-05-25  Moritz Schulte  <moritz@g10code.com>

* rijndael.c (do_setkey): Adjusted for libgpg-error.
(rijndael_setkey): Likewise.
* random.c (gcry_random_add_bytes): Likewise.
* elgamal.c (_gcry_elg_generate): Likewise.
(_gcry_elg_check_secret_key): Likewise.
(_gcry_elg_encrypt): Likewise.
(_gcry_elg_decrypt): Likewise.
(_gcry_elg_sign): Likewise.
(_gcry_elg_verify): Likewise.
* rsa.c (_gcry_rsa_generate): Likewise.
(_gcry_rsa_check_secret_key): Likewise.
(_gcry_rsa_encrypt): Likewise.
(_gcry_rsa_decrypt): Likewise.
(_gcry_rsa_sign): Likewise.
(_gcry_rsa_verify): Likewise.
* pubkey.c (dummy_generate, dummy_check_secret_key, dummy_encrypt,
dummy_decrypt, dummy_sign, dummy_verify): Likewise.
(gcry_pubkey_register): Likewise.
(check_pubkey_algo): Likewise.
(pubkey_generate): Likewise.
(pubkey_check_secret_key): Likewise.
(pubkey_encrypt): Likewise.
(pubkey_decrypt): Likewise.
(pubkey_sign): Likewise.
(pubkey_verify): Likewise.
(sexp_elements_extract): Likewise.
(sexp_to_key): Likewise.
(sexp_to_sig): Likewise.
(sexp_to_enc): Likewise.
(sexp_data_to_mpi): Likewise.
(gcry_pk_encrypt): Likewise.
(gcry_pk_decrypt): Likewise.
(gcry_pk_sign): Likewise.
(gcry_pk_verify): Likewise.
(gcry_pk_testkey): Likewise.
(gcry_pk_genkey): Likewise.
(gcry_pk_ctl): Likewise.
* cipher.c (dummy_setkey): Likewise.
(check_cipher_algo): Likewise.
(gcry_cipher_open): Likewise.
(cipher_setkey): Likewise.
(gcry_cipher_ctl): Likewise.
(cipher_encrypt): Likewise.
(gcry_cipher_encrypt): Likewise.
(cipher_decrypt): Likewise.
(gcry_cipher_decrypt): Likewise.
(gcry_cipher_info): Likewise.
(gcry_cipher_algo_info): Likewise.
* cast5.c (cast_setkey): Likewise.
(do_cast_setkey): Likewise.
* arcfour.c (arcfour_setkey): Likewise.
(do_arcfour_setkey): Likewise.
* blowfish.c (do_bf_setkey): Likewise.
(bf_setkey): Likewise.
* des.c (do_des_setkey): Likewise.
(do_tripledes_setkey): Likewise.

2003-05-22  Moritz Schulte  <moritz@g10code.com>

* tiger.c: Merged code ussing the U64_C macro from GnuPG.

* sha512.c: Likewise.

2003-05-17  Moritz Schulte  <moritz@g10code.com>

* pubkey.c (gcry_pk_genkey): Fix type: acquire a lock, instead of
releasing it.

2003-05-11  Moritz Schulte  <moritz@g10code.com>

* pubkey.c (gcry_pk_testkey): Call REGISTER_DEFAULT_CIPHERS.
(gcry_pk_ctl): Likewise.

15 years agov2003-06-09 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 9 Jun 2003 13:47:04 +0000 (13:47 +0000)]
v2003-06-09  Moritz Schulte  <moritz@g10code.com>

* Makefile.am: Support for libgpg-error.

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

* sexp.c (gcry_sexp_create): Expect sane error values from
gcry_sexp_canon_len instead of the `historical' values.

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

* ath.c, ath.c, ath-pth.c, ath-pthread.c, benchmark.c, cipher.h,
g10lib.h, gcrypt.h, global.c, misc.c, missing-string.c, module.c,
mpi.h, secmem.c, secmem.h, sexp.c, stdmem.c, stdmem.h, testapi.c,
types.h: Edited all preprocessor instructions to remove whitespace
before the '#'.  This is not required by C89, but there are some
compilers out there that don't like it.  Replaced any occurence of
the now deprecated type names with the new ones.

* gcrypt.h: Re-organized checking for gcc features; New macro:
_GCRY_GCC_ATTR_DEPRECATED.
Include copy of libgpg-error's gpg-error.h in order to make it
easy to build libgcrypt without needing libgpg-error.h.

(GCRY_MPI, GcryMPI, GCRY_SEXP, GcrySexp, GCRY_CIPHER_HD,
GcryCipherHd, GCRY_MD_HD, GcryMDHd): Declared deprecated.
(gcry_mpi_t, gcry_sexp_t, gcry_cipher_hd_t, gcry_md_hd_t): New
types.

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

* sexp.c (sexp_sscan): New argument: arg_list, adjusted all
callers.
(ARG_NEXT): New macro.
(sexp_sscan): Use ARG_NEXT for receiving format string arguments.
(gcry_sexp_build_array): New function.

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

* gcrypt.h: Added some comments describing the gcry_sexp_*
functions.
Include <gpg-error.h> instead of <gpg/error.h>.

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

* sexp.c (OLDPARSECODE): Removed macro...
(gcry_sexp_canon_len): ... and do not use it.

* gcrypt.h (gcry_errno): Removed declaration.

* g10lib.h (string_to_pubkey_algo, pubkey_algo_to_string,
pubkey_nbits): Removed declarations for non-existing functions.

2003-05-31  Moritz Schulte  <moritz@g10code.com>

* cipher.h (is_RSA, is_ELGAMAL): Removed macros.

* g10lib.h (set_lasterr): Removed macro.
(_gcry_set_lasterr): Removed declaration.

* gcrypt.h: Changed declarations for: gcry_pk_algo_info,
gcry_md_open, gcry_md_copy, gcry_md_algo_info, gcry_md_info,
gcry_md_get_algo, gcry_random_add_bytes.

(gcry_md_is_secure): Adjust macro for new API.

2003-05-29  Moritz Schulte  <moritz@g10code.com>

* gcrypt.h: Changed declarations for: gcry_cipher_open,
gcry_cipher_info, gcry_cipher_algo_info.
(gcry_cipher_get_algo_keylen): Adjuster for new
gcry_cipher_algo_info interface.
(gcry_cipher_get_algo_blklen): Likewise.

* global.c (gcry_errno): Removed function.
(gcry_strerror): Do not use gcry_errno.
(_gcry_set_lasterr): Removed function.
(last_ec): Removed variable.

2003-05-27  Moritz Schulte  <moritz@g10code.com>

* gcrypt.h (enum gcry_cipher_algos): Make Serpent IDs do not
conflict with OpenPGP.  Reported by Timo Schulz.

* global.c (gcry_control): Fixed name of enum list.

2003-05-25  Moritz Schulte  <moritz@g10code.com>

* cipher.h (gcry_cipher_spec): Adjust return type of `setkey' for
libgpg-error.
(gcry_pubkey_spec): Adjust return type of `generate',
`check_secret_key', `encrypt', `decrypt', `sign' and `verify' for
libgpg-error.

* sexp.c (gcry_sexp_canon_len): Adjusted for libgpg-error.
(gcry_sexp_create): Likewise.
(gcry_sexp_new): Likewise.
(sexp_sscan): Likewise.
(gcry_sexp_build): Likewise.
(gcry_sexp_sscan): Likewise.

* module.c (_gcry_module_add): Likewise.

* global.c (last_ec): Change type to gpg_error_t.
(gcry_control): Adjust for libgpg-error.
(gcry_errno): Likewise.
(gcry_strerror): Likewise.
(_gcry_set_lasterr): Likewise.
(gcry_xmalloc): Likewise.
(gcry_xrealloc): Likewise.

2003-05-22  Moritz Schulte  <moritz@g10code.com>

* types.h: Merged code from GnuPG regarding U64_C.

* missing-string.c (strsep): Removed function.

* g10lib.h: Removed declarations: strsep, strlwr.

* secmem.c (secmem_lock): New variable.
(SECMEM_LOCK, SECMEM_UNLOCK): New macros.
(_gcry_secmem_set_flags): Use SECMEM_LOCK and SECMEM_UNLOCK.
(_gcry_secmem_get_flags): Likewise.
(_gcry_secmem_init): Likewie.
(_gcry_secmem_malloc): Likewise.
(_gcry_secmem_free): Likewise.
(_gcry_secmem_malloc): Renamed to ...
(_gcry_secmem_malloc_internal): ... this.
(_gcry_secmem_malloc): New function, use SECMEM_LOCK,
SECMEM_UNLOCK, call _gcry_secmem_malloc_internal.
(_gcry_secmem_free): Renamed to ...
(_gcry_secmem_free_internal): ... this.
(_gcry_secmem_free): New function, use SECMEM_LOCK, SECMEM_UNLOCK,
call _gcry_secmem_free_internal.
(_gcry_secmem_realloc): Use SECMEM_LOCK, SECMEM_UNLOCK, call
_gcry_secmem_malloc_internal and _gcry_secmem_free_internal.
(_gcry_private_is_secure): Use SECMEM_LOCK, SECMEM_UNLOCK.
(_gcry_secmem_dump_stats): Likewise.
(_gcry_secmem_malloc_internal): Removed unused variable:
compressed.
Include "ath.h".

2003-05-21  Moritz Schulte  <moritz@g10code.com>

* gcrypt.h (GCRY_CIPHER_SERPENT128, GCRY_CIPHER_SERPENT192,
GCRY_CIPHER_SERPENT256): New symbols.

15 years ago2003-06-09 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 9 Jun 2003 13:44:12 +0000 (13:44 +0000)]
2003-06-09  Moritz Schulte  <moritz@g10code.com>

* mpicoder.c (gcry_mpi_scan): Adjust for libgpg-error.
(gcry_mpi_print): Likewise.
(gcry_mpi_aprint): Likewise.

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

* longlong.h, mpi-add.c, mpi-bit.c, mpi-cmp.c, mpi-div.c,
mpi-gcd.c, mpi-inline.c, mpi-inline.h, mpi-internal.h, mpi-inv.c,
mpi-mpow.c, mpi-mul.c, mpi-pow.c, mpi-scan.c, mpicoder.c,
mpih-div.c, mpih-mul.c, mpiutil.c, generic/mpi-asm-defs.h,
generic/mpih-add1.c, generic/mpih-lshift.c, generic/mpih-mul1.c,
generic/mpih-mul2.c, generic/mpih-mul3.c, generic/mpih-rshift.c,
generic/mpih-sub1.c, generic/udiv-w-sdiv.c, i386/syntax.h,
m68k/syntax.h, mips3/mpi-asm-defs.h, powerpc32/syntax.h: Edited
all preprocessor instructions to remove whitespace before the '#'.
This is not required by C89, but there are some compilers out
there that don't like it.  Replaced any occurence of the now
deprecated type names with the new ones.

16 years ago2003-05-27 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Tue, 27 May 2003 10:26:50 +0000 (10:26 +0000)]
2003-05-27  Moritz Schulte  <moritz@g10code.com>

* global.c (gcry_control): Fixed name of enum list.

16 years ago2003-05-22 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Tue, 27 May 2003 10:21:54 +0000 (10:21 +0000)]
2003-05-22  Moritz Schulte  <moritz@g10code.com>

* g10lib.h: Removed declarations: strsep, strlwr.

16 years ago2003-05-22 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Tue, 27 May 2003 10:19:28 +0000 (10:19 +0000)]
2003-05-22  Moritz Schulte  <moritz@g10code.com>

* missing-string.c (strsep): Removed function.

16 years ago2003-05-22 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Fri, 23 May 2003 08:41:34 +0000 (08:41 +0000)]
2003-05-22  Moritz Schulte  <moritz@g10code.com>

* gcrypt.texi (Public Key Functions): Fixed typo.

16 years ago2003-05-22 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Thu, 22 May 2003 03:20:29 +0000 (03:20 +0000)]
2003-05-22  Moritz Schulte  <moritz@g10code.com>

* configure.ac (AC_CHECK_HEADERS): Removed unused headers:
termio.h, langinfo.h.
(AC_CHECK_FUNCS): Removed unused functions: strsep, strlwr,
tcgetattr, setrlimit, strftime, nl_langinfo, sigaction,
sigprocmask, fopen64, fstat64.

16 years ago2003-05-21 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Thu, 22 May 2003 02:54:54 +0000 (02:54 +0000)]
2003-05-21  Moritz Schulte  <moritz@g10code.com>

* gcrypt.h (GCRY_CIPHER_SERPENT128, GCRY_CIPHER_SERPENT192,
GCRY_CIPHER_SERPENT256): New symbols.

16 years ago2003-05-22 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Thu, 22 May 2003 01:59:06 +0000 (01:59 +0000)]
2003-05-22  Moritz Schulte  <moritz@g10code.com>

* secmem.c (secmem_lock): New variable.
(SECMEM_LOCK, SECMEM_UNLOCK): New macros.
(_gcry_secmem_set_flags): Use SECMEM_LOCK and SECMEM_UNLOCK.
(_gcry_secmem_get_flags): Likewise.
(_gcry_secmem_init): Likewie.
(_gcry_secmem_malloc): Likewise.
(_gcry_secmem_free): Likewise.
(_gcry_secmem_malloc): Renamed to ...
(_gcry_secmem_malloc_internal): ... this.
(_gcry_secmem_malloc): New function, use SECMEM_LOCK,
SECMEM_UNLOCK, call _gcry_secmem_malloc_internal.
(_gcry_secmem_free): Renamed to ...
(_gcry_secmem_free_internal): ... this.
(_gcry_secmem_free): New function, use SECMEM_LOCK, SECMEM_UNLOCK,
call _gcry_secmem_free_internal.
(_gcry_secmem_realloc): Use SECMEM_LOCK, SECMEM_UNLOCK, call
_gcry_secmem_malloc_internal and _gcry_secmem_free_internal.
(_gcry_private_is_secure): Use SECMEM_LOCK, SECMEM_UNLOCK.
(_gcry_secmem_dump_stats): Likewise.
(_gcry_secmem_malloc_internal): Removed unused variable:
compressed.
Include "ath.h".

16 years ago2003-05-21 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Thu, 22 May 2003 01:12:06 +0000 (01:12 +0000)]
2003-05-21  Moritz Schulte  <moritz@g10code.com>

* mpiutil.c (_gcry_mpi_alloc_limb_space): Only try to allocate
memory in case the amount of bytes to allocate is non-zero.

16 years ago2003-05-19 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sun, 18 May 2003 22:27:59 +0000 (22:27 +0000)]
2003-05-19  Moritz Schulte  <moritz@g10code.com>

* gcrypt.h: Reversed changes from 2003-03-03 since they would have
been an unnecessary ABI break.

16 years ago2003-05-17 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sat, 17 May 2003 13:23:47 +0000 (13:23 +0000)]
2003-05-17  Moritz Schulte  <moritz@g10code.com>

* gcrypt.texi (Public Key Functions): Mention that only the
checking of secret keys is supported currently.

16 years ago2003-05-13 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Tue, 13 May 2003 10:10:41 +0000 (10:10 +0000)]
2003-05-13  Moritz Schulte  <moritz@g10code.com>

* secmem.c (stats_update): New function.
(BLOCK_HEAD_SIZE): New symbol.
(MB_FLAG_ACTIVE): New symbol.
(ADDR_TO_BLOCK, BLOCK_VALID): New macros.
(mb_get_next): New function.
(mb_get_prev): New function.
(mb_merge): New function.
(mb_get_new): New function.
(unused_blocks): Removed variable.
(init_pool): Initialize new memory pool.
(_gcry_secmem_malloc): Use new heap management code.
(_gcry_secmem_free): Likewise.
(_gcry_secmem_realloc): Likewise.
Renamed type MEMBLOCK to memblock_t.

16 years ago*** empty log message ***
Moritz Schulte [Tue, 13 May 2003 10:10:06 +0000 (10:10 +0000)]
*** empty log message ***

16 years ago2003-04-27 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sun, 27 Apr 2003 20:19:30 +0000 (20:19 +0000)]
2003-04-27  Moritz Schulte  <moritz@g10code.com>

* pubkey.c (gcry_pk_genkey): Release sexp after extracted data has
been used.

16 years ago2003-04-27 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sun, 27 Apr 2003 19:59:06 +0000 (19:59 +0000)]
2003-04-27  Moritz Schulte  <moritz@g10code.com>

* README: Mention the --enable-maintainer-switch.

16 years ago2003-04-27 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sun, 27 Apr 2003 19:38:57 +0000 (19:38 +0000)]
2003-04-27  Moritz Schulte  <moritz@g10code.com>

* README: Documented new configure switches.

16 years ago2003-04-27 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sun, 27 Apr 2003 19:32:21 +0000 (19:32 +0000)]
2003-04-27  Moritz Schulte  <moritz@g10code.com>

* pubkey.c: Changed the sample private key to contain the
identifier `openpgp-rsa' instead of `rsa'.

* basic.c (check_digests): Enabled/fixed some tests for TIGER.

16 years ago2003-04-27 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sun, 27 Apr 2003 19:28:28 +0000 (19:28 +0000)]
2003-04-27  Moritz Schulte  <moritz@g10code.com>

* mpiutil.c (_gcry_mpi_resize): Allocate secure memory, in case
bit zero of `flags' is set.

* mpi-add.c (gcry_mpi_sub): Simplify function; always use a
temporary variable now.

16 years ago2003-04-27 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sun, 27 Apr 2003 19:25:34 +0000 (19:25 +0000)]
2003-04-27  Moritz Schulte  <moritz@g10code.com>

* configure.ac: Merged some code from GnuPG's configure.ac for
disabling sha512/tiger in case no 64 data types are available.

16 years ago*** empty log message ***
Moritz Schulte [Sun, 27 Apr 2003 19:23:25 +0000 (19:23 +0000)]
*** empty log message ***

16 years ago2003-04-27 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sun, 27 Apr 2003 19:22:29 +0000 (19:22 +0000)]
2003-04-27  Moritz Schulte  <moritz@g10code.com>

* md.c (gcry_md_get_algo_dlen): Simplified, simply call
md_digest_length to do the job.

* des.c (do_des_setkey): Check for selftest failure not only
during initialization.
(do_tripledes_setkey): Include check for selftest failure.

16 years ago2003-04-27 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sun, 27 Apr 2003 19:18:27 +0000 (19:18 +0000)]
2003-04-27  Moritz Schulte  <moritz@g10code.com>

* pubkey.c (gcry_pubkey_register_default): New macro
`pubkey_use_dummy', use it.

* elgamal.c (elg_names): New variable.
(pubkey_spec_elg): Include elg_names.

* dsa.c (dsa_names): New variable.
(pubkey_spec_dsa): Include dsa_names.

* rsa.c (rsa_names): New variable.
(pubkey_spec_rsa): Include rsa_names.

* pubkey.c (gcry_pubkey_lookup_func_name): Compare name also with
the names listed in `sexp_names'.

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

* pubkey.c (sexp_to_key): New variables: module, pubkey.  Adjusted
to new module interface.
(sexp_to_key): Changend type of argument `retalgo' from `int *' to
`GcryModule **'.  Adjusted all callers.  Removed argument:
r_algotblidx.
(sexp_to_sig): Changend type of argument `retalgo' from `int *' to
`GcryModule **'.  Adjusted all callers.
(sexp_to_enc): Likewise.

(pubkey_get_npkey, pubkey_get_nskey, pubkey_get_nsig,
pubkey_get_nenc): Use strlen to find out the number.

* rsa.c: Adjust pubkey_spec_rsa to new internal interface.
* dsa.c: Likewise.
* elgamal.c: Likewise.

16 years ago2003-04-27 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sun, 27 Apr 2003 19:13:55 +0000 (19:13 +0000)]
2003-04-27  Moritz Schulte  <moritz@g10code.com>

* cipher.h (gcry_pubkey_spec): New member: sexp_names.

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

* cipher.h (gcry_pubkey_spec): Removed members: npkey, nskey,
nenc, nsig.
(gcry_pubkey_spec): Added members: elements_pkey, elements_skey,
elements_enc, elements_sig, elements_grip.

16 years ago2003-04-17 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Thu, 17 Apr 2003 15:07:59 +0000 (15:07 +0000)]
2003-04-17  Moritz Schulte  <moritz@g10code.com>

* Makefile.am (TESTS): Removed `register' for now.

16 years ago2003-04-17 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Thu, 17 Apr 2003 15:07:33 +0000 (15:07 +0000)]
2003-04-17  Moritz Schulte  <moritz@g10code.com>

* g10lib.h (GcryModule): New typedef.

* gcrypt.h (gcry_cipher_register, gcry_cipher_unregister,
gcry_digest_register, gcry_digest_unregister,
gcry_pubkey_register, gcry_pubkey_unregister): Function
declarations removed - for now.

* gcrypt.h (GcryModule): Declaration removed.
* gcrypt.h (GcryPubkeySpec, GcryDigestSpec, GcryCipherSpec):
Types Moved...
* cipher.h: ... here.

16 years ago2003-04-17 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Thu, 17 Apr 2003 15:05:25 +0000 (15:05 +0000)]
2003-04-17  Moritz Schulte  <moritz@g10code.com>

* pubkey.c (sexp_elements_extract): New function.
* pubkey.c (sexp_to_key): Removed variable `idx', added `err', use
sexp_elements_extract.
(sexp_to_sig): Likewise.
(sexp_to_enc): Likewise.

16 years ago2003-04-17 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Thu, 17 Apr 2003 14:48:54 +0000 (14:48 +0000)]
2003-04-17  Moritz Schulte  <moritz@g10code.com>

* pubkey.c: Terminate list correctly.

16 years ago2003-04-17 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Thu, 17 Apr 2003 13:53:49 +0000 (13:53 +0000)]
2003-04-17  Moritz Schulte  <moritz@g10code.com>

* cipher.h: Declare digest_spec_sha512 and digest_spec_384.

16 years ago2003-04-17 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Thu, 17 Apr 2003 13:52:09 +0000 (13:52 +0000)]
2003-04-17  Moritz Schulte  <moritz@g10code.com>

* basic.c (check_digests): Include checks for SHA512 and SHA384.

16 years ago2003-04-17 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Thu, 17 Apr 2003 13:50:45 +0000 (13:50 +0000)]
2003-04-17  Moritz Schulte  <moritz@g10code.com>

* configure.ac: Include support for sha512.

16 years ago2003-04-17 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Thu, 17 Apr 2003 09:50:51 +0000 (09:50 +0000)]
2003-04-17  Moritz Schulte  <moritz@g10code.com>

* AUTHORS: Updated.

16 years ago2003-04-17 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Thu, 17 Apr 2003 09:38:24 +0000 (09:38 +0000)]
2003-04-17  Moritz Schulte  <moritz@g10code.com>

* md.c: Include sha512/sha384 in digest_table.

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

* Makefile.am: Include support for sha512.c.

* sha512.c: New file, merged from GnuPG, with few modifications
for libgcrypt.

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

* acinclude.m4 (LIST_MEMBER): New macro.

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

* configure.ac: Implement command line switches: --enable-ciphers,
--enable-pubkey-ciphers and --enable-digests.
Set Automake conditionals and config.h symbols depending on the
selected ciphers, pubkey-ciphers, digests and random-modules.

* acinclude.m4 (LIST_MEMBER): New macro.

* configure.ac: Simplified, removed code for parsing
EXTRA_PROGRAMS from Makefile.am.

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

* configure.ac: Merged random-module selection code from GnuPG's
configure.ac.

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

* configure.ac: Removed code for generating contruct.c.
Remove digest modules from the static_modules list, only handle
random module selection.

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

* basic.c (check_one_md): Also test md_copy.

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

* Makefile.am (TESTS): Added register.

* register.c: New file.

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

* module.c (_gcry_module_use): New function.
* g10lib.h (_gcry_module_use): Declare function.

* libgcrypt-config.in: Support for --algorithms switch, which
prints the algorithms included in the built libgcrypt.

* global.c (gcry_set_progress_handler): Register progress
functions depending on the enabled algorithms.

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

* Makefile.am (libgcrypt_la_SOURCES): Added module.c

* module.c: New file.
(_gcry_module_add): New function.
(_gcry_module_drop): New function.
(_gcry_module_lookup): New function.
(_gcry_module_release): New function.

* g10lib.h (GcryModule): New types.
(FLAG_MODULE_DISABLED): New symbol.
Added declarations for _gcry_module_add, _gcry_module_release and
_gcry_module_lookup.

* gcrypt.h: New types: GcryPubkeySpec, GcryDigestSpec,
GcryCipherSpec.
Added declarations for: gcry_cipher_register,
gcry_cipher_unregister, gcry_digest_register,
gcry_digest_unregister, gcry_pubkey_register and
gcry_pubkey_unregister.

* cipher.h: Removed symbols: CIPHER_ALGO_NONE, CIPHER_ALGO_IDEA,
CIPHER_ALGO_3DES, CIPHER_ALGO_CAST5, CIPHER_ALGO_BLOWFISH,
CIPHER_ALGO_SAFER_SK128, CIPHER_ALGO_DES_SK, CIPHER_ALGO_TWOFISH,
CIPHER_ALGO_TWOFISH_OLD, CIPHER_ALGO_DUMMY, PUBKEY_USAGE_SIG,
PUBKEY_USAGE_ENC, DIGEST_ALGO_MD5, DIGEST_ALGO_SHA1,
DIGEST_ALGO_RMD160, DIGEST_ALGO_TIGER, PUBKEY_ALGO_RSA,
PUBKEY_ALGO_RSA_E, PUBKEY_ALGO_RSA_S, PUBKEY_ALGO_DSA,
PUBKEY_ALGO_ELGAMAL, PUBKEY_ALGO_ELGAMAL_E.

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

* benchmark.c (md_bench): Fix error message.

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.