dendrobates-t-azureus/flush_reload/src/naive.rs

16 lines
434 B
Rust
Raw Normal View History

use basic_timing_cache_channel::naive::NaiveTimingChannel;
use basic_timing_cache_channel::TimingChannelPrimitives;
2020-09-22 14:36:07 +02:00
use cache_utils::calibration::only_reload;
#[derive(Debug)]
pub struct NaiveFRPrimitives {}
impl TimingChannelPrimitives for NaiveFRPrimitives {
unsafe fn attack(&self, addr: *const u8) -> u64 {
unsafe { only_reload(addr) }
}
}
pub type NaiveFlushAndReload = NaiveTimingChannel<NaiveFRPrimitives>;