Canonical Key Format for ECC?

NIIBE Yutaka gniibe at
Wed Jun 3 13:49:14 CEST 2015


I'm testing OpenPGPcard specification v3.0 for ECC.  Currently,
I'm testing NIST P-256 curve.

I got test key from:

    A. Jivsov, Sample Keys and Messages:

and imported.

Then, the private key is created under
in the format of:

    (private-key(ecc(curve 1.2.840.10045.3.1.7)....))

On the other hand, when we generate a key, it is in the format of:

    (private-key(ecc(curve NIST P-256)...))

Those two are same thing, but I think that it's better to use one.

Shouldn't we fix the code (g10/import.c:transfer_secret_keys) to use
the name of curve (instead of OID string)?

More information about the Gnupg-devel mailing list