Skip to content

Commit c785aaa

Browse files
committed
keystore: add timeout reset in keystore_encrypt_and_store_seed
The duration of this function can go over the 500ms timeout duration, so we give more time so the create/restore API calls don't timeout.
1 parent bca62f0 commit c785aaa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/keystore.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,9 @@ keystore_error_t keystore_encrypt_and_store_seed(
240240
if (!_validate_seed_length(seed_length)) {
241241
return KEYSTORE_ERR_SEED_SIZE;
242242
}
243+
244+
usb_processing_timeout_reset(LONG_TIMEOUT);
245+
243246
if (securechip_init_new_password(password)) {
244247
return KEYSTORE_ERR_SECURECHIP;
245248
}

0 commit comments

Comments
 (0)