Skip to content

Commit

Permalink
Fixed the printing of the MASP IVK and OVK.
Browse files Browse the repository at this point in the history
  • Loading branch information
murisi committed Aug 29, 2024
1 parent 31a3e99 commit d4a77b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/review_keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ zxerr_t getItemViewKey(int8_t displayIdx, char *outKey, uint16_t outKeyLen, char
break;
case 1:
snprintf(outKey, outKeyLen, "IVK");
const char* ivk = (const char*)G_io_apdu_buffer + 2 * KEY_LENGTH;
const char* ivk = (const char*)G_io_apdu_buffer + 3 * KEY_LENGTH;
pageStringHex(outVal, outValLen, ivk, KEY_LENGTH, pageIdx, pageCount);
break;
case 2:
snprintf(outKey, outKeyLen, "OVK");
const char* ovk = (const char*)G_io_apdu_buffer + 3 * KEY_LENGTH;
const char* ovk = (const char*)G_io_apdu_buffer + 2 * KEY_LENGTH;
pageStringHex(outVal, outValLen, ovk, KEY_LENGTH, pageIdx, pageCount);
break;

Expand Down

0 comments on commit d4a77b8

Please sign in to comment.