summaryrefslogtreecommitdiff
path: root/lang/cpp/src/gpggencardkeyinteractor.h
diff options
context:
space:
mode:
Diffstat (limited to 'lang/cpp/src/gpggencardkeyinteractor.h')
-rw-r--r--lang/cpp/src/gpggencardkeyinteractor.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/lang/cpp/src/gpggencardkeyinteractor.h b/lang/cpp/src/gpggencardkeyinteractor.h
index 3d9c713..09a73b6 100644
--- a/lang/cpp/src/gpggencardkeyinteractor.h
+++ b/lang/cpp/src/gpggencardkeyinteractor.h
@@ -58,10 +58,27 @@ public:
enum Algo {
RSA = 1,
- ECC = 2
+ ECC = 2,
};
void setAlgo(Algo algo);
+ // the enum values minus 1 have to match the indexes of the curves used by
+ // ask_curve() in gnupg's g10/keygen.c
+ enum Curve {
+ DefaultCurve = 0, // currently Curve25519
+ Curve25519 = 1,
+ Curve448,
+ NISTP256,
+ NISTP384,
+ NISTP521,
+ BrainpoolP256,
+ BrainpoolP384,
+ BrainpoolP512,
+ Secp256k1,
+ LastCurve = Secp256k1,
+ };
+ void setCurve(Curve curve);
+
std::string backupFileName() const;
private: