All of lore.kernel.org
 help / color / mirror / Atom feed
* Seqouia-SQZ for OpenPGP operations?
@ 2026-12-05 13:19 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
  2026-12-05 14:01 ` brian m. carlson
  0 siblings, 1 reply; 2+ messages in thread
From: 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣 @ 2026-12-05 13:19 UTC (permalink / raw)
  To: git


[-- Attachment #1.1.1: Type: text/plain, Size: 1544 bytes --]

Currently git uses GnuPG for PGP operations. However, GnuPG implements 
LibrePGP instead of the IETF standardized OpenPGP, and refuses to read 
the newest v6 OpenPGP keys, including keys with RFC 9980 Post Quantum 
Cryptography.

Most distros patch LibrePGP out of GnuPG, but it still usually only 
implements OpenPGP v4 rather than the latest v6.

While GnuPG 2.5.23 has **partial** support for reading (not generating) 
RFC 9580 v6 Keys and RFC 9980 PQC keys, most distros are skipping 2.5 as 
it changes the default key generation mode to LibrePGP, and the "FreePG" 
patches to remove LibrePGP are not out yet.
LibrePGP has many [0] documented weaknesses compared to OpenPGP v6.

Therefore, I suggest that OpenPGP operations are moved to the newer 
library Sequoia sqz. The Sequoia sq CLI is powered by the Sequoia sqz 
library as of a few months ago.

For now, users can use the Sequoia reimplementation of gpg 
(sequoia-chameleon-gnupg, aka gpg-sq) by running git config --global 
gpg.program gpg-sq , assuming that it is installed

[0] <https://blog.pgpkeys.eu/critique-critique.html>

-- 
George truly, Velocifyer
Improve your wifi reception for free 
<https://www.youtube.com/watch?v=LY8Wi7XRXCA> (Libre JS version 
<https://redirect.invidious.io/watch?v=LY8Wi7XRXCA>)
This email does not constitute a legally binding contract
My OpenPGP key is 1BA0 FC4B 80E0 F21B 0269 8CEE 634E BF87 40C7 48BE 
<https://blog.velocifyer.com/pgp-certificate.asc>. Please sign it!
Remember to reply all on mailing lists

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 669 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Seqouia-SQZ for OpenPGP operations?
  2026-12-05 13:19 Seqouia-SQZ for OpenPGP operations? 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
@ 2026-12-05 14:01 ` brian m. carlson
  0 siblings, 0 replies; 2+ messages in thread
From: brian m. carlson @ 2026-12-05 14:01 UTC (permalink / raw)
  To: 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
  Cc: git

[-- Attachment #1: Type: text/plain, Size: 3000 bytes --]

On 2026-12-05 at 13:19:51, 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣 wrote:
> Currently git uses GnuPG for PGP operations. However, GnuPG implements
> LibrePGP instead of the IETF standardized OpenPGP, and refuses to read the
> newest v6 OpenPGP keys, including keys with RFC 9980 Post Quantum
> Cryptography.

I believe this has changed in the latest version, but I'm aware of the
situation since I was a member of the IETF OpenPGP Working Group.

> Most distros patch LibrePGP out of GnuPG, but it still usually only
> implements OpenPGP v4 rather than the latest v6.
> 
> While GnuPG 2.5.23 has **partial** support for reading (not generating) RFC
> 9580 v6 Keys and RFC 9980 PQC keys, most distros are skipping 2.5 as it
> changes the default key generation mode to LibrePGP, and the "FreePG"
> patches to remove LibrePGP are not out yet.
> LibrePGP has many [0] documented weaknesses compared to OpenPGP v6.

Again, I'm aware of the LibrePGP weaknesses.

> Therefore, I suggest that OpenPGP operations are moved to the newer library
> Sequoia sqz. The Sequoia sq CLI is powered by the Sequoia sqz library as of
> a few months ago.
> 
> For now, users can use the Sequoia reimplementation of gpg
> (sequoia-chameleon-gnupg, aka gpg-sq) by running git config --global
> gpg.program gpg-sq , assuming that it is installed

It's not quite that easy.  First, we have some interfaces that parse
the raw GnuPG --status-fd output and we rely on that to do things like
parse validation statuses.  In addition, we expose it publicly through
the `--raw` option and that's the only way for people to effectively
build policy around things like hash algorithms or specific keys in
verification.

Sequoia also salts every message[0] and that produces non-deterministic
results in our testsuite, causing widespread failures[1].  That makes it
much more difficult for us to do things like verify bit-for-bit
interoperability of commits that are converted between SHA-1 and
SHA-256.  I've requested that the chameleon support deterministic
signatures at least for a test mode in
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1137357, but until
that happens, there won't be any support for gpg-sq in the Git
testsuite.  It does certainly work fine to sign and verify existing
commits and I do in fact do that using Debian's packages to make gpg-sq
the default gpg, but I have to force gpg-g10code to run tests.

So for those reasons, I don't think we're going to prefer sq as our
implementation.  Users can use gpg-sq without a problem unless they're
running tests and many distros provide a way to make that the default
/usr/bin/gpg.

[0] I'm aware v6 requires it, but it salts even v4 messages and there's
no way to disable this.
[1] I have an unpublished branch that fixes many of the issues in the
testsuite, but I won't be sending any of it up until it's complete.
-- 
brian m. carlson (they/them)
Toronto, Ontario, CA
Speaking for myself only

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 325 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-12-05 14:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-05 13:19 Seqouia-SQZ for OpenPGP operations? 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
2026-12-05 14:01 ` brian m. carlson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.