From e5790d76a35d867f052fd595025bdd438e2e865a Mon Sep 17 00:00:00 2001 From: bunnie Date: Fri, 19 Dec 2025 03:29:30 +0800 Subject: [PATCH] lighten up the mesh debug actually there's no reason i think to have it print all four checks - just have it print on two of them, just in case for some reason the prints could be used to time a glitch. --- libs/bao1x-hal/src/hardening.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libs/bao1x-hal/src/hardening.rs b/libs/bao1x-hal/src/hardening.rs index 92f697190..bcfe1ef84 100644 --- a/libs/bao1x-hal/src/hardening.rs +++ b/libs/bao1x-hal/src/hardening.rs @@ -273,10 +273,10 @@ pub fn mesh_check_and_react(csprng: &mut Csprng, one_way: &OneWayCounter) { Some(false) => { bollard!(die, 4); if paranoid1 == 0 { - crate::println_d!("mesh"); unsafe { one_way.inc(bao1x_api::POSSIBLE_ATTACKS).unwrap(); } + crate::println_d!("mesh"); } else { die(); } @@ -284,10 +284,10 @@ pub fn mesh_check_and_react(csprng: &mut Csprng, one_way: &OneWayCounter) { csprng.random_delay(); bollard!(die, 4); if paranoid2 == 0 { - crate::println_d!("mesh"); unsafe { one_way.inc(bao1x_api::POSSIBLE_ATTACKS).unwrap(); } + crate::println_d!("mesh"); } else { die(); } @@ -299,7 +299,6 @@ pub fn mesh_check_and_react(csprng: &mut Csprng, one_way: &OneWayCounter) { if failures != 0 { bollard!(die, 4); if paranoid1 == 0 { - crate::println_d!("mesh"); unsafe { one_way.inc(bao1x_api::POSSIBLE_ATTACKS).unwrap(); } @@ -313,7 +312,6 @@ pub fn mesh_check_and_react(csprng: &mut Csprng, one_way: &OneWayCounter) { csprng.random_delay(); bollard!(die, 4); if paranoid2 == 0 { - crate::println_d!("mesh"); unsafe { one_way.inc(bao1x_api::POSSIBLE_ATTACKS).unwrap(); }