Skip to content

crypto: drop cached own cross-signing keys when they change on the server - #635

Open
iFixRobots wants to merge 1 commit into
mainfrom
iFixRobots/drop-stale-own-cross-signing-keys
Open

iFixRobots wants to merge 1 commit into
mainfrom
iFixRobots/drop-stale-own-cross-signing-keys

Conversation

@iFixRobots

Copy link
Copy Markdown
Contributor

When another device resets cross-signing, storeCrossSigningKeys clears the cached public keys, but GetOwnCrossSigningPublicKeys rebuilds them from mach.CrossSigningKeys, which still holds the old private keys. SAS then sends the old master key in the MAC and rejects the new one with unknown key ID, so the device can't be verified again until it restarts. This drops the cached private keys when the server's own keys no longer include them.

View in Indent
Tag @indent to continue the conversation here.

@iFixRobots
iFixRobots requested a review from tulir October 21, 2026 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants