What changed, and why it matters
This commit simply alphabetically sorts three lists of C function, variable, and type names that the Rust build process is allowed to reference. No names were added or removed, only reordered. It has no effect on device behavior or security.
No action required; this is a non-security cosmetic/refactoring commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change is a pure refactor in src/rust/bitbox02-sys/build.rs. The bindgen allowlists (ALLOWLIST_VARS, ALLOWLIST_TYPES, ALLOWLIST_FNS) are reordered alphabetically. The diff shows only line moves; the same set of identifiers remains present. There is no functional change to generated bindings, firmware logic, or attack surface.
Changed components
src/rust/bitbox02-sys/build.rsInspect captured patch +18 / −19
diff --git a/src/rust/bitbox02-sys/build.rs b/src/rust/bitbox02-sys/build.rs
index 1acffe5..52f32bf 100644
--- a/src/rust/bitbox02-sys/build.rs
+++ b/src/rust/bitbox02-sys/build.rs
@@ -22,38 +22,38 @@ const ALLOWLIST_VARS: &[&str] = &[
"BIP32_SERIALIZED_LEN",
"BIP39_WORDLIST_LEN",
"EC_PUBLIC_KEY_LEN",
+ "font_font_a_11X10",
+ "font_font_a_9X9",
+ "font_monogram_5X9",
+ "font_password_11X12",
"INPUT_STRING_MAX_SIZE",
"KEYSTORE_MAX_SEED_LENGTH",
"MAX_LABEL_SIZE",
"MAX_PK_SCRIPT_SIZE",
+ "MAX_UNLOCK_ATTEMPTS",
"MAX_VARINT_SIZE",
"MEMORY_DEVICE_NAME_MAX_LEN",
"MEMORY_MULTISIG_NAME_MAX_LEN",
- "SD_MAX_FILE_SIZE",
- "XPUB_ENCODED_LEN",
- "font_font_a_11X10",
- "font_font_a_9X9",
- "font_monogram_5X9",
- "font_password_11X12",
- "MEMORY_SPI_BLE_FIRMWARE_MAX_SIZE",
- "MEMORY_SPI_BLE_FIRMWARE_1_ADDR",
- "MEMORY_SPI_BLE_FIRMWARE_2_ADDR",
- "MEMORY_PLATFORM_BITBOX02",
"MEMORY_PLATFORM_BITBOX02_PLUS",
+ "MEMORY_PLATFORM_BITBOX02",
"MEMORY_SECURECHIP_TYPE_ATECC",
"MEMORY_SECURECHIP_TYPE_OPTIGA",
- "MAX_UNLOCK_ATTEMPTS",
+ "MEMORY_SPI_BLE_FIRMWARE_1_ADDR",
+ "MEMORY_SPI_BLE_FIRMWARE_2_ADDR",
+ "MEMORY_SPI_BLE_FIRMWARE_MAX_SIZE",
+ "SD_MAX_FILE_SIZE",
+ "XPUB_ENCODED_LEN",
];
const ALLOWLIST_TYPES: &[&str] = &[
"buffer_t",
"component_t",
"confirm_params_t",
- "trinary_input_string_params_t",
- "securechip_error_t",
"secp256k1_ecdsa_s2c_opening",
"secp256k1_ecdsa_signature",
"secp256k1_pubkey",
+ "securechip_error_t",
+ "trinary_input_string_params_t",
];
const ALLOWLIST_FNS: &[&str] = &[
@@ -71,8 +71,8 @@ const ALLOWLIST_FNS: &[&str] = &[
"confirm_transaction_fee_create",
"delay_cancel",
"delay_init_ms",
- "delay_ms",
"delay_is_elapsed",
+ "delay_ms",
"delay_us",
"empty_create",
"fake_memory_factoryreset",
@@ -100,18 +100,18 @@ const ALLOWLIST_FNS: &[&str] = &[
"memory_get_salt_root",
"memory_get_securechip_type",
"memory_get_seed_birthdate",
- "memory_reset_hww",
"memory_is_initialized",
"memory_is_mnemonic_passphrase_enabled",
"memory_is_seeded",
"memory_multisig_get_by_hash",
"memory_multisig_set_by_hash",
+ "memory_reset_hww",
"memory_set_ble_metadata",
"memory_set_device_name",
+ "memory_set_encrypted_seed_and_hmac",
"memory_set_initialized",
"memory_set_mnemonic_passphrase_enabled",
"memory_set_salt_root",
- "memory_set_encrypted_seed_and_hmac",
"memory_set_seed_birthdate",
"memory_setup",
"memory_spi_get_active_ble_firmware_version",
@@ -145,8 +145,8 @@ const ALLOWLIST_FNS: &[&str] = &[
"secp256k1_ecdsa_anti_exfil_host_commit",
"secp256k1_ecdsa_s2c_opening_parse",
"securechip_attestation_sign",
- "securechip_kdf",
"securechip_init_new_password",
+ "securechip_kdf",
"securechip_model",
"securechip_monotonic_increments_remaining",
"securechip_stretch_password",
@@ -168,9 +168,8 @@ const ALLOWLIST_FNS: &[&str] = &[
"ui_screen_stack_pop",
"ui_screen_stack_push",
"unlock_animation_create",
- "util_format_datetime",
- "communication_mode_ble_enabled",
"usb_processing_timeout_reset",
+ "util_format_datetime",
];
const RUSTIFIED_ENUMS: &[&str] = &[
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.