Commit 70a9e77
openpgp: Fix retry counter of encryption PIN in SC_PIN_CMD_GET_INFO emulation for card supporting OpenPGP card spec v2.0 and later
The meaning of byte 6 of DO C4 has changed from the retry counter of the encryption
PIN (CHV2) to that of resetting code since OpenPGP card spec v2.0, and PW1 now serves
as both the signature and encryption PIN. Map PIN reference from 82 to 81 to correct
retry counter of encryption PIN for these cards.1 parent c70be5a commit 70a9e77
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2468 | 2468 | | |
2469 | 2469 | | |
2470 | 2470 | | |
| 2471 | + | |
| 2472 | + | |
| 2473 | + | |
| 2474 | + | |
| 2475 | + | |
| 2476 | + | |
| 2477 | + | |
| 2478 | + | |
2471 | 2479 | | |
2472 | 2480 | | |
2473 | 2481 | | |
| |||
0 commit comments