-
Notifications
You must be signed in to change notification settings - Fork 11
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
Use SecretBox
for all secret values
#144
Merged
fjarri
merged 26 commits into
entropyxyz:master
from
dvdplm:dp-wrap-secrets-in-secretbox-77
Sep 30, 2024
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
7b44069
Use more SecretBox-es
dvdplm 7073b93
Remove TODO
dvdplm 965aaf8
Use SecretBox for SecretKeyPaillier members
dvdplm bdeca27
CiphertextMod takes randomizer in a SecretBox
dvdplm 1c668ef
SecretKeyPaillierPrecomputed::primes wrapped in SecretBox (and associ…
dvdplm 7cdf476
SecretKeyPaillierPrecomputed::totient is wrapped in SecretBox
dvdplm 1ca1671
Add comment on why `totient_nonzero` cannot be wrapped in a SecretBox…
dvdplm e4efcc1
Enable the `zeroize` feature of `crypto-bigint`
dvdplm 1c28c15
SecretKeyPaillierPrecomputed::inv_totient is now wrapped in a `Secret…
dvdplm b388d9c
Cleanup
dvdplm 5c107c6
Add question about commit_wide
dvdplm 8ecd879
Impl Serialize for SecretKeyPaillier
dvdplm a0e9623
Make AffGProof rho and rho_y SecretBoxes
dvdplm 28b36e9
Merge branch 'master' into dp-wrap-secrets-in-secretbox-77
dvdplm f4368b7
typo
dvdplm 8e2ae99
Remove SecretBox around Randomizer and RandomizerMod given they are a…
dvdplm f72c393
Revert to passing references
dvdplm 555cca7
Fix clippy complaints
dvdplm ed43266
Remove unneeded trait impls
dvdplm 183bc7d
Test for debug output
dvdplm dcb95ce
Test secret paillier key serialization
dvdplm f5e4db8
Review feedback
dvdplm 3386bb1
Impl PartialEq for SecretkeyPaillier
dvdplm 01c7c03
Use secrecy 0.10
dvdplm 5623b40
Merge branch 'master' into dp-wrap-secrets-in-secretbox-77
dvdplm 66b313f
Cleanup
dvdplm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder how far should we go to protect the secrets? In this sum, for example, the safest way to do it is to actually write out an explicit loop mutating the sum inside a
SecretBox
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I have the same concern and a poor intuition for what "good enough" means here.
By explicit loop, do you mean something like this?
In this case here I'm not so sure it's worth it. One line below we'd
expose_secret
again to addbeta_sum
todelta
. But perhapsdelta
is a secret too? 😱