Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ViZiD opened this issue Nov 30, 2024 · 0 comments
Open

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

ViZiD opened this issue Nov 30, 2024 · 0 comments

Comments

@ViZiD
Copy link

ViZiD commented Nov 30, 2024

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

this is very similar to #16

I'm using version 2.2 1d508f2 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant