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

limb::parse_big_endian_and_pad_consttime: Rewrite. #2176

Merged
merged 1 commit into from
Dec 8, 2024
Merged

Conversation

briansmith
Copy link
Owner

Convert from bytes to limbs using Limb::from_be_bytes, in a generally more efficient manner, and in a way that avoids doing any arithmetic on the bytes. This addresses the TODO comment about making the constant-timedness of the code clearer.

@briansmith briansmith self-assigned this Dec 8, 2024
Copy link

codecov bot commented Dec 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.93%. Comparing base (8086c79) to head (2c0bb5b).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2176      +/-   ##
==========================================
- Coverage   96.93%   96.93%   -0.01%     
==========================================
  Files         154      154              
  Lines       20147    20143       -4     
  Branches      468      464       -4     
==========================================
- Hits        19530    19526       -4     
  Misses        512      512              
  Partials      105      105              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@briansmith briansmith force-pushed the b/from_be branch 6 times, most recently from cb443b4 to ae6bf76 Compare December 8, 2024 06:26
@briansmith briansmith changed the title limb: Use Limb::from_be_bytes instead of bit shifting. limb::parse_big_endian_and_pad_consttime: Rewrite. Dec 8, 2024
Convert from bytes to limbs using `Limb::from_be_bytes`, in a
generally more efficient manner, and in a way that avoids doing
any arithmetic on the bytes. This addresses the TODO comment
about making the constant-timedness of the code clearer.
@briansmith briansmith merged commit 1e539cd into main Dec 8, 2024
158 checks passed
@briansmith briansmith deleted the b/from_be branch December 8, 2024 07:24
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