Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MXCrossSigning: Gossip the master key #871

Merged
merged 3 commits into from
Jun 26, 2020
Merged

MXCrossSigning: Gossip the master key #871

merged 3 commits into from
Jun 26, 2020

Conversation

manuroe
Copy link
Contributor

@manuroe manuroe commented Jun 25, 2020

{
[self.crypto.store storeSecret:secret withSecretId:MXSecretId.crossSigningMaster];
dispatch_group_leave(onPrivateKeysReceivedGroup);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are missing balance call to dispatch_group_leave(onPrivateKeysReceivedGroup); when isSecretValid == NO for each key.
From dispatch_group_enter documentation:

A call to this function must be balanced with a call to dispatch_group_leave.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current algorithm seems correct to me. If the secret is not valid, we need to wait for another device to send another secret.
This blocks return NO to keep receiving secrets.

@manuroe manuroe merged commit d059cba into develop Jun 26, 2020
@manuroe manuroe deleted the riot_3346 branch July 29, 2020 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support SSSS sharing of cross signing master key
2 participants