Closed rrottmann closed 4 months ago
Cannot reproduce. Did you get an error when did factory-reset command?
To reset the PIN it can be done with gpg --edit-card > unblock
command using the RC code (12345678
default)
Edit: factory-reset command should put default codes for all PIN (123456
for PIN and 12345678
for RC and admin).
The APDU command is 00 E6 00 00
.
Just reproduced the issue.
nuke & full flash needed to reset and start from scratch.
In step 10
I get 3 3 3.
In step 14
PIN retries are 2 3 3.
Are you using the latest firmware?
Yes, the firmware is latest. Could it be related to using Waveshare RP2040 Zero?
Really strange. I tried hundreds of combinations and I cannot reproduce it. I'll finish the tests and see if they pass on waveshare.
Can you try with the latest commit? I pushed lots of fixes. I also pushed a battery set from gnuk. Give it a try to see if some test fails.
Lots of bugfixes since then.
Please reopen if still happens with latest version.
When doing a factory-reset using gpg --card-edit -> admin -> factory-reset all PIN counters get blocked. They were 3 3 3 before. Is there an APDU custom-command needed to reset the variables?
Reset of course works with pico_nuke_waveshare_rp2040_zero-1.0.uf2 but this requires somewhat "knowledge" about flashing the pico and the need to nuke the flash.
The gpg factory-reset uses upstream documented process of the OpenPGP Card specification and would be doable by a less experienced/regular user.