Only the first action after power-on can be successfully executed #23

Closed
opened 2024-11-30 23:21:00 +08:00 by ViZiD · 4 comments
ViZiD commented 2024-11-30 23:21:00 +08:00 (Migrated from github.com)

After flashing the last commit 7f24b9f6b8 of the eddsa branch, card no longer works after the first action, encryption, cardstatus 0_0, sometimes signature...

this is very similar to https://github.com/polhenarejos/pico-openpgp/issues/16

I'm using version 2.2 1d508f254d from eddsa branch, I build firmware myself

board: waveshare rp2040 one

radik@t440p:~ >gpg -e -r my@mail.cc test.txt
radik@t440p:~ >gpg --decrypt test.txt.gpg      
gpg: encrypted with cv25519 key, ID 0xDDBBF4D7E5B00481, created 2024-10-04
      "Test Test <my@mail.cc>"
gpg: public key decryption failed: Card error
gpg: decryption failed: Card error


# after replug card
radik@t440p:~ >gpg --decrypt test.txt.gpg
gpg: encrypted with cv25519 key, ID 0xDDBBF4D7E5B00481, created 2024-10-04
      "Test Test <my@mail.cc>"
test

# after get card status, not working to, xd
radik@t440p:~ >gpg --card-status             
Reader ...........: Yubico YubiKey CCID [Pico Key CCID Interface] (DE6270431F522A2B) 01 00
....
radik@t440p:~ >gpg --card-status
gpg: OpenPGP card not available: No such file or directory

radik@t440p:~ >gpg --version    
gpg (GnuPG) 2.4.5
libgcrypt 1.10.3
Copyright (C) 2024 g10 Code GmbH
License GNU GPL-3.0-or-later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: /home/radik/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
        CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2

pcsc_scan
2.2 version
3.0 version before action
3.0 version after action

After flashing the last commit 7f24b9f6b8e98caf91315f1a92867e0b99f02139 of the eddsa branch, card no longer works after the first action, encryption, cardstatus 0_0, sometimes signature... this is very similar to https://github.com/polhenarejos/pico-openpgp/issues/16 I'm using version 2.2 1d508f254dba13ba0b78a5de90bc7f30d2cf4ef5 from eddsa branch, I build firmware myself board: waveshare rp2040 one ```bash radik@t440p:~ >gpg -e -r my@mail.cc test.txt radik@t440p:~ >gpg --decrypt test.txt.gpg gpg: encrypted with cv25519 key, ID 0xDDBBF4D7E5B00481, created 2024-10-04 "Test Test <my@mail.cc>" gpg: public key decryption failed: Card error gpg: decryption failed: Card error # after replug card radik@t440p:~ >gpg --decrypt test.txt.gpg gpg: encrypted with cv25519 key, ID 0xDDBBF4D7E5B00481, created 2024-10-04 "Test Test <my@mail.cc>" test # after get card status, not working to, xd radik@t440p:~ >gpg --card-status Reader ...........: Yubico YubiKey CCID [Pico Key CCID Interface] (DE6270431F522A2B) 01 00 .... radik@t440p:~ >gpg --card-status gpg: OpenPGP card not available: No such file or directory radik@t440p:~ >gpg --version gpg (GnuPG) 2.4.5 libgcrypt 1.10.3 Copyright (C) 2024 g10 Code GmbH License GNU GPL-3.0-or-later <https://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Home: /home/radik/.gnupg Supported algorithms: Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH, CAMELLIA128, CAMELLIA192, CAMELLIA256 Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224 Compression: Uncompressed, ZIP, ZLIB, BZIP2 ``` pcsc_scan [2.2 version](https://github.com/user-attachments/files/17965879/22.log) [3.0 version before action](https://github.com/user-attachments/files/17965882/3w.log) [3.0 version after action](https://github.com/user-attachments/files/17965886/3n.log)
polhenarejos commented 2025-01-15 17:51:09 +08:00 (Migrated from github.com)

Can you check with latest firmware?

Can you check with latest firmware?
ViZiD commented 2025-01-16 03:29:10 +08:00 (Migrated from github.com)

Can you check with latest firmware?

Same behaviour
After the card was no longer detected, I pressed the confirm button, the card started to be detected again, but after an action it disappeared again.

> Can you check with latest firmware? Same behaviour After the card was no longer detected, I pressed the confirm button, the card started to be detected again, but after an action it disappeared again.
ViZiD commented 2025-01-16 03:44:15 +08:00 (Migrated from github.com)
https://asciinema.org/a/tbNG0OEhAB3bW0tVsv3sgdqtK
ViZiD commented 2025-02-20 07:50:36 +08:00 (Migrated from github.com)
3.4 version https://github.com/polhenarejos/pico-openpgp/releases/tag/v3.4-eddsa1 fix issue ❤️❤️❤️
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dearsky/pico-openpgp#23