mirror of
https://github.com/saymrwulf/betrusted-curve25519-dalek-source.git
synced 2026-09-09 21:10:43 +00:00
Pure refactor, semantics identical (cargo check green): - from_bytes_wide_parts(bytes) -> (Scalar52, Scalar52): the byte-unpack loops + the 52-bit lo/hi split, as a named prefix - split_words_lo / split_words_hi: the two split halves, built with Scalar52([...]) struct literals instead of per-index mutation - from_bytes_wide: parts -> montgomery_mul(lo, R) -> montgomery_mul(hi, RR) -> add Why: the verification side measured that (a) a WP walk whose motives contain a montgomery_mul call replays its whole body at every kernel step, and (b) straight-line chains of IndexMut closure back-functions make kernel defeq exponential in chain depth. Named prefix functions fix (a); struct-literal construction eliminates the closures and fixes (b). With this shape the full from_bytes_wide certificate kernel-checks in 77 seconds (was: aborted after 30+ minutes). |
||
|---|---|---|
| .. | ||
| backend | ||
| constants.rs | ||
| diagnostics.rs | ||
| edwards.rs | ||
| field.rs | ||
| lib.rs | ||
| macros.rs | ||
| montgomery.rs | ||
| ristretto.rs | ||
| scalar.rs | ||
| traits.rs | ||
| window.rs | ||