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

RSA: Remove QQ from RsaKeyPair. #1799

Merged
merged 1 commit into from
Nov 9, 2023
Merged

RSA: Remove QQ from RsaKeyPair. #1799

merged 1 commit into from
Nov 9, 2023

Conversation

briansmith
Copy link
Owner

QQ comprised almost 25% of the bulk of RsaKeyPair and is actually completely unnecessary since elem_reduced can do the whole reduction itself.

This has the nice and important side effect of eliminating some conversion operations between bigint types.

This is also a step towards eliminating some of the unsafe trait stuff that kinda-but-not-really modeled modulus relationships.

Copy link

codecov bot commented Nov 8, 2023

Codecov Report

Merging #1799 (30f303a) into main (cbcac26) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1799      +/-   ##
==========================================
- Coverage   96.01%   96.01%   -0.01%     
==========================================
  Files         137      137              
  Lines       20781    20752      -29     
  Branches      226      226              
==========================================
- Hits        19953    19924      -29     
+ Misses        795      794       -1     
- Partials       33       34       +1     
Files Coverage Δ
src/arithmetic/bigint.rs 99.17% <100.00%> (+0.01%) ⬆️
src/arithmetic/bigint/boxed_limbs.rs 100.00% <ø> (ø)
src/arithmetic/bigint/modulus.rs 99.21% <ø> (-0.07%) ⬇️
src/rsa/keypair.rs 97.10% <100.00%> (+0.15%) ⬆️

... and 2 files with indirect coverage changes

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

QQ comprised almost 25% of the bulk of RsaKeyPair and is actually
completely unnecessary since `elem_reduced` can do the whole
reduction itself.

This has the nice and important side effect of eliminating some
conversion operations between `bigint` types.

This is also a step towards eliminating some of the `unsafe trait`
stuff that kinda-but-not-really modeled modulus relationships.
@briansmith briansmith merged commit 946ce87 into main Nov 9, 2023
137 of 138 checks passed
@briansmith briansmith deleted the b/qq branch November 9, 2023 22:31
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.

1 participant