Skip to content

Commit c27afb7

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 763491a commit c27afb7

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
@@ -347,6 +347,9 @@ keystore_error_t keystore_encrypt_and_store_seed(
347347
if (!_validate_seed_length(seed_length)) {
348348
return KEYSTORE_ERR_SEED_SIZE;
349349
}
350+
351+
usb_processing_timeout_reset(LONG_TIMEOUT);
352+
350353
if (securechip_init_new_password(password)) {
351354
return KEYSTORE_ERR_SECURECHIP;
352355
}

0 commit comments

Comments
 (0)