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

Ticket26939 26943 26940 #3

Merged
merged 13 commits into from Oct 17, 2018
Merged

Ticket26939 26943 26940 #3

merged 13 commits into from Oct 17, 2018

Conversation

Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
@nmathewson
Copy link
Owner

@nmathewson nmathewson commented Aug 10, 2018

Fix safety, documentation, and usize issues.

nmathewson added 12 commits Aug 9, 2018
We want to use usize for counting elements in a buffer or in a
vector.  But for system parameters like "k" or "n" or the number of
counters, we use u32, for consistency across systems.

This patch is incomplete, since we need to change some APIs. I'll do
that in the next commit.
This way it can check for parameters that would overflow u32.
This doesn't fix our unwrapping usage, though.
Also, require that no TR has X coordinate of zero -- otherwise
somebody's share would be the secret value!
Copy link
Contributor

@teor2345 teor2345 left a comment

Just a few typos to fix, then we can merge.

rust/src/math.rs Outdated
// (Given a value in range 0..FE_VAL_MAX, the output is in range
// 0..FULL_BITS_MASK.)
/// Given a value in range 0..U64_MAX, returns a value in range 0..FE_VAL_MAX that
/// is equavalent modulo PRIME_ORDER.
Copy link
Contributor

@teor2345 teor2345 Sep 21, 2018

typo: equivalent

counter_ids: Vec<CtrId>, // XXXX use strings??
/// A map frounc couter ID to actual counter values.
Copy link
Contributor

@teor2345 teor2345 Sep 21, 2018

typo: from the?

@nmathewson nmathewson merged commit 9a10c01 into master Oct 17, 2018
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment