What changed, and why it matters
This commit is a build cleanup: it removes an unused cryptography library (p256) from the main firmware feature set and enables it only for the U2F app feature. There is no direct evidence in the commit or message that this fixes a security vulnerability.
No immediate security action required. Treat as routine build hygiene. If reviewing for defense in depth, verify that p256 is not still indirectly enabled by another feature and that U2F remains the only consumer.
Security signals we found
Reduction of compiled-in cryptographic dependency scope
No functional code changes
No mention of vulnerability, CVE, researcher, or security issue in commit message
Evidence from the diff
The change modifies Cargo.toml feature flags. The firmware feature no longer pulls in util/p256; instead util/p256 is added only to the app-u2f feature. This suggests p256 was previously compiled into firmware builds unnecessarily and is only actually needed for U2F (FIDO/U2F uses ECDSA over NIST P-256). The commit is a dependency/compilation scope reduction, not a code-level security fix.
Changed components
src/rust/bitbox02-rust-c/Cargo.toml feature flagsInspect captured patch +2 / −1
diff --git a/src/rust/bitbox02-rust-c/Cargo.toml b/src/rust/bitbox02-rust-c/Cargo.toml
index c800be6..d385ece 100644
--- a/src/rust/bitbox02-rust-c/Cargo.toml
+++ b/src/rust/bitbox02-rust-c/Cargo.toml
@@ -73,7 +73,7 @@ platform-bitbox02 = []
platform-bitbox02plus = ["util/sha2", "bitbox02-noise", "bitbox02-rust"]
bootloader = []
-firmware = ["bitbox02-rust", "bitbox02-rust/firmware", "bitbox02", "bitbox02-noise", "util/sha2", "util/p256", "util/firmware", "der", "bitbox-aes"]
+firmware = ["bitbox02-rust", "bitbox02-rust/firmware", "bitbox02", "bitbox02-noise", "util/sha2", "util/firmware", "der", "bitbox-aes"]
# Only to be enabled in Rust unit tests.
testing = ["bitbox02-rust/testing", "bitbox02/testing"]
@@ -100,6 +100,7 @@ app-litecoin = [
app-u2f = [
# enable this feature in the deps
"bitbox02-rust/app-u2f",
+ "util/p256",
]
app-cardano = [
Why this scored 11/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.