You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 38acde5
Browse filesBrowse the repository at this point in the historyBrowse files
release: v2.7.0 — key-handling and Double Ratchet security fixes
Fixes two critical key-handling defects, three Double Ratchet deviations
from the Signal specification, and a password-KDF weakness.
Critical:
- KeyConversion identified key format by trial validation. Ed25519 and
X25519 public keys are both 32 opaque bytes and ~12.4% of X25519 keys
(2486/20000 measured) also decode as valid Ed25519 points, so that
fraction was silently converted into a different key. Added an explicit
ConvertPublicKeyToX25519(key, inputIsEd25519) and made device lookup
match the sender hint verbatim before attempting conversion.
- CryptoProvider.ConvertEd25519PrivateKeyToX25519 returned the caller's
array for 32-byte input; all four call sites clear the result in a
finally, so the call zeroed the live private key. Returns a copy now.
Protocol:
- Standard rotation strategy no longer rotates the DH ratchet key on a
send counter. Rotating before the peer holds the new key diverges the
DH inputs and permanently breaks the session.
- Implemented the PN header field (EncryptedMessage.PreviousChainLength)
and SkipReceiverMessageKeys, so messages arriving out of order across
a ratchet step are recoverable instead of lost.
- Stopped retaining used message keys in SentMessages, which is
serialized to disk and defeated forward secrecy.
Also: per-key random Argon2id salt for password-protected key storage
(breaking blob-layout change), full 12-entry X25519 small-order point
blocklist replacing one that decoded a hex string as base64 and could
never match, full deep-clone of session key material, secure-clear of
superseded root/chain/ratchet keys, age-ordered skipped-key eviction,
and a nonce overload that threw on every call.
Repo housekeeping: move CLAUDE.md to .claude/CLAUDE.md and ignore
docs/superpowers and docs/plans.
Build clean (0 warnings, 0 errors). 546/546 tests pass on net8.0 and
net10.0; the previously intermittent multi-device sync test now passes
6/6 consecutive isolated runs.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0 commit comments