OpenPGP smartcard and P-256 in non expert mode

Sosthène Guédon | Nitrokey sosthene at
Thu Aug 11 14:58:17 CEST 2022


> Please share your GnUPG version and the type of smartcard you are using
> with us.  A 9 year old commit is not very helpful.

I'm using gpg 2.2.36 and a OpenPGP smart card implementation we are currently developing.

You're right the commit itself isn't very helpful, here are is the code that is relevant in the 2.2 branch:;a=blob;f=g10/keygen.c;h=fee752376d28d7c7704336d681da8be92c4f22bc;hb=491645b50ec97db12520483d347291d660db209c#l2393
See the `expert_only` flag set to 1 for P-256. This was introduced in the commit I mentioned.


Sosthène Guédon

Nitrokey GmbH
Email: sosthene at

Rheinstr. 10 C, 14513 Teltow, Germany
CEO / CEO: Jan Suhr
Register: AG Potsdam, HRB 32882 P
VAT ID / VAT ID: DE300136599

More information about the Gnupg-users mailing list