OpenPGP smartcard and supported curves

Wiktor Kwapisiewicz wiktor at metacode.biz
Tue Feb 9 08:33:53 CET 2021


Hi Ben,

On 09.02.2021 06:37, Ben Kibbey wrote:
> I have version 3.4 OpenPGP smartcard and am trying to get ed25519 keys
> working. I have tried generating a signing key on-card and also
> importing via the keytocard command of --card-edit with both methods
> returning an 'Invalid value' error. The nist keys work fine. Is this a
> limitation of the card?

I haven't seen this error personally but just for completeness sake you 
may change the key card attribute if you didn't try that:

$ gpg --edit-card
gpg/card> admin
gpg/card> key-attr
Changing card key attribute for: Signature key
Please select what kind of key you want:
   (1) RSA
   (2) ECC
Your selection? 2
Please select which elliptic curve you want:
   (1) Curve 25519
   (4) NIST P-384
Your selection? 1
gpg/card> generate

(adapted from 
https://developers.yubico.com/PGP/YubiKey_5.2.3_Enhancements_to_OpenPGP_3.4.html 
).

Kind regards,
Wiktor



More information about the Gnupg-devel mailing list