@@ -22,55 +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" ,
70
- "unlock_animation_create" ,
74
+ "fake_memory_factoryreset" ,
75
+ "fake_securechip_event_counter_reset" ,
76
+ "fake_securechip_event_counter" ,
77
+ "hww_setup" ,
71
78
"keystore_bip39_mnemonic_to_seed" ,
72
- "keystore_copy_seed" ,
73
79
"keystore_copy_bip39_seed" ,
80
+ "keystore_copy_seed" ,
74
81
"keystore_create_and_store_seed" ,
75
82
"keystore_encrypt_and_store_seed" ,
76
83
"keystore_get_bip39_word" ,
@@ -79,57 +86,64 @@ const ALLOWLIST_FNS: &[&str] = &[
79
86
"keystore_mock_unlocked" ,
80
87
"keystore_secp256k1_nonce_commit" ,
81
88
"keystore_secp256k1_sign" ,
82
- "keystore_unlock" ,
89
+ "keystore_test_get_retained_bip39_seed_encrypted" ,
90
+ "keystore_test_get_retained_seed_encrypted" ,
83
91
"keystore_unlock_bip39_check" ,
84
92
"keystore_unlock_bip39_finalize" ,
85
- "keystore_test_get_retained_seed_encrypted " ,
86
- "keystore_test_get_retained_bip39_seed_encrypted " ,
93
+ "keystore_unlock_bip39 " ,
94
+ "keystore_unlock " ,
87
95
"label_create" ,
88
96
"localtime" ,
89
- "memory_set_salt_root" ,
97
+ "lock_animation_start" ,
98
+ "lock_animation_stop" ,
90
99
"memory_add_noise_remote_static_pubkey" ,
100
+ "memory_ble_enable" ,
101
+ "memory_ble_enabled" ,
102
+ "memory_set_salt_root" ,
91
103
"memory_bootloader_hash" ,
92
104
"memory_check_noise_remote_static_pubkey" ,
93
105
"memory_get_attestation_bootloader_hash" ,
94
106
"memory_get_attestation_pubkey_and_certificate" ,
95
- "memory_get_encrypted_seed_and_hmac " ,
107
+ "memory_get_ble_metadata " ,
96
108
"memory_get_device_name" ,
109
+ "memory_get_encrypted_seed_and_hmac" ,
97
110
"memory_get_noise_static_private_key" ,
111
+ "memory_get_platform" ,
112
+ "memory_get_securechip_type" ,
98
113
"memory_get_seed_birthdate" ,
99
114
"memory_is_initialized" ,
100
115
"memory_is_mnemonic_passphrase_enabled" ,
101
116
"memory_is_seeded" ,
102
117
"memory_multisig_get_by_hash" ,
103
118
"memory_multisig_set_by_hash" ,
119
+ "memory_set_ble_metadata" ,
104
120
"memory_set_device_name" ,
105
121
"memory_set_initialized" ,
106
122
"memory_set_mnemonic_passphrase_enabled" ,
123
+ "memory_set_salt_root" ,
107
124
"memory_set_seed_birthdate" ,
108
125
"memory_setup" ,
109
- "memory_ble_enabled" ,
110
- "memory_ble_enable" ,
111
- "memory_get_ble_metadata" ,
112
- "memory_set_ble_metadata" ,
113
- "memory_get_platform" ,
114
- "memory_get_securechip_type" ,
115
126
"memory_spi_get_active_ble_firmware_version" ,
116
- "spi_mem_protected_area_write" ,
117
127
"menu_create" ,
118
- "fake_memory_factoryreset" ,
119
- "spi_mem_full_erase" ,
128
+ "orientation_screen" ,
120
129
"printf" ,
121
130
"progress_create" ,
122
131
"progress_set" ,
132
+ "queue_hww_queue" ,
133
+ "queue_pull" ,
123
134
"random_32_bytes_mcu" ,
124
135
"random_32_bytes" ,
125
136
"random_fake_reset" ,
126
137
"reboot_to_bootloader" ,
127
- "reset_reset" ,
128
138
"reset_ble" ,
139
+ "reset_reset" ,
140
+ "screen_clear" ,
141
+ "screen_init" ,
129
142
"screen_print_debug" ,
130
143
"screen_process" ,
131
144
"screen_saver_disable" ,
132
145
"screen_saver_enable" ,
146
+ "screen_splash" ,
133
147
"sd_card_inserted" ,
134
148
"sd_erase_file_in_subdir" ,
135
149
"sd_format" ,
@@ -143,23 +157,32 @@ const ALLOWLIST_FNS: &[&str] = &[
143
157
"securechip_model" ,
144
158
"securechip_monotonic_increments_remaining" ,
145
159
"securechip_u2f_counter_set" ,
146
- "fake_securechip_event_counter" ,
147
- "fake_securechip_event_counter_reset" ,
148
- "smarteeprom_is_enabled" ,
149
- "smarteeprom_disable" ,
150
160
"smarteeprom_bb02_config" ,
161
+ "smarteeprom_disable" ,
162
+ "smarteeprom_is_enabled" ,
163
+ "spi_mem_full_erase" ,
164
+ "spi_mem_protected_area_write" ,
151
165
"status_create" ,
152
166
"trinary_choice_create" ,
153
167
"trinary_input_string_create" ,
154
168
"trinary_input_string_set_input" ,
155
- "ui_screen_stack_pop" ,
169
+ "unlock_animation_create" ,
170
+ "UG_ClearBuffer" ,
171
+ "UG_FontSelect" ,
172
+ "UG_PutString" ,
173
+ "UG_SendBuffer" ,
156
174
"ui_screen_stack_pop_all" ,
175
+ "ui_screen_stack_pop" ,
157
176
"ui_screen_stack_push" ,
177
+ "usb_packet_process" ,
178
+ "usb_processing_hww" ,
179
+ "usb_processing_init" ,
180
+ "usb_processing_process" ,
158
181
"util_format_datetime" ,
159
- "communication_mode_ble_enabled" ,
160
182
] ;
161
183
162
184
const RUSTIFIED_ENUMS : & [ & str ] = & [
185
+ "event_types" ,
163
186
"keystore_error_t" ,
164
187
"keystore_secp256k1_pubkey_format" ,
165
188
"memory_result_t" ,
0 commit comments