Re: Bad signatures issued on macOS

Werner Koch via Gnupg-users <[email protected]> Thu, 29 Jan 2026 10:53:23 +0100
Newsgroups gmane.comp.encryption.gpg.user
Message-ID <[email protected]>
On Wed, 28 Jan 2026 10:38, John Soo said:
> Thanks Werner!
>
> I tried with -v --debug hashing and the content for hashing was not
> printed, is there another flag I need to use?

Let's see using some arbitrary signature

  $ gpg --verify --debug hashing swdb.lst.sig swdb.lst
  
  gpg: reading options from '/home/wk/.gnupg/gpg.conf'
  gpg: reading options from '[cmdline]'
  gpg: reading options from '/home/wk/.gnupg/common.conf'
  gpg: NOTE: THIS IS A DEVELOPMENT VERSION!
  gpg: It is only intended for test purposes and should NOT be
  gpg: used in a production environment or with production keys!
  gpg: enabled debug flags: hashing
  gpg: enabled compatibility flags:
  gpg: Signature made Fri 23 Feb 2024 02:34:37 PM CET
  gpg:                using EDDSA key 6DAA6E64A76D2840571B4902528897B826403ADA
  gpg: using pgp trust model
  gpg: please do a --check-trustdb
  gpg: Good signature from "Werner Koch (dist signing 2020)" [ultimate]
  gpg: binary signature, digest algorithm SHA256, key algorithm ed25519
  gpg: secmem usage: 0/32768 bytes in 0 blocks

  $ ls -lt | head -3
  total 29839972
  -rw-r--r--   1 wk   wk          4725 Jan 29 10:44 dbgmd-00001.verify
  -rw-r--r--   1 wk   wk            41 Jan 29 10:44 dbgmd-00002.unknown

dbgmd-00001.verify is the same as swdb.lst
dbgmd-00002.unknown is the trailer hashed after swdb.lst.

When creating the signature you should have seen
dbgmd-00001.sign with the to be signed data
dbgmd-00001.unknown with the trailer.

dbgmd-00001.unknown gets overwritten so you need to store it away for
later comparing.


Salam-Shalom,

   Werner


-- 
The pioneers of a warless world are the youth that
refuse military service.             - A. Einstein

_______________________________________________
Gnupg-users mailing list
[email protected]
https://lists.gnupg.org/mailman/listinfo/gnupg-users
openpgp-digital-signature.asc (application/pgp-signature, 284 B)
-----BEGIN PGP SIGNATURE-----

iJ8EARYKAEcWIQSHd0YfKgdOvEgNNZQZzByeCFsQegUCaXsuExsUgAAAAAAEAA5t
YW51MiwyLjUrMS4xMSwyLDINHHdrQGdudXBnLm9yZwAKCRAZzByeCFsQeoxAAP9u
d/df4Agfk1Ousndvqmh4NvHYYS5hqRE3NiOaOTL9HQD/UNE9ElmkNcPXSytWPNjJ
k82bnjTAm2JTj+wijZaUugw=
=G4Tn
-----END PGP SIGNATURE-----