Skip to content

Commit

Permalink
Merge pull request #69 from canokeys/feature/piv
Browse files Browse the repository at this point in the history
return 6A88 for empty PIV slot
  • Loading branch information
dangfan authored Nov 9, 2023
2 parents 57c48a6 + ba69d64 commit 7a67cb4
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 7a67cb4

Please sign in to comment.