1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-06 23:17:47 +02:00
gnupg/g10
Werner Koch 30ec869b8c gpg: Fix segv with RSA_S keys.
* g10/misc.c (pubkey_get_npkey, pubkey_get_nskey)
(pubkey_get_nsig, pubkey_get_nenc): Map all RSA algo ids to
GCRY_PK_RSA.
--

The problem is that Libgcrypt has no more support for the alternate
RSA ids and thus if asking for the number of parameters, they will
return zero.  Now, this leads to packing the key parameters into an
opaque MPI but because the algorithm id is actually known to GPG, it
assumes valid RSA parameters.

An example key with RSA_S is 0x5434509D.
2012-01-11 20:15:47 +01:00
..
armor.c Fix faulty gcc warnings 2011-03-03 12:40:54 +01:00
build-packet.c Fixed set but unused variable bugs 2011-08-10 14:11:30 +02:00
call-agent.c Allow creating subkeys using an existing key 2011-11-06 17:01:31 +01:00
call-agent.h Allow creating subkeys using an existing key 2011-11-06 17:01:31 +01:00
call-dirmngr.c Add finger support to dirmngr. 2011-02-08 21:11:19 +01:00
call-dirmngr.h Require libgcrypt 1.5 2011-03-08 12:23:59 +01:00
card-util.c Allow creating subkeys using an existing key 2011-11-06 17:01:31 +01:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
cipher.c Replace gcry_md_start_debug by gcry_md_debug. 2011-09-20 09:54:27 +02:00
comment.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
compress-bz2.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
compress.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
cpr.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
dearmor.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
decrypt-data.c Replace gcry_md_start_debug by gcry_md_debug. 2011-09-20 09:54:27 +02:00
decrypt.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
delkey.c Give sensible error messages when trying to delete secret key. 2011-04-29 12:01:52 +02:00
ecdh.c Removed memory leak in the ECDH code. 2011-04-28 10:51:14 +02:00
encrypt.c Compute the fingerprint for ECDH only on demand. 2011-02-02 17:40:32 +01:00
exec.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
exec.h Changed to GPLv3. 2007-07-04 19:49:40 +00:00
export.c Avoid possible double free in export.c. 2011-12-02 17:04:58 +01:00
filter.h Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
free-packet.c Allow NULL for free_public_key. 2011-09-20 19:24:52 +02:00
getkey.c Re-indentation of keydb.c and error code changes. 2011-04-29 15:07:11 +02:00
gpg.c Allow creating subkeys using an existing key 2011-11-06 17:01:31 +01:00
gpg.h Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
gpgv.c Add a flag parameter to dotlock_create. 2011-09-28 15:41:58 +02:00
helptext.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
import.c Fixed set but unused variable bugs 2011-08-10 14:11:30 +02:00
kbnode.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
keydb.c Add a flag parameter to dotlock_create. 2011-09-28 15:41:58 +02:00
keydb.h Re-indentation of keydb.c and error code changes. 2011-04-29 15:07:11 +02:00
keyedit.c Allow creating subkeys using an existing key 2011-11-06 17:01:31 +01:00
keygen.c Allow creating subkeys using an existing key 2011-11-06 17:01:31 +01:00
keyid.c Minor code cleanups. 2011-03-03 13:01:03 +01:00
keylist.c Re-indentation of keydb.c and error code changes. 2011-04-29 15:07:11 +02:00
keyring.c Add a flag parameter to dotlock_create. 2011-09-28 15:41:58 +02:00
keyring.h Decryption and signi via agent is now implemented. 2010-04-23 11:36:59 +00:00
keyserver-internal.h Initial code checking for backup - not yet working. 2011-01-10 14:30:17 +01:00
keyserver.c Rewrite dns-cert.c to not use the gpg-only iobuf stuff. 2011-11-30 17:34:49 +01:00
main.h Allow creating subkeys using an existing key 2011-11-06 17:01:31 +01:00
mainproc.c Replace gcry_md_start_debug by gcry_md_debug. 2011-09-20 09:54:27 +02:00
Makefile.am Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
mdfilter.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
misc.c gpg: Fix segv with RSA_S keys. 2012-01-11 20:15:47 +01:00
openfile.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
OPTIONS See ChangeLog: Mon Jul 31 10:04:47 CEST 2000 Werner Koch 2000-07-31 08:04:16 +00:00
options.h Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
options.skel Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
packet.h Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
parse-packet.c Print decoded S2K count in --list-packets mode. 2011-07-18 10:57:33 +02:00
passphrase.c Allow NULL for free_public_key. 2011-09-20 19:24:52 +02:00
photoid.c Merge fix for issue 1331 from 1.4. 2011-12-15 17:00:40 -05:00
photoid.h Decryption and signi via agent is now implemented. 2010-04-23 11:36:59 +00:00
pkclist.c Allow NULL for free_public_key. 2011-09-20 19:24:52 +02:00
pkglue.c Fix for latest fix in Libgcrypt. 2011-06-13 14:54:40 +02:00
pkglue.h Compute the fingerprint for ECDH only on demand. 2011-02-02 17:40:32 +01:00
plaintext.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
progress.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
pubkey-enc.c Don't print anonymous recipient messages in quiet mode. 2011-11-22 15:30:26 +01:00
pubring.asc See ChangeLog: Mon Jul 31 10:04:47 CEST 2000 Werner Koch 2000-07-31 08:04:16 +00:00
revoke.c Allow NULL for free_public_key. 2011-09-20 19:24:52 +02:00
rmd160.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
rmd160.h Add missing header file. 2008-12-12 08:54:50 +00:00
seckey-cert.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
server.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
seskey.c Fix size_t vs int issues. 2011-06-01 21:43:30 +02:00
sig-check.c Fixed set but unused variable bugs 2011-08-10 14:11:30 +02:00
sign.c Replace gcry_md_start_debug by gcry_md_debug. 2011-09-20 09:54:27 +02:00
signal.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
skclist.c Allow NULL for free_public_key. 2011-09-20 19:24:52 +02:00
t-rmd160.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
tdbdump.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
tdbio.c Add a flag parameter to dotlock_create. 2011-09-28 15:41:58 +02:00
tdbio.h Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
textfilter.c Started to implement the audit log feature. 2007-11-19 16:03:50 +00:00
trustdb.c Re-indentation of keydb.c and error code changes. 2011-04-29 15:07:11 +02:00
trustdb.h Print verbose instructions in case of a corrupted trustdb. 2009-07-22 09:43:10 +00:00
verify.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00