@@ -22,54 +22,62 @@ const ALLOWLIST_VARS: &[&str] = &[
22
22
"BIP32_SERIALIZED_LEN" ,
23
23
"BIP39_WORDLIST_LEN" ,
24
24
"EC_PUBLIC_KEY_LEN" ,
25
+ "font_font_a_11X10" ,
26
+ "font_font_a_9X9" ,
27
+ "font_monogram_5X9" ,
28
+ "font_password_11X12" ,
25
29
"INPUT_STRING_MAX_SIZE" ,
26
30
"KEYSTORE_MAX_SEED_LENGTH" ,
27
31
"MAX_LABEL_SIZE" ,
28
32
"MAX_PK_SCRIPT_SIZE" ,
33
+ "MAX_UNLOCK_ATTEMPTS" ,
29
34
"MAX_VARINT_SIZE" ,
30
35
"MEMORY_DEVICE_NAME_MAX_LEN" ,
31
36
"MEMORY_MULTISIG_NAME_MAX_LEN" ,
32
- "SD_MAX_FILE_SIZE" ,
33
- "XPUB_ENCODED_LEN" ,
34
- "font_font_a_11X10" ,
35
- "font_font_a_9X9" ,
36
- "font_monogram_5X9" ,
37
- "font_password_11X12" ,
38
- "MEMORY_SPI_BLE_FIRMWARE_MAX_SIZE" ,
39
- "MEMORY_SPI_BLE_FIRMWARE_1_ADDR" ,
40
- "MEMORY_SPI_BLE_FIRMWARE_2_ADDR" ,
41
- "MEMORY_PLATFORM_BITBOX02" ,
42
37
"MEMORY_PLATFORM_BITBOX02_PLUS" ,
38
+ "MEMORY_PLATFORM_BITBOX02" ,
43
39
"MEMORY_SECURECHIP_TYPE_ATECC" ,
44
40
"MEMORY_SECURECHIP_TYPE_OPTIGA" ,
45
- "MAX_UNLOCK_ATTEMPTS" ,
41
+ "MEMORY_SPI_BLE_FIRMWARE_1_ADDR" ,
42
+ "MEMORY_SPI_BLE_FIRMWARE_2_ADDR" ,
43
+ "MEMORY_SPI_BLE_FIRMWARE_MAX_SIZE" ,
44
+ "SCREEN_HEIGHT" ,
45
+ "SCREEN_WIDTH" ,
46
+ "SD_MAX_FILE_SIZE" ,
47
+ "SLIDER_POSITION_TWO_THIRD" ,
48
+ "XPUB_ENCODED_LEN" ,
46
49
] ;
47
50
48
51
const ALLOWLIST_TYPES : & [ & str ] = & [
49
52
"buffer_t" ,
50
53
"component_t" ,
51
54
"confirm_params_t" ,
55
+ "event_types" ,
56
+ "event_slider_data_t" ,
52
57
"trinary_input_string_params_t" ,
58
+ "UG_COLOR" ,
53
59
] ;
54
60
55
61
const ALLOWLIST_FNS : & [ & str ] = & [
56
- "UG_ClearBuffer" ,
57
- "UG_FontSelect" ,
58
- "UG_PutString" ,
59
- "UG_SendBuffer" ,
60
62
"bip32_derive_xpub" ,
61
- "bitbox02_smarteeprom_init" ,
62
63
"bitbox_secp256k1_dleq_prove" ,
63
64
"bitbox_secp256k1_dleq_verify" ,
65
+ "bitbox02_smarteeprom_init" ,
66
+ "communication_mode_ble_enabled" ,
64
67
"confirm_create" ,
65
68
"confirm_transaction_address_create" ,
66
69
"confirm_transaction_fee_create" ,
67
70
"delay_ms" ,
68
71
"delay_us" ,
72
+ "emit_event" ,
69
73
"empty_create" ,
74
+ "fake_memory_factoryreset" ,
75
+ "fake_securechip_event_counter_reset" ,
76
+ "fake_securechip_event_counter" ,
77
+ "hww_setup" ,
70
78
"keystore_bip39_mnemonic_to_seed" ,
71
- "keystore_copy_seed" ,
72
79
"keystore_copy_bip39_seed" ,
80
+ "keystore_copy_seed" ,
73
81
"keystore_create_and_store_seed" ,
74
82
"keystore_encrypt_and_store_seed" ,
75
83
"keystore_get_bip39_word" ,
@@ -78,59 +86,63 @@ const ALLOWLIST_FNS: &[&str] = &[
78
86
"keystore_mock_unlocked" ,
79
87
"keystore_secp256k1_nonce_commit" ,
80
88
"keystore_secp256k1_sign" ,
81
- "keystore_unlock" ,
89
+ "keystore_test_get_retained_bip39_seed_encrypted" ,
90
+ "keystore_test_get_retained_seed_encrypted" ,
82
91
"keystore_unlock_bip39_check" ,
83
92
"keystore_unlock_bip39_finalize" ,
84
- "keystore_test_get_retained_seed_encrypted " ,
85
- "keystore_test_get_retained_bip39_seed_encrypted " ,
93
+ "keystore_unlock_bip39 " ,
94
+ "keystore_unlock " ,
86
95
"label_create" ,
87
96
"localtime" ,
88
97
"lock_animation_start" ,
89
98
"lock_animation_stop" ,
90
- "memory_set_salt_root" ,
91
99
"memory_add_noise_remote_static_pubkey" ,
100
+ "memory_ble_enable" ,
101
+ "memory_ble_enabled" ,
92
102
"memory_bootloader_hash" ,
93
103
"memory_check_noise_remote_static_pubkey" ,
94
104
"memory_get_attestation_bootloader_hash" ,
95
105
"memory_get_attestation_pubkey_and_certificate" ,
96
- "memory_get_encrypted_seed_and_hmac " ,
106
+ "memory_get_ble_metadata " ,
97
107
"memory_get_device_name" ,
108
+ "memory_get_encrypted_seed_and_hmac" ,
98
109
"memory_get_noise_static_private_key" ,
110
+ "memory_get_platform" ,
111
+ "memory_get_securechip_type" ,
99
112
"memory_get_seed_birthdate" ,
100
113
"memory_is_initialized" ,
101
114
"memory_is_mnemonic_passphrase_enabled" ,
102
115
"memory_is_seeded" ,
103
116
"memory_multisig_get_by_hash" ,
104
117
"memory_multisig_set_by_hash" ,
118
+ "memory_set_ble_metadata" ,
105
119
"memory_set_device_name" ,
106
120
"memory_set_initialized" ,
107
121
"memory_set_mnemonic_passphrase_enabled" ,
122
+ "memory_set_salt_root" ,
108
123
"memory_set_seed_birthdate" ,
109
124
"memory_setup" ,
110
- "memory_ble_enabled" ,
111
- "memory_ble_enable" ,
112
- "memory_get_ble_metadata" ,
113
- "memory_set_ble_metadata" ,
114
- "memory_get_platform" ,
115
- "memory_get_securechip_type" ,
116
125
"memory_spi_get_active_ble_firmware_version" ,
117
- "spi_mem_protected_area_write" ,
118
126
"menu_create" ,
119
- "fake_memory_factoryreset" ,
120
- "spi_mem_full_erase" ,
127
+ "orientation_screen" ,
121
128
"printf" ,
122
129
"progress_create" ,
123
130
"progress_set" ,
131
+ "queue_hww_queue" ,
132
+ "queue_pull" ,
124
133
"random_32_bytes_mcu" ,
125
134
"random_32_bytes" ,
126
135
"random_fake_reset" ,
127
136
"reboot_to_bootloader" ,
128
- "reset_reset" ,
129
137
"reset_ble" ,
138
+ "reset_reset" ,
139
+ "screen_clear" ,
140
+ "screen_init" ,
130
141
"screen_print_debug" ,
131
142
"screen_process" ,
132
143
"screen_saver_disable" ,
133
144
"screen_saver_enable" ,
145
+ "screen_splash" ,
134
146
"sd_card_inserted" ,
135
147
"sd_erase_file_in_subdir" ,
136
148
"sd_format" ,
@@ -144,23 +156,31 @@ const ALLOWLIST_FNS: &[&str] = &[
144
156
"securechip_model" ,
145
157
"securechip_monotonic_increments_remaining" ,
146
158
"securechip_u2f_counter_set" ,
147
- "fake_securechip_event_counter" ,
148
- "fake_securechip_event_counter_reset" ,
149
- "smarteeprom_is_enabled" ,
150
- "smarteeprom_disable" ,
151
159
"smarteeprom_bb02_config" ,
160
+ "smarteeprom_disable" ,
161
+ "smarteeprom_is_enabled" ,
162
+ "spi_mem_full_erase" ,
163
+ "spi_mem_protected_area_write" ,
152
164
"status_create" ,
153
165
"trinary_choice_create" ,
154
166
"trinary_input_string_create" ,
155
167
"trinary_input_string_set_input" ,
156
- "ui_screen_stack_pop" ,
168
+ "UG_ClearBuffer" ,
169
+ "UG_FontSelect" ,
170
+ "UG_PutString" ,
171
+ "UG_SendBuffer" ,
157
172
"ui_screen_stack_pop_all" ,
173
+ "ui_screen_stack_pop" ,
158
174
"ui_screen_stack_push" ,
175
+ "usb_packet_process" ,
176
+ "usb_processing_hww" ,
177
+ "usb_processing_init" ,
178
+ "usb_processing_process" ,
159
179
"util_format_datetime" ,
160
- "communication_mode_ble_enabled" ,
161
180
] ;
162
181
163
182
const RUSTIFIED_ENUMS : & [ & str ] = & [
183
+ "event_types" ,
164
184
"keystore_error_t" ,
165
185
"keystore_secp256k1_pubkey_format" ,
166
186
"memory_result_t" ,
0 commit comments