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 `baseline` field produces helpful error
use tacet::timing_test;

fn main() {
    let _result = timing_test! {
        sample: || rand::random::<u8>(),
        measure: |input| {
            std::hint::black_box(input);
        },
    };
}