From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60650 Path: news.gmane.org!not-for-mail From: Daiki Ueno Newsgroups: gmane.emacs.gnus.general Subject: Re: Fwd: [PATCH]: gnus: use correct GPG hash algorithm in 'micalg' field Date: Fri, 29 Jul 2005 15:33:35 +0900 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1122619345 16703 80.91.229.2 (29 Jul 2005 06:42:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 29 Jul 2005 06:42:25 +0000 (UTC) Cc: Ding List Original-X-From: ding-owner+M9178@lists.math.uh.edu Fri Jul 29 08:42:16 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DyOZI-00007W-81 for ding-account@gmane.org; Fri, 29 Jul 2005 08:42:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1DyORR-0004ou-00; Fri, 29 Jul 2005 01:33:57 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1DyORM-0004op-00 for ding@lists.math.uh.edu; Fri, 29 Jul 2005 01:33:52 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1DyORL-0006vv-6l for ding@lists.math.uh.edu; Fri, 29 Jul 2005 01:33:51 -0500 Original-Received: from g96069.scn-net.ne.jp ([210.231.96.69] helo=well-done.deisui.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1DyORJ-0001gF-00 for ; Fri, 29 Jul 2005 08:33:50 +0200 Original-Received: from l209016.ppp.asahi-net.or.jp ([218.219.209.16] helo=well-done.deisui.org) by well-done.deisui.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1DyOR6-0006JJ-Nq; Fri, 29 Jul 2005 15:33:36 +0900 Original-To: Reiner Steib , Enrico Scholz X-Attribution: DU In-Reply-To: (Reiner Steib's message of "Thu, 28 Jul 2005 17:02:17 +0200") User-Agent: T-gnus/6.17.2 (based on No Gnus v0.2) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 MULE XEmacs/21.4 (patch 17) (Jumbo Shrimp) (i686-pc-linux) X-Spam-Score: -0.7 (/) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60650 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:60650 Hello, > Enrico Scholz writes: > > when creating 'PGP/MIME Sign' signatures with Gnus v5.10.7 (from the > > xemacs-sumo-20050715 tarball) the Content-Type: will be always something > > like > > > > | Content-Type: multipart/signed; boundary="=-=-="; > > | micalg=pgp-sha1; protocol="application/pgp-signature" > > ~~~~ > The attached patch fixes this; currently, it relies on the special > status-fd format of gnupg. I do not know if this is standardized > across all pgp implementations (are there other ones in use with > gnus?). The new method 'ensc/mml2015-pgg-signinfo' should be moved > into pgg.el, but I do not have the overview about the gnus/pgg design > to touch two packages. I'm not sure that the micalg= parameter is still mandatory, while the hash algorithm used is embedded in OpenPGP packets. It can be obtained by using the builtin packet parser (pgg-parse), without depending on --status-fd output of GnuPG. Try the following: (require 'pgg-parse) (setq pgg-parse-hash-algorithm-alist (nconc pgg-parse-hash-algorithm-alist '((8 . SHA256) (9 . SHA384) (10 . SHA512)))) (pgg-parse-armor "\ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iQEVAwUAQuO4ZzyfXseeoEz2AQoJMggArcGx8nhA21/J5QSaiWKC7FzzB2DLSMiq D4FQD26NEW38CjcBBq9TqTHm8yCI5dOsTjoiMVfhooBMKTel4P0yAhiuqXthx1Im J7LCIyVtEGJcBeOioN4c/wu0yHUsDM+E4Xuso56M2PpBGOekWO65fmEPRLFULP6b mreYBrPqApD49Ow7x2qa65Jy1hhSA0tcXYaqW7IfNciUjVLmsV+e4JrJYXQfwD86 wI2A0/WoxQAD8VMH81MUggclmm41drddz3ceSA3PlRHcFL0vQ1/mCHXJ+o5BwuvW gA4a+S5wTg51RZ/tAfbeIQEkB7sxmjMDLLdCxA26zptt5YILMvNkuQ== =Et6W -----END PGP SIGNATURE-----") => ((2 (version . 3) (signature-type . "Signature of a binary document") (creation-time 17123 47207 0) (key-identifier . "3C9F5EC79EA04CF6") (public-key-algorithm . RSA) (hash-algorithm . SHA512))) Regards, -- Daiki Ueno