Vendor: Git project · https://git-scm.com/ · pkg:generic/git · Last reviewed 2026-12-05 · History
Summary
- Git has no TLS or SSH implementation: HTTPS goes through libcurl and its TLS library (see curl, OpenSSL), SSH through the system
ssh(see OpenSSH), and Git has no setting for key exchange groups (checked 2026-12-05).123 - Signing runs
gpg,gpgsmorssh-keygen, chosen withgpg.format(openpgp,x509,ssh); Git accepts whatever key types the program supports and documents no post-quantum signature type (checked 2026-12-05).45 - Restricting algorithms: pass options to
sshwithcore.sshCommand; for HTTPS Git offers onlyhttp.sslVersionandhttp.sslCipherList.23 - Nothing planned, in progress or requested in Git was found (checked 2026-12-05); the latest release is 2.56.1 (2026-10-26).6
- Elsewhere:
gpgsmhas ML-DSA signing in its development branch only, and OpenSSHssh-keygenlists the hybrid key typemldsa44-ed25519; see Commit and tag signing.78
To restrict SSH key exchange, run
git config core.sshCommand "ssh -o KexAlgorithms=mlkem768x25519-sha256,sntrup761x25519-sha512"; Git has no equivalent for HTTPS groups.239
Cryptographic operations
- HTTPS: Git calls libcurl (“libcurl library is used for fetching and pushing repositories over http:// or https://”), so TLS 1.3 version, groups (for example X25519MLKEM768) and certificates come from libcurl’s TLS library.1 Git sets only
http.sslVersion,http.sslCipherList,http.sslBackend,http.sslCert,http.sslKeyandhttp.sslCAInfo; no group or curve setting is documented.2 - Alpine 3.25
git2.56.1-r0 depends onso:libcurl.so.4, so its groups are the system libcurl’s; the proof below records what it offers.10 - SSH:
core.sshCommandorGIT_SSH_COMMANDsets the command (defaultssh) and the algorithms are that program’s; see SSH and OpenSSH.311ssh.variantselects argument style; thesshvariant gets-o option.9 - Signing (
gpg.format:openpgpdefault,x509,ssh; programsgpg,gpgsm,ssh-keygen, viagpg.<format>.program) places no key type restriction on any format.45
gpg.format |
Program | Post-quantum state |
|---|---|---|
openpgp |
gpg |
classical in released GnuPG |
x509 |
gpgsm |
ML-DSA signing in the development branch, unreleased |
ssh |
ssh-keygen -Y sign |
lists hybrid key type mldsa44-ed25519; whether -Y sign accepts it is not documented |
- GnuPG: unreleased 2.5.25 NEWS lists “gpgsm: Support for importing ML-DSA signed certificates” and “gpgsm: Support for ML-DSA signing and verification”; the newest release is 2.5.24 (2026-09-23).
gpghas composite Kyber+ECC keys since 2.5.0 and ML-KEM encryption in 2.5.23 behind--allow-9980, which Git does not use; no post-quantum signature forgpg.7 - SSH signing:
user.signingKeytakes a private key path, a public key with ssh-agent, orkey::-prefixed public key;12 verification usesgpg.ssh.allowedSignersFile, optionally acert-authoritykey.4ssh-keygengeneratesecdsa,ecdsa-sk,ed25519(default),ed25519-sk,mldsa44-ed25519,rsaand says-Y signuses “an SSH key” without naming types; neither project documents Git signing withmldsa44-ed25519. See ssh-mldsa44-ed25519.48 - The 2.34 notes: SSH keys sign “object and push-cert signing” but “cannot be used with ssh-keygen from OpenSSH 8.7, whose support for it is broken.”13
Versions
| Change | Version | Package URL | Source |
|---|---|---|---|
gpg.format accepts openpgp or x509, with gpg.<format>.program; X.509 via gpgsm |
2.19 | pkg:generic/git@2.19.0 |
14 |
SSH keys can sign objects and push certificates (gpg.format ssh) |
2.34 | pkg:generic/git@2.34.0 |
13 |
| Latest release (2026-10-26); no post-quantum entry in its notes | 2.56.1 | pkg:generic/git@2.56.1 |
615 |
No release notes mention ML-KEM, ML-DSA or SLH-DSA (checked 2026-12-05 for 2.56.0).15
Configuration
- Enable: no Git switch; needs a libcurl TLS library or an
sshthat offers it, for example OpenSSH 10.0 or later withmlkem768x25519-sha256(see OpenSSH). - Disable classical over SSH (a server offering none cannot be reached):39
git config core.sshCommand "ssh -o KexAlgorithms=mlkem768x25519-sha256,sntrup761x25519-sha512"
- HTTPS: only
http.sslVersionandhttp.sslCipherList; groups are set in libcurl or the TLS library.2
Open work
- No open issue or pull request about post-quantum algorithms on
gitgitgadget/git; thelore.kernel.orgarchive refused the request (checked 2026-12-05).16
Distributions
| Distribution | Package | Dependency on | Source |
|---|---|---|---|
| Alpine 3.25 | git 2.56.1-r0 |
so:libcurl.so.4 |
10 |
The Alpine package lists no dependency on an SSH client.
References
-
Git
INSTALL, section on libcurl, commit 566b6997. https://github.com/git/git/blob/566b6997dd4710b625c0882cf10a7443bf52d183/INSTALL (accessed 2026-12-05) ↩ ↩2 -
Git
Documentation/config/http.adoc,http.sslVersion,http.sslCipherList,http.sslBackend, commit 566b6997. https://github.com/git/git/blob/566b6997dd4710b625c0882cf10a7443bf52d183/Documentation/config/http.adoc (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4 ↩5 -
Git
Documentation/config/core.adoc,core.sshCommand, commit 566b6997. https://github.com/git/git/blob/566b6997dd4710b625c0882cf10a7443bf52d183/Documentation/config/core.adoc (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4 ↩5 -
Git
Documentation/config/gpg.adoc,gpg.format,gpg.<format>.program,gpg.ssh.allowedSignersFile, commit 566b6997. https://github.com/git/git/blob/566b6997dd4710b625c0882cf10a7443bf52d183/Documentation/config/gpg.adoc (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4 -
Git
Documentation/gitformat-signature.adoc, commit 566b6997. https://github.com/git/git/blob/566b6997dd4710b625c0882cf10a7443bf52d183/Documentation/gitformat-signature.adoc (accessed 2026-12-05) ↩ ↩2 -
Git home page, “Latest source release 2.56.1 (2026-10-26)”. https://git-scm.com/ (accessed 2026-12-05) ↩ ↩2
-
GnuPG
NEWS, versions 2.5.0 to 2.5.25 (unreleased), commit 52c687ba (2026-12-03). https://github.com/gpg/gnupg/blob/52c687ba11736fe51c461b1e8f9f79370d792365/NEWS (accessed 2026-12-05) ↩ ↩2 -
ssh-keygen(1), OpenBSD manual pages,
-tkey types and-Y sign. https://man.openbsd.org/ssh-keygen.1 (accessed 2026-12-05) ↩ ↩2 -
Git
Documentation/config/ssh.adoc,ssh.variant, commit 566b6997. https://github.com/git/git/blob/566b6997dd4710b625c0882cf10a7443bf52d183/Documentation/config/ssh.adoc (accessed 2026-12-05) ↩ ↩2 ↩3 -
Alpine package git, branch v3.25, depends
so:libcurl.so.4. https://pkgs.alpinelinux.org/package/v3.25/main/x86_64/git (accessed 2026-12-05) ↩ ↩2 -
Git
Documentation/git.adoc,GIT_SSHandGIT_SSH_COMMAND, commit 566b6997. https://github.com/git/git/blob/566b6997dd4710b625c0882cf10a7443bf52d183/Documentation/git.adoc (accessed 2026-12-05) ↩ -
Git
Documentation/config/user.adoc,user.signingKey, commit 566b6997. https://github.com/git/git/blob/566b6997dd4710b625c0882cf10a7443bf52d183/Documentation/config/user.adoc (accessed 2026-12-05) ↩ -
Git 2.34 release notes. https://github.com/git/git/blob/566b6997dd4710b625c0882cf10a7443bf52d183/Documentation/RelNotes/2.34.0.adoc (accessed 2026-12-05) ↩ ↩2
-
Git 2.19 release notes,
gpg.formatandgpg.<format>.program. https://github.com/git/git/blob/566b6997dd4710b625c0882cf10a7443bf52d183/Documentation/RelNotes/2.19.0.adoc (accessed 2026-12-05) ↩ -
Git 2.56 release notes. https://github.com/git/git/blob/566b6997dd4710b625c0882cf10a7443bf52d183/Documentation/RelNotes/2.56.0.adoc (accessed 2026-12-05) ↩ ↩2
-
GitHub issue and pull request search,
gitgitgadget/git, terms ML-DSA, quantum, mldsa. https://github.com/gitgitgadget/git/pulls?q=quantum (accessed 2026-12-05) ↩