From c8f035d76dcedb2cab0fbff1ac557b2a767b3c8d Mon Sep 17 00:00:00 2001 From: Guillume DIDIER Date: Wed, 13 Oct 2021 14:08:57 +0200 Subject: [PATCH] Fix deprecation warning --- aes-t-tables/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aes-t-tables/src/lib.rs b/aes-t-tables/src/lib.rs index fe413d8..414e5c7 100644 --- a/aes-t-tables/src/lib.rs +++ b/aes-t-tables/src/lib.rs @@ -91,7 +91,7 @@ pub unsafe fn attack_t_tables_poc( for addr in addresses.iter() { let mut timing = HashMap::new(); - for b in (u8::min_value()..=u8::max_value()).step_by(16) { + for b in (u8::MIN..=u8::MAX).step_by(16) { timing.insert(b, 0); } timings.insert(*addr, timing); @@ -99,7 +99,7 @@ pub unsafe fn attack_t_tables_poc( let mut victim_handles_ref = victims_handle.iter_mut().collect(); - for b in (u8::min_value()..=u8::max_value()).step_by(16) { + for b in (u8::MIN..=u8::MAX).step_by(16) { eprintln!("Probing with b = {:x}", b); // fixme magic numbers