Skip to content

Commit

Permalink
Merge pull request #34 from trilitech/elric1@dont-check-pin
Browse files Browse the repository at this point in the history
apdu_pubkey.c: don't check if we are locked
  • Loading branch information
emturner authored Nov 1, 2023
2 parents 4d514c4 + 3a4531d commit fdbcc57
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/src/apdu_pubkey.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ provide_pubkey(void)
cx_ecfp_public_key_t pubkey;
TZ_PREAMBLE(("void"));

// Application could be PIN-locked, and pubkey->W_len would then be 0,
// so throwing an error rather than returning an empty key
TZ_ASSERT(EXC_SECURITY, os_global_pin_is_validated() == BOLOS_UX_OK);
TZ_CHECK(derive_pk(&pubkey, global.path_with_curve.derivation_type,
&global.path_with_curve.bip32_path));

Expand Down

0 comments on commit fdbcc57

Please sign in to comment.