Yubico / ykneo-openpgp

OpenPGP applet for the YubiKey NEO
https://developers.yubico.com/ykneo-openpgp/
GNU General Public License v2.0
215 stars 67 forks source link

setIncomingAndReceive() should be called before data access #56

Open z4yx opened 5 years ago

z4yx commented 5 years ago

When I test this applet on J2A040 with T=0 protocol, I found invalid data in APDU buffer. By adding apdu.setIncomingAndReceive() call before data access on case 3/4 APDU, the problem was solved.

rpavlik commented 7 months ago

This fixes #51 which actually was a real bug.