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

Weird behavior on J2A040 #51

Closed dogtopus closed 1 year ago

dogtopus commented 6 years ago

The OwnerPIN instance for pw1 and pw3 doesn't seem to initialize properly. When I attempt to perform operations that require pw1/pw3 (change PINs and other admin commands) it always gives me an error complaining that the PIN is not correct. But if I change the source code and disable the original PIN check only on the PIN changing routine (ins 0x24, didn't touch the verify routine (0x20)) and then change the PIN, the PIN can be set normally and be verified correctly later.

dogtopus commented 5 years ago

Whoa I just wanted to close this as "possible firmware bug on Chinese J2A040". Didn't even thought that somebody looked into this.

Anyway @gl-sergei your fix also worked for me.