• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kaidokert / fixed-bigint-rs / 29715991077
97%

Build:
DEFAULT BRANCH: main
Ran 20 Jul 2026 04:04AM UTC
Jobs 1
Files 62
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 Jul 2026 04:03AM UTC coverage: 97.374% (+0.07%) from 97.306%
29715991077

push

github

web-flow
Constant-time shift-by-secret (ct_shl) + CT next_power_of_two for HeaplessBigInt (#172)

* Add ct_shl barrel shifter; make heapless Ct next_power_of_two constant-time

Reinstates the Ct NextPowerOfTwo dropped in #170, now genuinely CT.

ct_shl (shift.rs): a constant-time left shift by a SECRET amount. The
inherent Shl<usize> branches and cache-indexes on the shift amount, so
shifting by a secret leaks it (the #170 P1). The barrel shifter never lets
the secret drive control flow: each stage k shifts by the PUBLIC constant
2^k and applies-or-not via a masked ct_select on bit k of the amount;
over-width amounts mask to zero. The only ops touching the secret are `>> k
& 1` and a u32 `>=` — both branchless. O(width·log width), result width
self.len.

89 of 90 new or added lines in 3 files covered. (98.89%)

5785 of 5941 relevant lines covered (97.37%)

6997.87 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
95.54
4.49% src/heapless/power_of_two.rs
Jobs
ID Job ID Ran Files Coverage
1 29715991077.1 20 Jul 2026 04:04AM UTC 62
97.37
GitHub Action Run
Source Files on build 29715991077
  • Tree
  • List 62
  • Changed 3
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29715991077
  • a5517684 on github
  • Prev Build on main (#29714086842)
  • Next Build on main (#29722797323)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc