* 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