summaryrefslogtreecommitdiff
path: root/mpi
AgeCommit message (Collapse)AuthorFilesLines
2007-04-292007-04-28 Marcus Brinkmann <marcus@g10code.de>Marcus Brinkmann13-1/+1611
* configure.ac: Allow to specify additional search directories with --enable-mpi-path. mpi/ 2007-04-28 Marcus Brinkmann <marcus@g10code.de> * config.links: Add additional assembler search directories.
2007-04-16./Werner Koch1-0/+20
* configure.ac: Check for sysconf. * acinclude.m4 (GNUPG_CHECK_MLOCK): Try to use sysconf to get the page size and use getpagesize only then if available. cipher/ * ecc.c (_gcry_ecc_generate): Renamed DUMMY to CURVE and use it. src/ * secmem.c (init_pool): Use sysconf() if available to determine page size.
2007-03-28Rewrote the ECDSA implementation.Werner Koch3-1/+696
2007-03-23Did some performance experiments and added code for Barrett reduction.Werner Koch6-14/+210
2007-03-22Experimental support for ECDSA.Werner Koch3-2/+33
This is not ready but the key generation and the self-test works.
2007-03-13Some RNG cleanups.Werner Koch1-1/+0
2007-03-13Add support for ADM64. From Werner Dittmann.Werner Koch10-0/+539
Cosmetic changes.
2007-02-23Ported last changes from 1.2.Werner Koch3-6/+15
Updated some tests. Support for passphrase generated Elgamal keys.
2007-02-21A lot of cleanups as well as minor API changes.Werner Koch3-5/+14
Ported some changes from 1.2 to here.
2006-12-18* rndlinux.c (set_cloexec_flag): New.Werner Koch2-5/+20
(open_device): Set close-on-exit flags. Suggested by Max Kellermann. Fixes Debian#403613. Cleaned up last Makefile changes.
2006-11-052006-11-05 Moritz Schulte <moritz@g10code.com>Moritz Schulte2-1/+6
* Makefile.am (AM_CFLAGS): Added -I$(top_builddir)/src so that the new gcrypt.h is used, not the one installed in the system. 2006-11-05 Moritz Schulte <moritz@g10code.com> * Makefile.am (AM_CFLAGS): Added -I$(top_builddir)/src so that the new gcrypt.h is used, not the one installed in the system. 2006-11-05 Moritz Schulte <moritz@g10code.com> * Makefile.am (AM_CFLAGS): Added -I$(top_builddir)/src so that the new gcrypt.h is used, not the one installed in the system.
2006-10-23Applied two simple patches.Werner Koch2-12/+18
2006-08-28Fixed a problem with shifting MPIs by 0.Werner Koch2-1/+16
Add a way to check whether the RNG is in fake mode.
2006-08-04Fixed gcry_mpi_set_bit and enhanced mpi_rshift.Werner Koch3-42/+118
Cleaned up andom-daemon initialization.
2006-07-26Collected changes - see ChangeLogsWerner Koch5-53/+72
2005-10-09mpi/ChangeLog:Moritz Schulte3-37/+59
2005-10-09 Moritz Schulte <moritz@g10code.com> * mpi-cmp.c (gcry_mpi_cmp_ui): Rewritten; correctly handle case of zero limbs in U.
2005-04-272005-04-27 Moritz Schulte <moritz@g10code.com>Moritz Schulte2-4/+9
* mpiutil.c (gcry_mpi_randomize): Store random data in secure memory if the given MPI is secure - not the other way around (argl).
2005-04-22ChangeLog:Moritz Schulte6-2/+26
2005-04-23 Moritz Schulte <moritz@g10code.com> * acinclude.m4 (TYPE_SOCKLEN_T): New type definition test; provided by Albert Chin. * configure.ac: Don't use $(CMD) as it's not portable; use `CMD` nstead. Simpler -lnsl/-lsocket test. Use TYPE_SOCKLEN_T test. Don't forget to set `random_modules' correctly. 2005-04-22 Moritz Schulte <moritz@g10code.com> * configure.ac: Added support for pkgconfig; provided by Albert Chin. cipher/ChangeLog: 2005-04-12 Moritz Schulte <moritz@g10code.com> * ac.c (_gcry_ac_io_write, _gcry_ac_io_read): Initialize err to make the compiler happy. Always use errno, now that gcry_malloc() is guaranteed to set errno on failure. (_gcry_ac_data_to_sexp): Don't forget to goto out after error in loop. (_gcry_ac_data_to_sexp): Remove unused variable: mpi_list; (_gcry_ac_data_to_sexp): Always deallocate sexp_buffer. (_gcry_ac_data_from_sexp): Don't forget to initialize data_set_new. (_gcry_ac_data_from_sexp): Handle special case, which is necessary, since gcry_sexp_nth() does not distinguish between "element does not exist" and "element is the empty list". (_gcry_ac_io_init_va): Use assert to make sure that mode and type are correct. Use gcry_error_t types where gcry_err_code_t types have been used before. mpi/ChangeLog: 2005-04-23 Moritz Schulte <moritz@g10code.com> * Makefile.am: Don't assume the compiler will pre-process the .S files. Some compilers, like those from HP and IBM, don't do this. So, we use the same solution gnupg-1.4.0 does. Preprocess first and then compile. * hppa1.1/mpih-mul3.S: Add "level 1.1" directive to disable warning about using PA-RISC1.1 opcodes. * hppa1.1/mpih-mul2.S: Likewise. * hppa1.1/mpih-mul1.S: Likewise. * hppa1.1/udiv-qrnnd.S: Likewise. src/ChangeLog: 2005-04-22 Moritz Schulte <moritz@g10code.com> * Makefile.am (pkgconfigdir, pkgconfig_DATA): New; support for pkgconfig provided by Albert Chin. * libgcrypt.pc.in (Cflags): New file. 2005-04-16 Moritz Schulte <moritz@g10code.com> * g10lib.h (_gcry_ac_init): Declare. * global.c (global_init): Call _gcry_ac_init; don't forget to set err. tests/ChangeLog: 2005-04-22 Moritz Schulte <moritz@g10code.com> * tsexp.c: Include <config.h> in case HAVE_CONFIG_H is defined; thanks to Albert Chin. * testapi.c: Likewise. * register.c: Likewise. * pubkey.c: Likewise. * prime.c: Likewise. * pkbench.c: Likewise. * keygen.c: Likewise. * benchmark.c: Likewise. * basic.c: Likewise. * ac-schemes.c: Likewise. * ac-data.c: Likewise. * ac.c: Likewise. 2005-04-16 Moritz Schulte <moritz@g10code.com> * ac-data.c (check_run): Include new test.
2005-02-22See ChangeLogsWerner Koch2-7/+13
2005-02-162005-02-16 Moritz Schulte <moritz@g10code.com>Moritz Schulte2-10/+44
* mpiutil.c (_gcry_mpi_alloc_limb_space): Rewritten, fixed memory corruption.
2004-12-16(mpi_optional_modules): Move entry for powerpc64Werner Koch2-3/+10
before generic powerpc. Suggested by Rafael ��vila de Esp��ndola.
2004-03-03* hppa1.1/udiv-qrnnd.S: Alignment fix from Lamont Jones forWerner Koch5-41/+139
Debian. Taken from gnupg-1.3. * longlong.h: Added PowerPC 64 bit code from GPM-4.1.2 but didn't enable it yet. Some whitespace changes in HPPA to fix assembler problems on HP-UX. From gnupg 1.3 * mpiutil.c (_gcry_mpi_alloc_limb_space): Better allocate something even if NLIMBS is passed as 0. * config.links: Updated system list to match gnupg 1.3.
2003-12-19* mpi-internal.h [M_DEBUG]: Removed this unused code.Werner Koch7-82/+119
(struct karatsuba_ctx): Added TSPACE_NLIMBS and TP_NLIMBS. * mpiutil.c (_gcry_mpi_free_limb_space): Add arg NLIMBS and wipe out the memory. Changed all callers. * mpih-mul.c (_gcry_mpih_mul_karatsuba_case): Keep track of allocated limbs. * mpi-div.c (_gcry_mpi_tdiv_qr): Keep track of allocated limbs. * mpi-mul.c (gcry_mpi_mul): Ditto. * mpi-pow.c (gcry_mpi_powm): Ditto. * mpiutil.c (gcry_mpi_randomize): Use gcry_create_nonce if WEAK random has been requested.
2003-12-19Added Manifest files.Werner Koch35-143/+515
2003-12-19(gcry_mpi_randomize): Use gcry_create_nonce if WEAKWerner Koch2-5/+21
random has been requested.
2003-12-04added a #warningWerner Koch1-0/+1
2003-10-31* acinclude.m4 (AC_CHECK_PTH): Added.Werner Koch4-11/+18
* configure.ac: Use it here instead of the generic lib test. Bumbed LT vesion to C9/A2/R0. * dsa.c (verify): s/exp/ex/ due to shadowing of a builtin. * elgamal.c (verify): Ditto. * ac.c (gcry_ac_data_get_index): s/index/idx/ (gcry_ac_data_copy_internal): Remove the cast in _gcry_malloc. (gcry_ac_data_add): Must use gcry_realloc instead of realloc. * pubkey.c (sexp_elements_extract): s/index/idx/ as tribute to the forehackers. (gcry_pk_encrypt): Removed shadowed definition of I. Reordered arguments to malloc for clarity. (gcry_pk_sign, gcry_pk_genkey): Ditto. * primegen.c (prime_generate_internal): s/random/randomlevel/. * i386/mpih-rshift.S, i386/mpih-lshift.S: Use %dl and not %edx for testb; this avoids an assembler warning. * mpi-pow.c (gcry_mpi_powm): s/exp/expo/ to avoid shadowing warning. * autogen.sh: Allow to override the tool name. Do not run libtoolize. Update required version numbers. * libgcrypt.vers (_gcry_generate_elg_prime): Removed this symbol; gnutls does not need it anymore. * secmem.c (mb_get_new): s/pool/block/ due to global pool. * misc.c (gcry_set_log_handler): s/logf/f/ to avoid shadowing warning against a builtin. * ath-pth-compat.c: cast pth_connect to get rid of the const prototype. * basic.c (check_aes128_cbc_cts_cipher): Make it a prototype * ac.c (check_run): Comment unused variable.
2003-08-272003-08-19 Marcus Brinkmann <marcus@g10code.de>Moritz Schulte2-11/+18
* Makefile.am (SUFFIXES): New variable. (.S.o, .S.lo, .S.obj): Rewritten.
2003-07-30(Maintainer): Assigned Moritz as Maintainer.Werner Koch1-1/+1
2003-07-302003-07-30 Moritz Schulte <moritz@g10code.com>Moritz Schulte3-3/+8
* longlong.h (__clz_tab): Renamed to _gcry_clz_tab. * mpi-bit.c (__clz_tab): Likewise.
2003-07-28Minor char * to unsigned char* changes. The general rule is to useWerner Koch2-5/+8
unsigned char * for memory buffers which are not Nul-terminated
2003-07-27* gcrypt.h (gcry_mpi_scan, gcry_mpi_print): API change.Werner Koch2-86/+102
(gcry_mpi_dump): New. * mpicoder.c (gcry_mpi_scan): New argument BUFLEN to replace the use of the intial value of NBYTES. (gcry_mpi_print): Likewise. (gcry_mpi_dump): New. (_gcry_log_mpidump): Make use of gcry_mpi_dump. (mpi_print): Removed. (gcry_mpi_scan): Allocated mpi in secure memory when required. * gcrypt.texi: Adjusted description of gcry_mpi_scan and gcry_mpi_dump. Add gcry_mpi_dump.
2003-07-18* md.c (gcry_md_hash_buffer): Convert ERR to gpg_error_t inWerner Koch1-1/+0
gpg_strerror. Solved a few conflicts.
2003-07-142003-07-14 Moritz Schulte <moritz@g10code.com>Moritz Schulte2-31/+35
* mpicoder.c: Used gcry_err* wrappers for libgpg-error symbols.
2003-06-172003-06-16 Moritz Schulte <moritz@g10code.com>Moritz Schulte15-110/+127
* mpi-add.c: Replace last occurences of old type names with newer names (i.e. replace MPI with gcry_mpi_t). * mpi-bit.c: Likewise. * mpi-cmp.c: Likewise. * mpi-div.c: Likewise. * mpi-gcd.c: Likewise. * mpi-internal.h: Likewise. * mpi-inv.c: Likewise. * mpi-mpow.c: Likewise. * mpi-mul.c: Likewise. * mpi-pow.c: Likewise. * mpi-scan.c: Likewise. * mpicoder.c: Likewise. * mpiutil.c: Likewise.
2003-06-092003-06-09 Moritz Schulte <moritz@g10code.com>Moritz Schulte9-93/+112
* 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.
2003-05-222003-05-21 Moritz Schulte <moritz@g10code.com>Moritz Schulte2-2/+8
* mpiutil.c (_gcry_mpi_alloc_limb_space): Only try to allocate memory in case the amount of bytes to allocate is non-zero.
2003-04-272003-04-27 Moritz Schulte <moritz@g10code.com>Moritz Schulte3-27/+30
* 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.
2003-04-15* longlong.h (umul_ppmm): Support SH3 and SH4. Thanks toWerner Koch2-2/+8
kazuya.s@jp.yokogawa.com.
2003-04-02* mpicoder.c (gcry_mpi_print): Fixed testing against possibleWerner Koch2-5/+10
uninitialized LEN. Valgrinded by Nikos Mavroyanopoulos.
2003-01-15* longlong.h: Removed some spaces between backslashes and newlines.Werner Koch3-4/+8
2002-09-20* mpi-mul.c (gcry_mpi_mul_2exp): New. This was declared inWerner Koch2-0/+10
gcrypt.h but only implemented as internal function. Noted by Timo but a few minutes to late for today's release.
2002-09-20* Makefile.am (DISTCLEANFILES): Include mpi-asm-defs.hWerner Koch2-1/+6
2002-09-18* Makefile.am (.S.lo): Pass -DPIC. i386, PPC and Sparc codeWerner Koch2-1/+6
require it. It worked for me because I am using the i586 code.
2002-08-23* Makefile.am (.S.lo): Fixed for libtool build with --disable-shared.Werner Koch2-4/+10
2002-07-25* longlong.h: Replaced all K&R multiline strings by ISO ones forWerner Koch2-224/+237
the sake of modern compilers. Suggested by Marco Parrone.
2002-06-25* mpiutil.c (gcry_mpi_swap): New.Werner Koch5-3/+63
* mpi-div.c (gcry_mpi_div): New. (gcry_mpi_mod): New. * mpi-inv.c (gcry_mpi_invm): New. * mpicoder.c (do_get_buffer): Make sure that we allocate at least one byte.
2002-06-12* hppa1.1/udiv-qrnnd.S: Changes for PIC by Randolph Chung.Werner Koch2-6/+12
* rsa.c (generate): Use e = 65537 for now.
2002-05-16Fixed quoting errorWerner Koch1-1/+1
2002-05-15* config.links: Chnage the way the mpi modules are determined.Werner Koch3-52/+169
* Makefile.am: Revamped to better handle modules * configure.ac: Adjusted for new MPI module stuff.