🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #175507

Re: GnuPG keys for use by PGP?

#175507
From: Thomas J. Boschloo
Date: Mon, 27 Sep 2004 16:55
78 lines
4046 bytes
-----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

iQB5AwUBQVhGCQEP2l8iXKAJAQFC4gMfbKfNOF77yGWicopPkhSs3+4JpkRSL2ad
YjgFthkEx+phXLb1h5L8IChZAk6OYYTdxZtnocSrpgZk2atQz8vWQ+/60LUY+vGe
Au5+dGo645alzy10NlJz+crOtUA+XIuNURvyuA==
=1+65
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <41584c9b$0$769$3a628fcd@reader20.nntp.hccnet.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.security.pgp.20140722.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!transit.nntp.hccnet.nl!reader.nntp.hccnet.nl!not-for-mail
References: <95683b8a7a34dc6bcfba9a6839a04aa6@dizum.com> <414f06be$0$771$3a628fcd@reader20.nntp.hccnet.nl> <I4CtM4.qE@vulcan.xs4all.nl>

Show Full Headers
Complete Article Headers
Message-ID: <41584c9b$0$769$3a628fcd@reader20.nntp.hccnet.nl>
Subject: Re: GnuPG keys for use by PGP?
Date: Mon, 27 Sep 2004 18:55:37 +0200
From: "Thomas J. Boschloo" <nospam@hccnet.nl.invalid>
References: <95683b8a7a34dc6bcfba9a6839a04aa6@dizum.com> <414f06be$0$771$3a628fcd@reader20.nntp.hccnet.nl> <I4CtM4.qE@vulcan.xs4all.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.security.pgp.20140722.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!transit.nntp.hccnet.nl!reader.nntp.hccnet.nl!not-for-mail
User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: alt.security.pgp,alt.privacy.anon-server
In-Reply-To: <I4CtM4.qE@vulcan.xs4all.nl>
X-Enigmail-Version: 0.86.1.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 78
Organization: HCCnet Nieuwsgebruiker
NNTP-Posting-Date: 27 Sep 2004 17:23:40 GMT
NNTP-Posting-Host: 62.251.35.19
X-Trace: 1096305820 reader20.nntp.hccnet.nl 769 62.251.35.19:1146
X-Complaints-To: abuse@hccnet.nl