tacet 0.4.2

Detect timing side channels in cryptographic code
Documentation
1
2
3
4
5
6
7
8
9
10
11
// Test: Missing required `sample` field produces helpful error
use tacet::timing_test;

fn main() {
    let _result = timing_test! {
        baseline: || 42u8,
        measure: |input| {
            std::hint::black_box(input);
        },
    };
}