Gnus development mailing list
 help / color / mirror / Atom feed
From: Daiki Ueno <ueno@unixuser.org>
Cc: Ding List <ding@gnus.org>
Subject: Re: Fwd: [PATCH]: gnus: use correct GPG hash algorithm in 'micalg' field
Date: Fri, 29 Jul 2005 15:33:35 +0900	[thread overview]
Message-ID: <dcfedf2b-40aa-4522-9662-1efa7959c698@well-done.deisui.org> (raw)
In-Reply-To: <v9fytz6kjq.fsf@marauder.physik.uni-ulm.de> (Reiner Steib's message of "Thu, 28 Jul 2005 17:02:17 +0200")

Hello,

> Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> 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



  reply	other threads:[~2005-07-29  6:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-28 15:02 Fwd: [PATCH]: gnus: use correct GPG hash algorithm in 'micalg' field (was: Broken GPG signatures due to bad 'micalg' value) Reiner Steib
2005-07-29  6:33 ` Daiki Ueno [this message]
2005-08-03 20:41   ` Fwd: [PATCH]: gnus: use correct GPG hash algorithm in 'micalg' field Simon Josefsson
2005-08-05  9:13     ` Fwd: [PATCH]: gnus: use correct GPG hash algorithm in 'micalg' Daiki Ueno
     [not found]       ` <82e593ac-30c0-438c-b353-0f053f0ea2d0-7dooEoSoPCYjbB9gy5Vrp2D2FQJk+8+b@public.gmane.org>
2005-08-05 11:37         ` Jochen Küpper
     [not found]           ` <9ek6j0vcl0.fsf-G2iyDNEOhahHYNAXZw2rCoRsZ6cCL1yJ@public.gmane.org>
2005-08-05 12:05             ` PGP signature and ml software (was: Fwd: [PATCH]: gnus: use correct GPG hash algorithm in 'micalg') Jochen Küpper
2005-08-05 12:55       ` Fwd: [PATCH]: gnus: use correct GPG hash algorithm in 'micalg' field Simon Josefsson
2005-08-05 13:42         ` Reiner Steib
2005-08-08 11:16           ` Simon Josefsson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=dcfedf2b-40aa-4522-9662-1efa7959c698@well-done.deisui.org \
    --to=ueno@unixuser.org \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).