LedgerHQ / app-openpgp

OpenPGP Card Application
Apache License 2.0
123 stars 21 forks source link

Key attributes = "rsa0 rsa0 rsa0" when using ECC #32

Closed luginbash closed 6 years ago

luginbash commented 6 years ago

Hallo,

I'm having a problem with key generation, gpg reportes key attr rsa0 rsa0 rsa0, but my settings for the key templates are brainpool-p256

~$ gpg --version
gpg (GnuPG) 2.2.4
libgcrypt 1.8.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 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/XXXXXXXX/.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

~$ gpg --card-status                                                                                                               [125/126]
Reader ...........: Ledger Token [Nano S] (0001) 00 00
Application ID ...: D2760001240103032C97XXXXXXXX0000
Version ..........: 3.3
Manufacturer .....: unknown
Serial number ....: XXXXXXXX
Name of cardholder: [not set]
Language prefs ...: [not set]
Sex ..............: unspecified
URL of public key : [not set]
Login data .......: [not set]
Signature PIN ....: not forced
Key attributes ...: rsa0 rsa0 rsa0
Max. PIN lengths .: 12 12 12
PIN retry counter : 3 0 3
Signature counter : 0
Signature key ....: [none]
Encryption key....: [none]
Authentication key: [none]
General key info..: [none]

I have no clue on this, any help is appreciated.

Regards,

Luginbash

luginbash commented 6 years ago

Strange, I tried to figure out what happened by installing the SDK and compile it for myself. The problem disappeared:

(ledger) zhouquan@greenriver:~/src/ledger-app-openpgp-card$ gpg --card-status Reader ...........: Ledger Token [Nano S] (0001) 00 00 Application ID ...: D2760001240103032C97XXXXXXXX0000 Version ..........: 3.3 Manufacturer .....: unknown Serial number ....: EE933591 Name of cardholder: [not set] Language prefs ...: [not set] Sex ..............: unspecified URL of public key : [not set] Login data .......: [not set] Signature PIN ....: not forced Key attributes ...: ed25519 cv25519 ed25519 Max. PIN lengths .: 12 12 12 PIN retry counter : 3 0 3 Signature counter : 0 Signature key ....: [none] Encryption key....: [none] Authentication key: [none] General key info..: [none]