Repository navigation
Bump golang.org/x/crypto from 0.23.0 to 0.45.0 - #1
Merged
MagicalTux merged 1 commit intoMar 24, 2026
Merged
Conversation
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.23.0 to 0.45.0. - [Commits](golang/crypto@v0.23.0...v0.45.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-version: 0.45.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
dependabot
Bot
deleted the
dependabot/go_modules/golang.org/x/crypto-0.45.0
branch
March 24, 2026 11:25
MagicalTux
added a commit
that referenced
this pull request
May 16, 2026
A security audit of the dklstss package found five issues; this commit
addresses all of them and adds regression tests.
1. (Critical) crypto/ot/otext: prgExpand was keyed only by the seed. The
OT extension setup persists across many signings, so every Extend()
call against the same ExtReceiver re-derived the same (t0, t1)
matrices. The wire message u_j = t0[j] ⊕ t1[j] ⊕ c therefore leaked
c¹⊕c² (= bitsLE(α¹)⊕bitsLE(α²)) to the sender across calls — i.e.
after two signings with the same peer, malicious Bob recovers the
bitwise XOR of Alice's two nonce-share bit decompositions. With
enough signings a lattice attack on biased-nonce ECDSA extracts the
joint key. Fix: prgExpand now derives the AES (key, IV) from
SHA-512/256("DKLS23-otext-prg-v2" || seed || sid), making every
Extend() call produce an independent PRG stream. Demonstrated leak
before the fix; regression test verifies absence after.
2. (High) dklstss/signing_party.go + presign_party.go: presignSession
and signSession were deterministic functions of (pub, subset[, hash]).
Two presigns with the same subset, or two signings of the same hash
with the same subset, produced identical ΠMul sids and reused the
long-term OT-extension setup with matching (seed, sid) — re-opening
the leak fixed in #1. Round-2 now folds every signer's freshly-
random K_i into the effective ssid before any ΠMul runs, so the
effective sid is fresh per call even when all static inputs match.
3. (Medium) dklstss/signing.go:makeSid encoded alice/bob indexes as
single bytes, so a 256-party committee would collide sids on pairs
whose low bytes matched. Encoded as 4-byte big-endian instead.
resharingSession's newThreshold likewise extended from 1 to 4 bytes.
4. (Medium) dklstss/resharing.go + resharing_party.go: when
λ_i · x_i mod q == 0 the code silently substituted scaled = 1, which
would change the joint secret by a known offset (caught later by the
pubkey-equality check, but with a confusing error). Replaced with an
immediate fatal error identifying the corrupted share.
5. (Low) dklstss/serialize.go: Save/Load dropped IdentityPub/
IdentityPriv/PeerIdentityPubs. Bumped KeyWireVersion to 2 with
backwards-compatible v1 loading. Also corrected the misleading doc
in key.go claiming OT state isn't persisted by default.
Regression tests added:
- crypto/ot/otext: TestPRGSidBinding (PRG output varies with sid),
TestExtendDoesNotLeakChoiceXorAcrossSessions (u₁⊕u₂ ≠ c₁⊕c₂).
- dklstss: TestSigningPartyRepeatedSignReusesOTSafely,
TestPresignPartyRepeatedReusesOTSafely,
TestSyncSignRepeatedReusesOTSafely (the round-2 ssid mix works),
TestMakeSidNoTruncationAcross256Boundary (4-byte encoding),
TestReshareRejectsZeroScaledShare (Xi=0 error path),
TestKeySaveLoadIdentityMaterial (v2 wire format round-trip).
Existing TestKeyLoadRejectsBadVersion updated to use the
KeyWireVersion constant rather than a hard-coded "1".
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps golang.org/x/crypto from 0.23.0 to 0.45.0.
Commits
4e0068cgo.mod: update golang.org/x dependenciese79546essh: curb GSSAPI DoS risk by limiting number of specified OIDsf91f7a7ssh/agent: prevent panic on malformed constraint2df4153acme/autocert: let automatic renewal work with short lifetime certsbcf6a84acme: pass context to requestb4f2b62ssh: fix error message on unsupported cipher79ec3a5ssh: allow to bind to a hostname in remote forwarding122a78fgo.mod: update golang.org/x dependenciesc0531f9all: eliminate vet diagnostics0997000all: fix some commentsDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)You can disable automated security fix PRs for this repo from the Security Alerts page.