Skip to content

Commit

Permalink
Merge PR #140
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamVe committed Jun 17, 2024
2 parents 31b0402 + 82db805 commit a24565c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions piv/src/main/java/com/yubico/yubikit/piv/PivSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,14 @@ public void reset() throws IOException, ApduException {
protocol.sendAndReceive(new Apdu(0, INS_RESET, 0, 0, null));
currentPinAttempts = 3;
maxPinAttempts = 3;

// update management key type
try {
managementKeyType = getManagementKeyMetadata().getKeyType();
} catch (UnsupportedOperationException unsupportedOperationException) {
managementKeyType = ManagementKeyType.TDES;
}

Logger.info(logger, "PIV application data reset performed");
}

Expand Down

0 comments on commit a24565c

Please sign in to comment.