summaryrefslogtreecommitdiff
path: root/mpi
Commit message (Collapse)AuthorAgeFilesLines
* Nuked almost all trailing whitespace.post-nuke-of-trailing-wsWerner Koch2011-02-0419-161/+137
| | | | Check and install the standard git pre-commit hook.
* Handle opaque MPIs in gcry_mpi_cmpWerner Koch2011-02-012-21/+42
|
* Applied spelling fixes and more verbose test diagnositcs by Brad Hards.Werner Koch2010-04-124-3/+7
|
* Fix for gcc 4.4 on mipsWerner Koch2010-02-222-2/+24
|
* Disable all sparc64 asm stuffWerner Koch2009-12-092-10/+13
|
* Fix reading of a zero MPIs.Werner Koch2009-05-262-5/+5
|
* Portability fixes.Werner Koch2009-02-163-1/+8
|
* Fixed error cases in mpicoder.Werner Koch2008-12-052-28/+72
| | | | | Documentation cleanups.
* Re-indent source4.Werner Koch2008-12-042-404/+476
|
* Fix last moi-pow.c change.Werner Koch2008-12-032-3/+12
| | | | | Add some code to allow standalone builds of some test programs.
* Fix bug 977.Werner Koch2008-12-022-50/+40
|
* Re-indented some code.Werner Koch2008-12-022-246/+283
|
* Overhauled the keygrip computation.Werner Koch2008-08-291-2/+2
|
* Replace assert calls by a new gcry_assert at most places.Werner Koch2008-08-207-18/+13
|
* Implemented gcry_mpi_lshift.Werner Koch2008-08-202-32/+72
| | | | | Reordered some code in mpi-bit.c
* Adding gcry_mpi_lshift.libgcrypt-1.4.2rc1Werner Koch2008-08-192-0/+14
| | | | | Preparing a release candidate.
* Reorganizatiosn to support the visibility attribute.Werner Koch2007-10-315-104/+54
| | | | | | This can be improved by using fucntion aliases instead of wrapper functions.
* Fixed host/target usage.Werner Koch2007-10-292-3/+8
|
* Preparing a releaselibgcrypt-1.3.1Werner Koch2007-10-262-2/+9
|
* 2007-05-09 Marcus Brinkmann <marcus@g10code.de>Marcus Brinkmann2007-05-093-127/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac (ac_cv_mpi_config_done): Unused variable removed. (ac_cv_mpi_mod_list, MPI_MOD_LIST_LO, MPI_MOD_LIST_O): Removed. (MPI_MOD_ASM_MPIH_ADD1, MPI_MOD_ASM_MPIH_SUB1, MPI_MOD_ASM_MPIH_MUL1, MPI_MOD_ASM_MPIH_MUL2, MPI_MOD_ASM_MPIH_MUL3, MPI_MOD_ASM_MPIH_LSHIFT, MPI_MOD_ASM_MPIH_RSHIFT, MPI_MOD_ASM_MPIH_UDIV, MPI_MOD_ASM_MPIH_UDIV_QRNND, MPI_MOD_C_MPIH_ADD1, MPI_MOD_C_MPIH_SUB1, MPI_MOD_C_MPIH_MUL1, MPI_MOD_C_MPIH_MUL2, MPI_MOD_C_MPIH_MUL3, MPI_MOD_C_MPIH_LSHIFT, MPI_MOD_C_MPIH_RSHIFT, MPI_MOD_C_MPIH_UDIV, MPI_MOD_C_MPIH_UDIV_QRNND): New automake variables. mpi/ 2007-05-09 Marcus Brinkmann <marcus@g10code.de> * config.links: Rename assembler file links by suffixing "-asm". * Makefile.am (CCASCOMPILE, LTCCASCOMPILE, CLEANFILES, libmpi_la_LIBADD, libmpi_la_DEPENDENCIES, SUFFIXES, .S.o, .S.obj, .S.lo): Removed variables and targets. (mpih_add1, mpih_sub1, mpih_mul1, mpih_mul2, mpih_mul3, mpih_lshift, mpih_rshift, mpih_udiv, mpih_udiv_qrnnd, nodist_libmpi_la_SOURCES): New variables. (DISTCLEANFILES): Rename assembler file links by suffixing "-asm". Add variants for C file links.
* Post release updates.Werner Koch2007-05-042-2/+6
| | | | | Allow colons as delimiters for --enable-mpi-path.
* Minor fixes for W32Werner Koch2007-05-032-9/+4
|
* ./Werner Koch2007-04-304-2/+24
| | | | | | | | | | | | | | | | | | | | | * README.apichanges: Move to doc/. * Makefile.am (EXTRA_DIST): Removed that file. doc/ * HACKING: New. Two items by Marcus. * README.apichanges: Move from .. to here. * Makefile.am (EXTRA_DIST): Add new files. mpi/ * config.links: Create a file mod-source-info.h. * Makefile.am (DISTCLEANFILES): Add that file. * mpiutil.c (_gcry_mpi_get_hw_config): New. src/ * global.c (gcry_control): New. * gcrypt.h.in (GCRYCTL_DUMP_CONFIG): New. tests/ * version.c: New. * Makefile.am (TESTS): Add version.
* 2007-04-28 Marcus Brinkmann <marcus@g10code.de>Marcus Brinkmann2007-04-2913-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.
* ./Werner Koch2007-04-161-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.
* Rewrote the ECDSA implementation.Werner Koch2007-03-283-1/+696
|
* Did some performance experiments and added code for Barrett reduction.Werner Koch2007-03-236-14/+210
|
* Experimental support for ECDSA.Werner Koch2007-03-223-2/+33
| | | | | This is not ready but the key generation and the self-test works.
* Some RNG cleanups.Werner Koch2007-03-131-1/+0
|
* Add support for ADM64. From Werner Dittmann.Werner Koch2007-03-1310-0/+539
| | | | | Cosmetic changes.
* Ported last changes from 1.2.Werner Koch2007-02-233-6/+15
| | | | | | Updated some tests. Support for passphrase generated Elgamal keys.
* A lot of cleanups as well as minor API changes.Werner Koch2007-02-213-5/+14
| | | | | Ported some changes from 1.2 to here.
* * rndlinux.c (set_cloexec_flag): New.Werner Koch2006-12-182-5/+20
| | | | | | | | (open_device): Set close-on-exit flags. Suggested by Max Kellermann. Fixes Debian#403613. Cleaned up last Makefile changes.
* 2006-11-05 Moritz Schulte <moritz@g10code.com>Moritz Schulte2006-11-052-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.
* Applied two simple patches.Werner Koch2006-10-232-12/+18
|
* Fixed a problem with shifting MPIs by 0.Werner Koch2006-08-282-1/+16
| | | | | Add a way to check whether the RNG is in fake mode.
* Fixed gcry_mpi_set_bit and enhanced mpi_rshift.Werner Koch2006-08-043-42/+118
| | | | | Cleaned up andom-daemon initialization.
* Collected changes - see ChangeLogsWerner Koch2006-07-265-53/+72
|
* mpi/ChangeLog:Moritz Schulte2005-10-093-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-27 Moritz Schulte <moritz@g10code.com>Moritz Schulte2005-04-272-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).
* ChangeLog:Moritz Schulte2005-04-226-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.
* See ChangeLogsWerner Koch2005-02-222-7/+13
|
* 2005-02-16 Moritz Schulte <moritz@g10code.com>Moritz Schulte2005-02-162-10/+44
| | | | | | * mpiutil.c (_gcry_mpi_alloc_limb_space): Rewritten, fixed memory corruption.
* (mpi_optional_modules): Move entry for powerpc64Werner Koch2004-12-162-3/+10
| | | | | before generic powerpc. Suggested by Rafael ��vila de Esp��ndola.
* * hppa1.1/udiv-qrnnd.S: Alignment fix from Lamont Jones forWerner Koch2004-03-035-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.
* * mpi-internal.h [M_DEBUG]: Removed this unused code.Werner Koch2003-12-197-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.
* Added Manifest files.Werner Koch2003-12-1935-143/+515
|
* (gcry_mpi_randomize): Use gcry_create_nonce if WEAKV1-1-91Werner Koch2003-12-192-5/+21
| | | | | random has been requested.
* added a #warningWerner Koch2003-12-041-0/+1
|
* * acinclude.m4 (AC_CHECK_PTH): Added.Werner Koch2003-10-314-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.