Skip to content

Commit

Permalink
return 6A88 for empty PIV slot
Browse files Browse the repository at this point in the history
  • Loading branch information
z4yx committed Nov 8, 2023
1 parent 57c48a6 commit ba69d64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions applets/piv/piv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,7 @@ static int piv_get_metadata(const CAPDU *capdu, RAPDU *rapdu) {
return -1;
}
DBG_KEY_META(&key.meta);
if (key.meta.type == KEY_TYPE_PKC_END) EXCEPT(SW_REFERENCE_DATA_NOT_FOUND);

RDATA[pos++] = 0x01; // Algorithm
RDATA[pos++] = 0x01;
Expand Down

0 comments on commit ba69d64

Please sign in to comment.