briansmith / ring

Safe, fast, small crypto using Rust
Other
3.64k stars 682 forks source link

Specialize constant_time::xor to 16 bytes. #2092

Closed briansmith closed 3 weeks ago

briansmith commented 3 weeks ago

The compiler doesn't transform the byte-wise XORs into word-wise or SIMD XOR. Instead it generated a massive mess of instructions that did it byte-wise. WIth this implementation, it will generate word-wise XOR, at least.

codecov[bot] commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 97.27%. Comparing base (9d43b01) to head (6a6e701). Report is 3 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2092 +/- ## ======================================= Coverage 97.27% 97.27% ======================================= Files 143 143 Lines 20017 20020 +3 Branches 228 228 ======================================= + Hits 19472 19475 +3 Misses 519 519 Partials 26 26 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.