fips205-source/dudect/README.md

33 lines
1.2 KiB
Markdown
Raw Normal View History

2024-10-03 17:24:28 +00:00
An example constant-time workbench. It can be sensitive to config/defaults, so is
not entirely definitive. A work in progress.
2024-02-10 20:26:37 +00:00
2024-10-03 17:24:28 +00:00
See <https://docs.rs/dudect-bencher/latest/dudect_bencher/>
2024-02-10 20:26:37 +00:00
2024-10-03 17:24:28 +00:00
> t-values greater than 5 are generally considered a good indication that the function is not constant time. t-values less than 5 does not necessarily imply that the function is constant-time, since there may be other input distributions under which the function behaves significantly differently.
2024-02-10 20:26:37 +00:00
~~~
2024-10-03 17:24:28 +00:00
October 3, 2024
Intel® Core™ i7-7700K CPU @ 4.20GHz × 8 Circa 2017 Rust 1.81
$ cd dudect # this directory
$ cargo clean
2024-10-04 16:02:10 +00:00
$ time RUSTFLAGS="-C target-cpu=native" cargo run --release # A ~11 hour run
2024-10-03 17:24:28 +00:00
...
2024-10-04 16:02:10 +00:00
Compiling fips205 v0.4.0 (/home/eric/work/fips205)
2024-10-03 17:24:28 +00:00
Compiling fips205-dudect v0.4.0 (/home/eric/work/fips205/dudect)
2024-10-04 16:02:10 +00:00
Finished `release` profile [optimized] target(s) in 12.04s
2024-10-03 17:24:28 +00:00
Running `target/release/fips205-dudect`
2024-02-10 20:26:37 +00:00
2024-10-03 17:24:28 +00:00
running 1 bench
2024-10-04 16:02:10 +00:00
bench keygen_and_sign seeded with 0x54522172d8fff6c0
bench keygen_and_sign ... : n == +0.007M, max t = +3.04638, max tau = +0.03693, (5/tau)^2 = 18331
2024-10-03 17:24:28 +00:00
dudect benches complete
2024-10-04 16:02:10 +00:00
real 660m35.132s
user 660m47.614s
sys 0m2.662s
2024-10-03 17:24:28 +00:00
~~~