09-27-04 10:45 PM
-----BEGIN PGP SIGNED MESSAGE-----
Johan Wevers wrote:
| Thomas J. Boschloo <nospam@hccnet.nl.invalid> wrote:
|
|
|>GnuPG cannot and probably will not create RSA version 3 keys until the
|>IDEA patent expires in 2007.
|
|
| But that is easily solved by the following patch. I didn't check if
| it still works on 1.2.6. It allows one to create a v3 key in expert mode.
Doesn't look easy ;-)
But there don't seem to be as much changes to the code as I would have
expected. Guess it is already dormant in there!
Regards,
Thomas
| --- gnupg-1.0.7/g10/keygen.c Wed Jan 30 18:24:58 2002
| +++ gnupg-1.0.7/g10/keygen.c Thu Mar 28 13:46:19 2002
| @@ -673,7 +673,8 @@
| sk = m_alloc_clear( sizeof *sk );
| pk = m_alloc_clear( sizeof *pk );
| sk->timestamp = pk->timestamp = make_timestamp();
| - sk->version = pk->version = 4;
| + sk->version = pk->version = (opt.expert && opt.pgp2) ? 3 : 4;
| + if (opt.expert && opt.pgp2) pk->hdrbytes = 3;
| if( expireval ) {
| sk->expiredate = pk->expiredate = sk->timestamp + expireval;
| }
| @@ -768,9 +769,15 @@
| if( addmode )
| tty_printf( _(" (%d) ElGamal (encrypt only)\n"), 3 );
| tty_printf( _(" (%d) ElGamal (sign and encrypt)\n"), 4 );
| + if (opt.expert && opt.pgp2) {
| + tty_printf( _(" (%d) RSAv3 (sign and encrypt, PGP 2.6
compatible, not recommended)\n"), 5 );
| + } else {
| tty_printf( _(" (%d) RSA (sign only)\n"), 5 );
| if (addmode)
| tty_printf( _(" (%d) RSA (encrypt only)\n"), 6 );
| + if (opt.expert)
| + tty_printf( _(" (%d) RSA (sign and encrypt, not
recommended)\n"), 7 );
| + }
|
| for(;;) {
| answer = cpr_get("keygen.algo",_("Your selection? "));
| @@ -779,6 +786,11 @@
| m_free(answer);
| if( algo == 1 && !addmode ) {
| algo = 0; /* create both keys */
| + break;
| + }
| + else if( opt.expert && algo == 7 ) {
| + algo = PUBKEY_ALGO_RSA;
| + *r_usage = PUBKEY_USAGE_SIG | PUBKEY_USAGE_ENC;
| break;
| }
| else if( algo == 6 && addmode ) {
- --
The Thraddash: "So, what's this? SNORT! An unknown alien species?"
"How wonderful! Someone new to fight!"
Full Game Win/Mac/Linux: <http://sc2.sourceforge.net>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iQB5AwUBQVhGCQEP2l8iXKAJAQFC4gMfbKfNOF77
yGWicopPkhSs3+4JpkRSL2ad
YjgFthkEx+phXLb1h5L8IChZAk6OYYTdxZtnocSr
pgZk2atQz8vWQ+/60LUY+vGe
Au5+dGo645alzy10NlJz+crOtUA+XIuNURvyuA==
=1+65
-----END PGP SIGNATURE-----
[ Post a follow-up to this message ]
|