betrusted-curve25519-dalek-.../curve25519-dalek/src
mrwulf 77d587f4af Aeneas-compat: factor from_bytes_wide through named, closure-free helpers
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).
2026-07-04 10:23:26 +02:00
..
backend Aeneas-compat: factor from_bytes_wide through named, closure-free helpers 2026-07-04 10:23:26 +02:00
constants.rs wip: make tests compile 2024-03-02 14:36:19 -06:00
diagnostics.rs Workspace curve25519 under curve25519-dalek 2023-06-27 04:00:12 +00:00
edwards.rs Address new nightly clippy unnecessary qualifications (#639) 2024-03-07 16:58:20 -07:00
field.rs patch: remove ConditionallyNegatable for Aeneas/Charon transpilation 2026-06-30 17:30:36 +02:00
lib.rs Merge branch 'main' into v4.1.1 2024-03-25 06:59:43 +08:00
macros.rs Workspace curve25519 under curve25519-dalek 2023-06-27 04:00:12 +00:00
montgomery.rs add handlers to check for hardware errors and try to recover 2024-03-28 10:20:53 +08:00
ristretto.rs Address new nightly clippy unnecessary qualifications (#639) 2024-03-07 16:58:20 -07:00
scalar.rs add back in bits_le 2024-03-25 13:42:58 +08:00
traits.rs Fix new nightly redundant import lint warns (#638) 2024-02-29 18:56:52 -07:00
window.rs Address new nightly clippy unnecessary qualifications (#639) 2024-03-07 16:58:20 -07:00