git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Prefer "long" key format output when verifying pgp signatures

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 16, 2016, 22:09 UTC
Message-ID
<xmqqinv0bc2j.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<alpine.LFD.2.20.1608161309350.14878@i7>
Linus Torvalds <torvalds@linux-foundation.org> writes:
Show 25 quoted lines
> From: Linus Torvalds <torvalds@linux-foundation.org>
> Date: Tue, 16 Aug 2016 13:10:24 -0700
> Subject: [PATCH] Prefer "long" key format output when verifying pgp signatures
>
> Yes, gpg2 already uses the long format by default, but most
> distributions seem to still have "gpg" be the older 1.x version due to
> compatibility reasons.  And older versions of gpg only show the 32-bit
> short ID, which is quite insecure.
> ...
> But the 32-bit key ID's really are broken. Also note that because of the 
> differences between gpg-1.x and gpg-2.x, hopefully any scripted key ID 
> parsing code (if such code exists) is already flexible enough to not care.
>
> This was triggered by the fact that the "evil32" project keys ended up
> leaking to the public key servers, so now there are 32-bit aliases for
> just about every open source developer that you can easily get by
> mistake if you use the 32-bit short ID format.
>
> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
> ---
>
> That's a very long commit message for a very trivial patch.
>
> I'm not particularly happy with the 64-bit long format either, but it's 
> better than what we have now, and appears to be as good as it gets.
Thanks.  Will queue.
Show 15 quoted lines
>
>  gpg-interface.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/gpg-interface.c b/gpg-interface.c
> index 08356f92e7b3..8672edaf4823 100644
> --- a/gpg-interface.c
> +++ b/gpg-interface.c
> @@ -217,6 +217,7 @@ int verify_signed_buffer(const char *payload, size_t payload_size,
>  	argv_array_pushl(&gpg.args,
>  			 gpg_program,
>  			 "--status-fd=1",
> +			 "--keyid-format=long",
>  			 "--verify", temp.filename.buf, "-",
>  			 NULL);
Previous: Linus Torvalds
Message 2 of 2 in “Prefer "long" key format output when verifying pgp signatures”
  1. Prefer "long" key format output when verifying pgp signaturesLinus Torvalds, Aug 16, 2016
  2. Junio C HamanoAug 16, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.