Skip to content

Commit

Permalink
feat: call heartbeat in crypto functions that might take time
Browse files Browse the repository at this point in the history
  • Loading branch information
neithanmo committed Mar 18, 2024
1 parent 6470853 commit 907e1cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,11 @@ zxerr_t crypto_fillSaplingSeed(uint8_t *sk) {
MEMZERO(sk, ED25519_SK_SIZE);

zxerr_t error = zxerr_unknown;
io_seproxyhal_io_heartbeat();
CATCH_CXERROR(os_derive_bip32_with_seed_no_throw(HDW_NORMAL, CX_CURVE_Ed25519,
path, HDPATH_LEN_DEFAULT, sk,
NULL, NULL, 0));
io_seproxyhal_io_heartbeat();
error = zxerr_ok;

catch_cx_error:
Expand Down

0 comments on commit 907e1cd

Please sign in to comment.