device-info: change pw stretching algo strings
What changed, and why it matters
This commit only renames two user-visible text labels for password-stretching algorithms. It does not change any cryptographic behavior, memory layout, or security logic. There is no security issue here.
No security action needed. Treat as a normal UI/labeling cleanup.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change maps the internal enum variants MEMORY_PASSWORD_STRETCH_ALGO_V0 and MEMORY_PASSWORD_STRETCH_ALGO_V1 to display strings ‘V1’ and ‘V2’ instead of ‘V0’ and ‘V1’. The underlying algorithm selection and implementation are untouched; only the human-readable label returned by the device-info API is adjusted to be one-indexed rather than zero-indexed.
Changed components
src/rust/bitbox02-rust/src/hww/api/device_info.rsInspect captured patch +2 / −2
diff --git a/src/rust/bitbox02-rust/src/hww/api/device_info.rs b/src/rust/bitbox02-rust/src/hww/api/device_info.rs
index e068be2..5874f83 100644
--- a/src/rust/bitbox02-rust/src/hww/api/device_info.rs
+++ b/src/rust/bitbox02-rust/src/hww/api/device_info.rs
@@ -47,8 +47,8 @@ pub fn process(hal: &mut impl crate::hal::Hal) -> Result<Response, Error> {
},
bluetooth,
password_stretching_algo: match password_stretching_algo {
- bitbox02::memory::PasswordStretchAlgo::MEMORY_PASSWORD_STRETCH_ALGO_V0 => "V0".into(),
- bitbox02::memory::PasswordStretchAlgo::MEMORY_PASSWORD_STRETCH_ALGO_V1 => "V1".into(),
+ bitbox02::memory::PasswordStretchAlgo::MEMORY_PASSWORD_STRETCH_ALGO_V0 => "V1".into(),
+ bitbox02::memory::PasswordStretchAlgo::MEMORY_PASSWORD_STRETCH_ALGO_V1 => "V2".into(),
},
}))
}
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.