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
David Shaw
cef8bbd91f
* sha256.c, sha512.c: New.
...
* Makefile.am, algorithms.h, md.c (load_digest_module,
string_to_digest_algo): Add read-only support for the new SHAs.
2003-02-04 19:28:40 +00:00
David Shaw
c4d58f14e0
* rndw32.c [__CYGWIN32__]: Don't include winioctl.h - it is not required
...
anymore. (From Werner)
* random.c (read_seed_file,update_random_seed_file): Use binary mode for
__CYGWIN__. (From Werner)
* blowfish.c (burn_stack), cast5.c (burn_stack), des.c (burn_stack), md5.c
(burn_stack), random.c (burn_stack, read_pool, fast_random_poll),
rijndael.c (burn_stack), rmd160.c (burn_stack), rndegd.c
(rndegd_gather_random), rndlinux.c (rndlinux_gather_random), sha1.c
(burn_stack), tiger.c (burn_stack), twofish.c (burn_stack): Replace
various calls to memset() with the more secure wipememory().
2002-11-06 17:32:37 +00:00
David Shaw
d6693c144c
* cipher.c (string_to_cipher_algo), md.c (string_to_digest_algo): Allow
...
the Sxxx and Hxxx format for cipher and digest names.
2002-11-02 21:39:37 +00:00
Stefan Bellon
7dac918b6d
added RISC OS module loading support
2002-10-31 16:58:47 +00:00
Werner Koch
42b93f4925
* rndunix.c (my_popen): Make sure that stdin and stderr are
...
connected to a file. This is to avoid NetBSD to complain about
set{u,g}id programs invoked with fd 0, 2 closed. Reported by
Cristian Biere.
(start_gatherer): Likewise. Reordered code.
2002-10-12 14:54:24 +00:00
David Shaw
e8b0b6349b
* tiger.c (tiger_get_info): Select the OID to use for TIGER at compile
...
time.
2002-10-02 19:59:43 +00:00
David Shaw
37f29e8102
* Makefile.am, md.c (load_digest_module): TIGER is now always enabled.
2002-09-27 19:27:24 +00:00
Werner Koch
2536273e67
* tiger.c (tiger_get_info): Use a regular OID. Note that this
...
breaks all TIGER generated signatures; if we want to do something
about it we have to do it in ../g10/sig-check.c .
2002-09-26 09:35:19 +00:00
Werner Koch
1ad05d5728
* rndw32.c (SIZEOF_DISK_PERFORMANCE_STRUCT): Increased to 256.
2002-09-17 08:53:07 +00:00
Stefan Bellon
3782e1595e
updated RISC OS stuff
2002-09-12 16:25:36 +00:00
Werner Koch
20c73570b3
typo fixes and disabled dummy cipher
2002-09-10 08:41:44 +00:00
Werner Koch
0073d6865d
* random.c: Automagically detect the entrop gatherer when
...
configure so.
* rndegd.c (rndegd_connect_socket): New. Factored out from ..
(rndegd_gather_random): here and call it.
(do_read): Update the counter variables correctly. This was not a
problem due to the way EGD works. Bug found by Christian Biere.
2002-08-30 16:33:55 +00:00
Werner Koch
277a9a3755
Include intl/ in the CVS again; otherwise we are not able to
...
re-recreate a distribution from CVS.
Some minor other fixes.
2002-08-23 08:02:08 +00:00
Werner Koch
29e3108bb9
* cipher.c: Include the DUMMY cipher only when the new ALLOW_DUMMY
...
is defined. It should only be defined for hard core debugging.
2002-08-12 17:46:46 +00:00
David Shaw
3d85ad800d
* Makefile.am, md.c (load_digest_module): Allow switching TIGER on and off
...
via configure.
2002-08-08 19:41:30 +00:00
David Shaw
faed12a698
* md.c (md_algo_present): New function to check if a given algo is in use
...
for a given MD_HANDLE.
2002-08-07 19:47:57 +00:00
Werner Koch
705873c41b
Removed some obsolete header files.
2002-08-04 22:00:32 +00:00
Stefan Bellon
5631db0402
RISC OS changes because of dynload removal
2002-08-03 21:53:33 +00:00
Stefan Bellon
582f0d5d98
RISC OS changes due to dynload removal
2002-08-03 18:35:16 +00:00
Werner Koch
85aa3e18c2
The big extension module removal.
2002-08-03 10:50:53 +00:00
David Shaw
36d5779e82
* random.c: "warning" -> "WARNING"
2002-07-25 18:05:48 +00:00
Werner Koch
6b50533fe1
* rndw32.c (slow_gatherer_windowsNT): Use a simple array for the
...
disk performance structure and increase it to the size required by
W2000.
2002-07-24 07:42:16 +00:00
Werner Koch
db1e07ba0a
* rndlinux.c: Removed HAVE_LINUX_RANDOM_H conditional because it
...
was never used and the configure test did set the wrong macro
anyway.
2002-06-29 20:46:43 +00:00
David Shaw
151ee2f47b
Update head to match stable 1.0
2002-06-29 13:31:13 +00:00
Werner Koch
07ca4eaa9d
Removed files from the HEAD revision, because they are now in another
...
repository
2000-12-19 17:20:22 +00:00
Werner Koch
986649bea0
Some configuration changes
2000-11-14 16:04:16 +00:00
Werner Koch
709d3a7fa6
Ooops, forgot to add this one.
2000-10-11 08:01:12 +00:00
Werner Koch
5a9ea8ff5c
Changed keyring handling - saving still does not work.
...
Added new cipher mode and updated cipher test program.
2000-10-10 12:58:43 +00:00
Werner Koch
b75f734a11
Added the arcfour cipher which is of use for GNUTLS.
...
According to the selftest, it does not yet work :-((.
2000-10-10 12:54:06 +00:00
Werner Koch
9c20f65cbe
See ChangeLog: Wed Oct 4 13:16:18 CEST 2000 Werner Koch
2000-10-04 11:16:19 +00:00
Werner Koch
986d928ce2
See ChangeLog: Mon Sep 18 16:35:45 CEST 2000 Werner Koch
2000-09-18 14:35:34 +00:00
Werner Koch
7a8c8b4826
See ChangeLog: Mon Jul 31 10:04:47 CEST 2000 Werner Koch
2000-07-31 08:04:16 +00:00
Werner Koch
d81c3f733b
See ChangeLog: Fri Jul 28 18:19:11 CEST 2000 Werner Koch
2000-07-28 16:19:07 +00:00
Werner Koch
b872ea2577
See ChangeLog: Tue Jul 25 17:44:15 CEST 2000 Werner Koch
2000-07-25 15:38:12 +00:00
Werner Koch
0bf44b072c
See ChangeLog: Mon Jul 17 16:35:47 CEST 2000 Werner Koch
2000-07-17 14:32:21 +00:00
Werner Koch
92cd255508
See ChangeLog: Fri Jul 14 19:38:23 CEST 2000 Werner Koch
2000-07-14 17:34:53 +00:00
Werner Koch
da129a5124
See ChangeLog: Fri Mar 24 11:25:45 CET 2000 Werner Koch
2000-03-24 10:19:50 +00:00
Werner Koch
14a2e006bc
See ChangeLog: Mon Mar 13 19:22:46 CET 2000 Werner Koch
2000-03-13 18:19:12 +00:00
Werner Koch
100fc8da59
See ChangeLog: Mon Jan 31 16:37:34 CET 2000 Werner Koch
2000-01-31 15:27:03 +00:00
Werner Koch
baa30ad117
See ChangeLog: Thu Jan 27 18:00:44 CET 2000 Werner Koch
2000-01-27 16:50:45 +00:00
Werner Koch
db43afc923
See ChangeLog: Mon Jan 24 22:24:38 CET 2000 Werner Koch
2000-01-24 21:14:42 +00:00
Werner Koch
0070faa0ff
See ChangeLog: Mon Jan 24 13:04:28 CET 2000 Werner Koch
2000-01-24 11:55:49 +00:00
Werner Koch
ed0b0e09d3
See ChangeLog: Fri Dec 31 12:48:31 CET 1999 Werner Koch
1999-12-31 11:44:29 +00:00
Werner Koch
4555c0be94
See ChangeLog: Wed Dec 8 21:58:32 CET 1999 Werner Koch
1999-12-08 21:03:03 +00:00
Werner Koch
2694bceb45
See ChangeLog: Fri Nov 19 17:15:20 CET 1999 Werner Koch
1999-11-19 16:11:37 +00:00
Werner Koch
37f3c09edb
See ChangeLog: Mon Nov 15 21:36:02 CET 1999 Werner Koch
1999-11-15 20:32:25 +00:00
Werner Koch
881e513237
See ChangeLog: Sat Nov 13 17:44:23 CET 1999 Werner Koch
1999-11-13 16:43:23 +00:00
Werner Koch
cf70ca8d68
See ChangeLog: Tue Oct 26 14:10:21 CEST 1999 Werner Koch
1999-10-26 12:14:37 +00:00
Werner Koch
24ae98041f
See ChangeLog: Sat Sep 18 12:16:08 CEST 1999 Werner Koch
1999-09-18 10:17:16 +00:00
Werner Koch
49f0fe535a
See ChangeLog: Wed Sep 15 17:57:13 CEST 1999 Werner Koch
1999-09-15 15:58:40 +00:00
Werner Koch
dcaaa9223e
See ChangeLog: Wed Sep 15 16:22:17 CEST 1999 Werner Koch
1999-09-15 14:26:39 +00:00
Werner Koch
52139a60cf
See ChangeLog: Mon Sep 13 10:55:14 CEST 1999 Werner Koch
1999-09-13 08:56:45 +00:00
Werner Koch
7afedfd3b9
See ChangeLog: Tue Sep 7 16:23:36 CEST 1999 Werner Koch
1999-09-07 14:28:16 +00:00
Werner Koch
1fb1323d17
Sorry, I broke des.c
1999-09-06 20:21:20 +00:00
Werner Koch
4a3291c4db
See ChangeLog: Mon Sep 6 19:59:08 CEST 1999 Werner Koch
1999-09-06 18:10:27 +00:00
Werner Koch
c2c397bedf
See ChangeLog: Mon Aug 30 20:38:33 CEST 1999 Werner Koch
1999-08-30 18:48:57 +00:00
Werner Koch
4dbfb24dbb
See ChangeLog: Mon Jul 26 09:34:46 CEST 1999 Werner Koch
1999-07-26 07:44:46 +00:00
Werner Koch
843742c086
See ChangeLog: Fri Jul 23 13:53:03 CEST 1999 Werner Koch
1999-07-23 12:03:01 +00:00
Werner Koch
541bb017d2
See ChangeLog: Thu Jul 22 20:03:03 CEST 1999 Werner Koch
1999-07-22 18:11:55 +00:00
Werner Koch
a316550579
See ChangeLog: Thu Jul 15 10:15:35 CEST 1999 Werner Koch
1999-07-15 08:16:46 +00:00
Werner Koch
8be0d60594
See ChangeLog: Mon Jul 12 14:55:34 CEST 1999 Werner Koch
1999-07-12 12:57:54 +00:00
Werner Koch
bd7298cf0d
See ChangeLog: Wed Jul 7 13:23:40 CEST 1999 Werner Koch
1999-07-07 11:28:26 +00:00
Werner Koch
86abac78a2
See ChangeLog: Fri Jul 2 11:45:54 CEST 1999 Werner Koch
1999-07-02 09:50:57 +00:00
Werner Koch
28eb86c006
See ChangeLog: Thu Jul 1 12:47:31 CEST 1999 Werner Koch
1999-07-01 10:53:35 +00:00
Werner Koch
080c9ca49f
See ChangeLog: Sat Jun 26 12:15:59 CEST 1999 Werner Koch
1999-06-26 10:23:06 +00:00
Werner Koch
9da1694e19
See ChangeLog: Tue Jun 15 14:23:10 CEST 1999 Werner Koch
1999-06-15 12:31:07 +00:00
Werner Koch
40238d4b63
See ChangeLog: Tue Jun 8 13:36:25 CEST 1999 Werner Koch
1999-06-08 11:41:46 +00:00
Werner Koch
3dddf602dd
See ChangeLog: Tue Jun 1 16:01:46 CEST 1999 Werner Koch
1999-06-01 14:08:57 +00:00
Werner Koch
c7447e78e2
See ChangeLog: Sun May 23 14:20:22 CEST 1999 Werner Koch
1999-05-23 12:29:05 +00:00
Werner Koch
9131432b4d
See ChangeLog: Sat May 22 22:47:26 CEST 1999 Werner Koch
1999-05-22 20:54:54 +00:00
Werner Koch
3983f30bd2
See ChangeLog: Mon May 17 21:54:43 CEST 1999 Werner Koch
1999-05-17 20:03:24 +00:00
Werner Koch
7cb8838061
See ChangeLog: Thu May 6 14:18:17 CEST 1999 Werner Koch
1999-05-06 12:26:10 +00:00
Werner Koch
e5a79b2da8
See ChangeLog: Tue May 4 15:49:29 CEST 1999 Werner Koch
1999-05-04 13:55:41 +00:00
Werner Koch
1feae2011c
See ChangeLog: Sun Apr 18 10:11:28 CEST 1999 Werner Koch
1999-04-18 08:18:52 +00:00
Werner Koch
02d018f9c8
See ChangeLog: Fri Apr 9 12:26:25 CEST 1999 Werner Koch
1999-04-09 10:34:44 +00:00
Werner Koch
9f40263e56
See ChangeLog: Wed Apr 7 20:51:39 CEST 1999 Werner Koch
1999-04-07 18:58:34 +00:00