aboutsummaryrefslogtreecommitdiffstats
path: root/cipher (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix idea.c for big endian CPUs.Werner Koch2013-01-111-7/+7
| | | | | | * cipher/idea.c: Replace use of WORDS_BIGENDIAN by BIG_ENDIAN_HOST. -- GnuPG-bug-id: 1461
* Support the not anymore patented IDEA cipher algorithm.Werner Koch2012-11-083-188/+414
| | | | | | | | | | | | | | | | | | | | | | | | * cipher/idea.c: New. Take from Libgcrypt master and adjust for direct use in GnuPG. * cipher/idea-stub.c: Remove. * cipher/Makefile.am: Add idea.c and remove idea-stub.c rules. * configure.ac: Remove idea-stub code. * g10/gpg.c (check_permissions): Remove code path for ITEM==2. (main): Make --load-extension a dummy option. * g10/keygen.c (keygen_set_std_prefs): Include IDEA only in PGP2 compatibility mode. * g10/misc.c (idea_cipher_warn): Remove. Also remove all callers. * g10/seckey-cert.c (do_check): Remove emitting of STATUS_RSA_OR_IDEA. * g10/status.c (get_status_string): Remove STATUS_RSA_OR_IDEA. * g10/status.h (STATUS_RSA_OR_IDEA): Remove. -- To keep the number of actually used algorithms low, we support IDEA only in a basically read-only way (unless --pgp2 is used during key generation). It does not make sense to suggest the use of this old 64 bit blocksize algorithm. However, there is old data available where it might be helpful to have IDEA available.
* Fix usage of dlerror to conform to POSIX.Werner Koch2012-11-071-6/+8
| | | | | | | | | * cipher/idea-stub.c: Clear last error before dlsym. -- This is required for NetBSD. Reported-by: Thomas Klausner
* Improve handling of random_seed read errors.Werner Koch2012-11-071-1/+25
| | | | | | | | | | | * cipher/random.c (read_seed_file): Distinguish between errors and short reads. -- This should help to avoid program aborts due to races. Nevertheless a better and cross-platform locking would be a more solid solution. GnuPG-bug-id: 1439
* Remove trailing white space from one fileWerner Koch2012-11-071-10/+10
| | | | --
* Fix typos in comments.Werner Koch2012-01-242-3/+3
| | | | | -- Fixes provided by Gilles Espinasse.
* Typo fixes and comment re-formatting.Werner Koch2012-01-121-5/+6
|
* Use gcc pragmas to suppress some warnings.Werner Koch2012-01-101-11/+15
| | | | | | | | | * configure.ac (AH_BOTTOM): Add GNUPG_GCC_VERSION macro. * util/estream-printf.c (pr_float): Use new gcc pragma to ignore a warning about a non-literal format. * util/miscutil.c (asctimestamp): Ditto. * cipher/md.c (md_stop_debug): Use new gcc pragme to ignore a warning * about a set but unused variable.
* Rename all ChangeLog files to ChangeLog-2011.Werner Koch2011-12-021-2/+9
| | | | * ChangeLog: New file.
* Removed some set but unused vars.Werner Koch2011-08-092-12/+19
|
* Fix aliasing problem.Werner Koch2011-08-091-1035/+1043
|
* Add a minor feature for w32.gnupg-1.4.11Werner Koch2010-10-182-3/+14
|
* The rest of the VMS changes.Werner Koch2010-09-281-0/+2
|
* Minor changes to help the VMS portWerner Koch2010-09-282-3/+60
|
* Minor fixesWerner Koch2010-08-311-0/+4
|
* Revert that last stupid setuid detection fix.Werner Koch2008-07-172-2/+2
|
* Add Camellia-192.David Shaw2008-04-173-4/+43
|
* Improved AES performance.Werner Koch2008-03-224-240/+369
|
* Updated ZH po file.Werner Koch2007-12-122-0/+14
| | | | | | Allow de/encryption using legacy type 20 keys. Updated config.{sub,guess}
* Allow decryption using type 20 key.Werner Koch2007-12-112-0/+11
|
* Add 128-bit variant of Camellia.David Shaw2007-11-293-13/+53
|
* * sha256.c (sha224_get_info): 4880 has an error in the SHA-224 OID andDavid Shaw2007-11-282-2/+7
| | | | | we inherited it. Fixing.
* Switched to GPLv3.Werner Koch2007-10-2340-153/+80
| | | | | Updated gettext.
* Add an extra warning for Camellia.Werner Koch2007-07-093-2/+8
| | | | | | Minor W32 fix Address change.
* Add Camellia. Do not enable this if you are not doing interopDavid Shaw2007-06-137-4/+1727
| | | | | | | testing. It is not (yet) legal OpenPGP, is not interop tested yet (obviously), and it's a great way to lose your data. Just don't do it.
* Removed the use of g10defs.h.Werner Koch2006-12-116-27/+48
| | | | | | This required some code cleanups and the introduction of a few accessor ducntions in mpi.
* Preparing an RCWerner Koch2006-11-292-1/+6
|
* * rsa.c (generate): Use e=65537 for new RSA keys.David Shaw2006-06-282-13/+13
|
* (generate): Tweak to allow keys larger than 1024 bits. Enforce that the qDavid Shaw2006-04-202-1/+4
| | | | | size doesn't end between byte boundaries.
* The plumbing necessary to create DSA keys with variable sized q.David Shaw2006-04-202-9/+28
| | | | | Not yet used (q==160).
* Add SHA-224 supportDavid Shaw2006-04-204-5/+83
|
* * blowfish.c, md5.c, rmd160.c, sha1.c, sha256.c, sha512.c: Revert previousDavid Shaw2006-03-207-13/+18
| | | | | change. It's now all done in configure.
* * blowfish.c, md5.c, rmd160.c, sha1.c, sha256.c, sha512.c: Use '#if'David Shaw2006-03-207-13/+21
| | | | | | | rather than '#ifdef' BIG_ENDIAN_HOST. Harmless as we explicitly define BIG_ENDIAN_HOST to 1 when we need it, but needed for OSX fat builds when we define BIG_ENDIAN_HOST to another macro.
* about to release 1.4.3rc1gnupg-1.4.3rc1Werner Koch2006-02-142-2/+6
|
* Lock random seed fileWerner Koch2006-02-093-1/+93
|
* * idea-stub.c (load_module): Not legal to return a void * as a functionDavid Shaw2005-12-066-24/+8
| | | | | pointer.
* * Makefile.am: Some cleanup so we don't build files that are completelyDavid Shaw2005-12-062-8/+30
| | | | | | ifdeffed out. This causes a warning on Sun's cc. Do sha512.c as well for consistency.
* Experimental code to improve AES performance. Got about 25% on ia32.Werner Koch2005-08-113-1/+76
|
* Converted all m_free to xfree etc.Werner Koch2005-07-2711-64/+64
|
* * random.c: Fix prototype of the fast random gatherer. Noted by JoeDavid Shaw2005-06-072-2/+7
| | | | | Vender.
* Updated FSF street address and preparations for a release candidate.Werner Koch2005-05-3136-36/+70
|
* (rndw32_gather_random_fast): While adding data use theWerner Koch2005-03-232-5/+12
| | | | | | size of the object and not the one of its address. Bug reported by Sascha Kiefer.
* * primegen.c (is_prime): Free A2. Noted by [email protected].Werner Koch2005-03-072-8/+15
| | | | | | | | | | | | | | | | | | | Fixes #423. * DETAILS: Document new status codes. * cardglue.c (agent_scd_pkdecrypt, agent_scd_pksign) (agent_scd_genkey, agent_scd_setattr, agent_scd_change_pin) (agent_scd_checkpin, agent_openpgp_storekey): Make sure to send a SC_OP_FAILURE after card operations which might change data. * card-util.c (change_pin): Send a SC_OP_SUCCESS after a PIN has been changed. (change_name): Removed a debug output. * status.h, status.c: New codes BAD_PASSPHRASE_PIN, SC_OP_FAILURE and SC_OP_SUCCESS. * de.po: Updated. Translation is still in the works, though.
* Minor changesWerner Koch2005-01-201-2/+2
|
* * md.c (string_to_digest_algo): Allow read/write SHA384 and SHA512.David Shaw2004-12-012-15/+5
|
* 2004-11-03 Timo Schulz <[email protected]>Timo Schulz2004-11-032-9/+11
| | | | | | | | * strgutil.c (w32_strerror): New. * ttyio.c (init_ttyfp, tty_printf, do_get): Use it here. * iobuf.c (fd_cache_open, file_filter): Likewise. (iobuf_seek, translate_file_handle): Likewise.
* * rndunix.c (start_gatherer) [ENABLE_SELINUX_HACKS]: Don't allowWerner Koch2004-10-142-1/+13
| | | | | | | | logging. * gpgkeys_finger.c (get_key): s/unsigned char/byte/ due to a strange typedef for RISC OS. Noted by Stefan.
* * algorithms.h, cast5.c, cipher.c, idea-stub.c, twofish.c, blowfish.c,David Shaw2004-10-129-135/+112
| | | | | des.c, rijndael.c: Consistently use const for input buffers.
* Note: I have not fully tested the new key creation due to a pc/scWerner Koch2004-09-232-1/+7
| | | | | | | | | | | | | | | | | | | error. However the backupfile has been created successfully. * rsa.c (rsa_generate): Return the dummy list of factors only if the caller asked for it. * card_util.c (generate_card_keys): ask whether backup should be created. (card_store_subkey): Factored some code out to .. * keygen.c (save_unprotected_key_to_card): .. new function. (gen_card_key_with_backup): New. (generate_raw_key): New. (generate_keypair): New arg BACKUP_ENCRYPTION_DIR. Changed all callers. (do_generate_keypair): Divert to gen_card_key_with_backup when desired.
* * dsa.c (verify): s/exp/exponent/ to fix a compiler warning. From WernerDavid Shaw2004-05-202-5/+10
| | | | | on stable branch.