Canonical Key Format for ECC?

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


Hello,

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:
    https://sites.google.com/site/brainhub/pgpecckeys

and imported.

Then, the private key is created under
 .gnupg/private-keys-v1.d/E4403F3FD7A443FAC29FEF288FA0D20AC212851E.key
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