Skip to content

Commit

Permalink
NeoPGPApplet: fix authentication
Browse files Browse the repository at this point in the history
The response isn't sent to the terminal. Fix that.

Signed-off-by: Michael Walle <[email protected]>
  • Loading branch information
mwalle committed Mar 21, 2024
1 parent 810e556 commit 65b172c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cc/walle/neopgp/NeoPGPApplet.java
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,8 @@ private void processInternalAuthenticate(APDU apdu) throws ISOException {
ISOException.throwIt(ISO7816.SW_WRONG_P1P2);

userPIN.isValidated(USER_PIN_MODE_NORMAL);
authenticationKey.authenticate(buf, off, lc);
off = authenticationKey.authenticate(buf, off, lc);
apdu.setOutgoingAndSend((short)0, off);
}

private void processImportKey(APDU apdu) throws ISOException {
Expand Down

0 comments on commit 65b172c

Please sign in to comment.