David Shaw
18f6e7e5d8
Add Camellia-192.
2008-04-17 17:40:30 +00:00
Werner Koch
537cada38e
Improved AES performance.
2008-03-22 17:01:37 +00:00
Werner Koch
81685cc799
Updated ZH po file.
...
Allow de/encryption using legacy type 20 keys.
Updated config.{sub,guess}
2007-12-12 18:26:25 +00:00
Werner Koch
a45ad0eba1
Allow decryption using type 20 key.
2007-12-11 17:14:05 +00:00
David Shaw
bc15e25d7a
Add 128-bit variant of Camellia.
2007-11-29 14:51:08 +00:00
David Shaw
154407fd38
* sha256.c (sha224_get_info): 4880 has an error in the SHA-224 OID and
...
we inherited it. Fixing.
2007-11-28 23:00:11 +00:00
Werner Koch
9a2a818887
Switched to GPLv3.
...
Updated gettext.
2007-10-23 10:48:09 +00:00
Werner Koch
66c5c46b95
Add an extra warning for Camellia.
...
Minor W32 fix
Address change.
2007-07-09 17:26:51 +00:00
David Shaw
7cf79c128a
Add Camellia. Do not enable this if you are not doing interop
...
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.
2007-06-13 15:28:11 +00:00
Werner Koch
9f433cccca
Removed the use of g10defs.h.
...
This required some code cleanups and the introduction of
a few accessor ducntions in mpi.
2006-12-11 19:54:53 +00:00
Werner Koch
29f48b5fdc
Preparing an RC
2006-11-29 15:42:28 +00:00
David Shaw
04376627a6
* rsa.c (generate): Use e=65537 for new RSA keys.
2006-06-28 22:29:25 +00:00
David Shaw
b625a6d1a9
(generate): Tweak to allow keys larger than 1024 bits. Enforce that the q
...
size doesn't end between byte boundaries.
2006-04-20 21:11:56 +00:00
David Shaw
2f94329422
The plumbing necessary to create DSA keys with variable sized q.
...
Not yet used (q==160).
2006-04-20 18:40:37 +00:00
David Shaw
f0902a6aef
Add SHA-224 support
2006-04-20 02:05:32 +00:00
David Shaw
70f1c32ffd
* blowfish.c, md5.c, rmd160.c, sha1.c, sha256.c, sha512.c: Revert previous
...
change. It's now all done in configure.
2006-03-20 16:40:28 +00:00
David Shaw
0f4f660d5f
* blowfish.c, md5.c, rmd160.c, sha1.c, sha256.c, sha512.c: Use '#if'
...
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.
2006-03-20 00:39:44 +00:00
Werner Koch
b121d029b5
about to release 1.4.3rc1
2006-02-14 16:28:34 +00:00
Werner Koch
2410941461
Lock random seed file
2006-02-09 12:54:41 +00:00
David Shaw
8a0cf1d2a3
* idea-stub.c (load_module): Not legal to return a void * as a function
...
pointer.
2005-12-06 20:27:43 +00:00
David Shaw
c0d7fa368e
* Makefile.am: Some cleanup so we don't build files that are completely
...
ifdeffed out. This causes a warning on Sun's cc. Do sha512.c as well for
consistency.
2005-12-06 17:13:44 +00:00
Werner Koch
0a3eda24ee
Experimental code to improve AES performance. Got about 25% on ia32.
2005-08-11 16:57:29 +00:00
David Shaw
33f81c5bb6
* random.c: Fix prototype of the fast random gatherer. Noted by Joe
...
Vender.
2005-06-07 18:03:19 +00:00
Werner Koch
4d5285ee87
(rndw32_gather_random_fast): While adding data use the
...
size of the object and not the one of its address. Bug reported by
Sascha Kiefer.
2005-03-23 08:50:27 +00:00
Werner Koch
c91e30fda4
* primegen.c (is_prime): Free A2. Noted by pmike2001@mail.ru.
...
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.
2005-03-07 13:59:59 +00:00
David Shaw
93ec34cc7a
* md.c (string_to_digest_algo): Allow read/write SHA384 and SHA512.
2004-12-01 04:01:16 +00:00
Timo Schulz
37ecd725e5
2004-11-03 Timo Schulz <twoaday@g10code.com>
...
* 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.
2004-11-03 20:03:46 +00:00
Werner Koch
8f70a693ac
* rndunix.c (start_gatherer) [ENABLE_SELINUX_HACKS]: Don't allow
...
logging.
* gpgkeys_finger.c (get_key): s/unsigned char/byte/ due
to a strange typedef for RISC OS. Noted by Stefan.
2004-10-14 07:21:17 +00:00
David Shaw
b15cc684b8
* algorithms.h, cast5.c, cipher.c, idea-stub.c, twofish.c, blowfish.c,
...
des.c, rijndael.c: Consistently use const for input buffers.
2004-10-12 17:35:50 +00:00
Werner Koch
f36154535e
Note: I have not fully tested the new key creation due to a pc/sc
...
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.
2004-09-23 19:34:45 +00:00
David Shaw
2815f9fa49
* dsa.c (verify): s/exp/exponent/ to fix a compiler warning. From Werner
...
on stable branch.
2004-05-20 17:16:34 +00:00
David Shaw
99f6f81769
* cipher.c (setup_cipher_table): May as well call Rijndael AES at this
...
point.
2004-01-17 03:06:50 +00:00
David Shaw
65f759ae68
* pubkey.c (setup_pubkey_table), elgamal.c (sign, verify, test_keys,
...
elg_sign, elg_verify, elg_get_info): Remove the last bits of Elgamal type
20 support.
2004-01-17 01:49:16 +00:00
David Shaw
8f7b94789c
* idea-stub.c (load_module, idea_get_info): Return the proper type for
...
idea_get_info from inside load_module. From Stefan Bellon.
2003-12-30 01:37:52 +00:00
David Shaw
d7a28c72a8
* rijndael.c, rndunix.c, twofish.c: Remove dead IS_MODULE code.
...
* g10c.c: Dead code. Remove.
* Makefile.am: Don't compile g10c.c.
2003-12-30 00:57:05 +00:00
Stefan Bellon
02ae08d6ef
cleaned up RISC OS code and removed lots of unnecessary stuff
2003-12-28 14:12:16 +00:00
David Shaw
68b3e412f4
* dsa.h, dsa.c (dsa_verify), elgamal.h, elgamal.c (elg_verify), rsa.h,
...
rsa.c (rsa_verify), pubkey.c (dummy_verify, pubkey_verify): Remove old
unused code.
2003-12-17 19:05:23 +00:00
David Shaw
b5fe8d3dd7
* pubkey.c (setup_pubkey_table): Don't allow signatures to and from
...
encrypt-only Elgamal keys. (pubkey_get_npkey, pubkey_get_nskey,
pubkey_get_nsig, pubkey_get_nenc, pubkey_nbits): Wrap the RSA cheats in
!USE_RSA. Add cheats for sign+encrypt Elgamal.
2003-12-04 05:17:56 +00:00
David Shaw
6048620ea5
* pubkey.c (setup_pubkey_table): Only include RSA if USE_RSA is defined.
...
(pubkey_get_npkey): Return 2 for RSA even if it isn't available so we can
at least handle RSA keys.
----------------------------------------------------------------------
pubkey.c CVS:
----------------------------------------------------------------------
2003-12-01 00:43:51 +00:00
Werner Koch
996d61bcc6
* pubkey.c (pubkey_sign): Return an error if an ElGamal key is used.
...
* elgamal.c (gen_k): New arg SMALL_K.
(sign): Use it here with SMALL_K set to false
(do_encrypt): and here with SMALL_K set to true.
2003-11-27 14:47:59 +00:00
Werner Koch
3cfffa8a4e
* primegen.c (gen_prime): Bail out if we try to generate a prime
...
with less than 16 bits. Include i18n.h.
* POTFILES.in (cipher/primegen.c): Added.
2003-10-10 09:28:26 +00:00
Werner Koch
b7bd594c8c
* primegen.c (gen_prime): Bail out if NBITS is zero. This is
...
Debian bug #213989 reported by Max <rusmir@tula.net>.
2003-10-06 12:09:46 +00:00
David Shaw
142ef9b0ba
* md.c (string_to_digest_algo): Enable read-write SHA-256 support.
...
* algorithms.h, Makefile.am, md.c (load_digest_module,
string_to_digest_algo), tiger.c: Drop TIGER/192 support.
2003-09-04 11:53:10 +00:00
David Shaw
6eb9d6297f
* idea-stub.c, random.c; s/__MINGW32__/_WIN32/ to help building on native
...
Windows compilers. Requested by Brian Gladman. From Werner on stable
branch.
2003-08-28 23:49:03 +00:00
David Shaw
5ad7dd7944
* random.c (getfnc_gather_random): Don't check NAME_OF_DEV_RANDOM twice.
...
Use NAME_OF_DEV_URANDOM.
2003-08-21 23:26:57 +00:00
David Shaw
29e6411a7b
* bithelp.h, des.c, random.c, rndlinux.c, sha1.c, blowfish.c, elgamal.c,
...
rijndael.c, rndunix.c, sha256.c, cast5.c, idea-stub.c, rmd160.c, rndw32.c,
sha512.c, md5.c, rmd160test.c, rsa.c, tiger.c: Edit 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.
2003-05-24 18:31:33 +00:00
David Shaw
0048ebcbae
* cipher.c (setup_cipher_table): #ifdef IDEA.
...
* random.c (fast_random_poll): Only use times() if we HAVE_TIMES.
* sha512.c, tiger.c: Use the U64_C() macro to specify 64-bit constants.
U64_C is defined in include/types.h and uses the correct suffix depending
on the underlying type of u64.
* idea-stub.c (load_module): Catch an error if the idea module file is
unloadable for some reason (unreadable, bad permissions, etc.)
* md.c (string_to_digest_algo): Give a warning about TIGER192 not being
part of OpenPGP.
2003-05-15 05:29:05 +00:00
Werner Koch
297e879108
* md.c (md_start_debug): Need to open the file in binary mode.
2003-04-15 12:20:31 +00:00
David Shaw
5e9d144a53
* cipher.c (setup_cipher_table): #ifdef all optional ciphers.
...
* md.c (load_digest_module): #ifdef all optional digests.
2003-02-21 20:49:58 +00:00
David Shaw
fa9600d2c8
* Makefile.am, md.c (load_digest_module): Only build in SHA384/512 and
...
TIGER if specifically enabled by the 64-bit type check in configure.
2003-02-12 04:51:22 +00:00