"gpg: KEYTOCARD failed: General error" with ed25519 key type on branch eddsa #26
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello Pol,
First of all, thank you for sharing this work.
I'm trying to send ed25519 keys to use my tiny2530 board as a smartcard with gnupg. I've tried many different combinations (of VIDPID and boards: pico, tiny2530) without success. Even if it looks similar to https://github.com/polhenarejos/pico-openpgp/issues/20, it seems it's not the same problem.
Here is the script I use to rebuild the firmware and test it.
WARNING: the script deletes ".gnupg" folder.
Attached, the full log: pico-log.txt
If I try to send a RSA key with this firmware, I get same failure.
If I try to send RSA keys with main branches, it seems to work
If I send a ed25519 with the main branches, I get "gpg: KEYTOCARD failed: Not supported".
I think there's a problem with your code. You are missing the Admin PIN after the passphrase:
In fact, the problem was happening before asking for Admin Pin but you're right, these 2 were missing!
I don't know precisely what I did to put the board in this state but downloading flash_nuke.uf2 to fully erase the flash solved the issue.
Sorry for the noise and many thanks for sharing this code!
BR,
Pascal.