Is there a "-----END PGP SIGNED MESSAGE-----" tag?

Werner Koch wk at gnupg.org
Fri Jun 1 11:27:42 CEST 2012


On Thu, 31 May 2012 23:04, raubvogel at gmail.com said:
> According to http://www.gnupg.org/gph/en/manual.html#AEN153,
> Clearsigned documents do not seem to have a  "-----END PGP SIGNED
> MESSAGE-----" tag. And yet there is a  "-----END PGP MESSAGE-----" tag
> for messages encrypted with gnupg. Am I missing something here?

The armor line tags depend on the type of the message.  For example a
clear signed signature looks like this

  -----BEGIN PGP SIGNED MESSAGE-----
  Hash: SHA1
  
  Stay the curse.
  -----BEGIN PGP SIGNATURE-----
  Version: GnuPG v2.1.0-beta77 (GNU/Linux)
  
  iEYEARECAAYFAk/IigcACgkQTwVA1Xf5X5X12ACfbCn1KEkYtUqH6LOWaV7o2pcq
  yNwAn0caiuKpmJTiiutn+TqMlHsL4c66
  =3pzI
  -----END PGP SIGNATURE-----
  
The two armor lines are required by the special clearsigned format.  The
first BEGIN introduces the signed text, the second ends the signed text
and starts the signature, and the END ends all.  The details are, as
usual, in RFC-4880.


Shalom-Salam,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




More information about the Gnupg-users mailing list