Skip to content

Commit

Permalink
refactor: handle blake2b error
Browse files Browse the repository at this point in the history
  • Loading branch information
homura committed Jul 16, 2024
1 parent 69a2105 commit 7f02496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apdu.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void handle_apdu_get_wallet_id(uint8_t __attribute__((unused)) instruction) {
int rv = 0;
cx_blake2b_t hashState;
if(cx_blake2b_init_no_throw(&hashState, 512) != CX_OK) {
THROW(APDU_RESPONSE_UNKNOWN);
THROW(EXC_INVALID_INS);
}

WITH_KEY_PAIR(id_path, key_pair, size_t, ({
Expand Down

0 comments on commit 7f02496

Please sign in to comment.