Home GnuPG
Diffusion GPGME d9ac13859502

cpp: Allow setting the curve to use when generating ECC keys

Description

cpp: Allow setting the curve to use when generating ECC keys

lang/cpp/src/gpggencardkeyinteractor.h (class GpgGenCardKeyInteractor):
Add enum Curve. Add member function setCurve.
lang/cpp/src/gpggencardkeyinteractor.cpp
(class GpgGenCardKeyInteractor::Private): Initialize simple members
in-class. Add member curve.
(GpgGenCardKeyInteractor::~GpgGenCardKeyInteractor): Use default d'tor.
(GpgGenCardKeyInteractor::setCurve): New.
(GpgGenCardKeyInteractor::action): Return curve defaulting to

Curve25519.

This enables users of this interactor to request the generation of
ECC keys with a specific curve as smart card keys. It's up to the user
to specify a curve that is actually supported by the smart card.

Details

Provenance
ikloeckerAuthored on Oct 24 2022, 12:21 PM
Parents
rMd36905bb80c4: build: Update gpg-error.m4.
Branches
Unknown
Tags
Unknown
Tasks
T4429: Kleopatra: Offer to generate ECC keys on Smartcards which support it