tacet 0.4.2

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

fn main() {
    let _result = timing_test! {
        baseline: || 42u8,
        sampl: || rand::random::<u8>(),  // Typo: should be `sample`
        measure: |input| {
            std::hint::black_box(input);
        },
    };
}