1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
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
..
2011-03-03 12:40:54 +01:00
2011-02-08 21:11:19 +01:00
2011-03-08 12:23:59 +01:00
2011-02-04 12:57:53 +01:00
2011-04-28 10:51:14 +02:00
2011-02-04 12:57:53 +01:00
2007-07-04 19:49:40 +00:00
2011-09-20 19:24:52 +02:00
2011-02-04 12:57:53 +01:00
2011-09-28 15:41:58 +02:00
2011-08-10 14:11:30 +02:00
2011-03-03 13:01:03 +01:00
2012-01-11 20:15:47 +01:00
2011-09-20 19:24:52 +02:00
2011-12-15 17:00:40 -05:00
2011-09-20 19:24:52 +02:00
2011-06-13 14:54:40 +02:00
2011-09-20 19:24:52 +02:00
2008-12-12 08:54:50 +00:00
2011-06-01 21:43:30 +02:00
2011-08-10 14:11:30 +02:00
2011-09-20 19:24:52 +02:00
2011-02-04 12:57:53 +01:00