From: "brian m. carlson" <sandals@crustytoothpaste.net>
To: 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣 <velocifyer@velocifyer.com>
Cc: git@vger.kernel.org
Subject: Re: Seqouia-SQZ for OpenPGP operations?
Date: Sat, 5 Dec 2026 14:01:04 +0000 [thread overview]
Message-ID: <axQZH84Phcs-1bLI@fruit.crustytoothpaste.net> (raw)
In-Reply-To: <61fe3cf6-dee9-41a7-a081-648859f2df03@velocifyer.com>
[-- 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 --]
prev parent reply other threads:[~2026-12-05 14:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-05 13:19 Seqouia-SQZ for OpenPGP operations? 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
2026-12-05 14:01 ` brian m. carlson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=axQZH84Phcs-1bLI@fruit.crustytoothpaste.net \
--to=sandals@crustytoothpaste.net \
--cc=git@vger.kernel.org \
--cc=velocifyer@velocifyer.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox