From 65b172c28ad7b9ab761527d32c39d81935b03a55 Mon Sep 17 00:00:00 2001 From: Michael Walle Date: Thu, 21 Mar 2024 20:21:27 +0100 Subject: [PATCH] NeoPGPApplet: fix authentication The response isn't sent to the terminal. Fix that. Signed-off-by: Michael Walle --- src/cc/walle/neopgp/NeoPGPApplet.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cc/walle/neopgp/NeoPGPApplet.java b/src/cc/walle/neopgp/NeoPGPApplet.java index 7a9f3d2..842a488 100644 --- a/src/cc/walle/neopgp/NeoPGPApplet.java +++ b/src/cc/walle/neopgp/NeoPGPApplet.java @@ -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 {